summaryrefslogtreecommitdiff
path: root/chaos-at-home/k8s-chtest.yml
diff options
context:
space:
mode:
Diffstat (limited to 'chaos-at-home/k8s-chtest.yml')
-rw-r--r--chaos-at-home/k8s-chtest.yml37
1 files changed, 37 insertions, 0 deletions
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