summaryrefslogtreecommitdiff
path: root/chaos-at-home
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-06-17 11:57:05 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-06-17 11:57:05 +0200
commit75372fa6a0e84ca8f3a6d6da4a9b389da4ba0b86 (patch)
treed3f2991ba794513067280d78eef178ed429584aa /chaos-at-home
parentkubernetes: install addon configs into common sub-dir (diff)
kubernetes: add chaos-at-home test cluster and fix some bugs
Diffstat (limited to 'chaos-at-home')
-rw-r--r--chaos-at-home/group_vars/k8s-chtest.yml10
-rw-r--r--chaos-at-home/k8s-chtest.yml37
2 files changed, 47 insertions, 0 deletions
diff --git a/chaos-at-home/group_vars/k8s-chtest.yml b/chaos-at-home/group_vars/k8s-chtest.yml
new file mode 100644
index 00000000..b824f9dd
--- /dev/null
+++ b/chaos-at-home/group_vars/k8s-chtest.yml
@@ -0,0 +1,10 @@
+$ANSIBLE_VAULT;1.2;AES256;chaos-at-home
+64343538336637373635323961366666663233376166326663316362346135353465363432616462
+6530623534623435366466656163343436333064316434650a333232643966653634663531396138
+66643633656133396139353565313834653165353331386637316664383237393237633232393337
+3363626365306538380a333361613761343263356639656632633030626265653730393232653165
+32303034393934303538386664616366613339316265653734656562303232396234623733316532
+32313837623163633663633635396664313732323939663633613238303436656534336432363433
+32623863373239326133303932336361366164383462633730653934333830346636616630356666
+37636638666332393639353738623135313331336166333435363063373733313437613264323138
+39373564363637323034373636323430323437623636623935396237323263383362
diff --git a/chaos-at-home/k8s-chtest.yml b/chaos-at-home/k8s-chtest.yml
new file mode 100644
index 00000000..e3daf681
--- /dev/null
+++ b/chaos-at-home/k8s-chtest.yml
@@ -0,0 +1,37 @@
+---
+- name: Basic Node Setup
+ hosts: k8s-chtest
+ roles:
+ - role: apt-repo/base
+ - role: core/base
+ - role: core/sshd
+ - role: core/zsh
+
+- import_playbook: ../common/kubernetes-cluster-layout.yml
+ vars:
+ kubernetes_cluster_layout:
+ nodes_group: k8s-chtest
+ masters:
+ - ch-k8s-m0
+ - ch-k8s-m1
+ - ch-k8s-m2
+ primary_master: ch-k8s-m0
+
+### hack hack hack...
+- name: cook kubernetes secrets
+ hosts: _kubernetes_nodes_
+ gather_facts: no
+ tasks:
+ - set_fact:
+ kubernetes_secrets_cooked: "{{ kubernetes_secrets }}"
+ - when: external_ip is defined
+ set_fact:
+ external_ip_cooked: "{{ external_ip }}"
+
+- import_playbook: ../common/kubernetes-cluster.yml
+- import_playbook: ../common/kubernetes-cluster-cleanup.yml
+
+- name: install addons
+ hosts: _kubernetes_primary_master_
+ roles:
+ - role: kubernetes/addons/metrics-server