diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-17 11:57:05 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-17 11:57:05 +0200 |
commit | 75372fa6a0e84ca8f3a6d6da4a9b389da4ba0b86 (patch) | |
tree | d3f2991ba794513067280d78eef178ed429584aa /chaos-at-home/k8s-chtest.yml | |
parent | kubernetes: 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/k8s-chtest.yml')
-rw-r--r-- | chaos-at-home/k8s-chtest.yml | 37 |
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 |