diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-20 19:39:23 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-20 19:39:23 +0200 |
commit | 954d477be41072cf8a8a4260a8fe46f66674c117 (patch) | |
tree | b5102e0d8f06088fb2c58072a63b31568ed9ced4 /roles/kubernetes/addons/metrics-server/tasks/main.yml | |
parent | add ch-equinox-ws to managment vlan (diff) | |
parent | kubernetes: add network-plugin kube-router (diff) |
Merge branch 'topic/kubernetes-network-plugins'
Diffstat (limited to 'roles/kubernetes/addons/metrics-server/tasks/main.yml')
-rw-r--r-- | roles/kubernetes/addons/metrics-server/tasks/main.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/roles/kubernetes/addons/metrics-server/tasks/main.yml b/roles/kubernetes/addons/metrics-server/tasks/main.yml index e09106c1..fb725a87 100644 --- a/roles/kubernetes/addons/metrics-server/tasks/main.yml +++ b/roles/kubernetes/addons/metrics-server/tasks/main.yml @@ -1,10 +1,15 @@ --- +- name: create base directory for metrics-server addon + file: + path: /etc/kubernetes/addons/metrics-server + state: directory + - name: copy config for metrics-server template: src: "components.{{ kubernetes_metrics_server_version }}.yml.j2" - dest: /etc/kubernetes/metrics-server.yml + dest: /etc/kubernetes/addons/metrics-server/config.yml - name: install metrics-server onto the cluster - command: kubectl --kubeconfig /etc/kubernetes/admin.conf apply -f /etc/kubernetes/metrics-server.yml + command: kubectl --kubeconfig /etc/kubernetes/admin.conf apply -f /etc/kubernetes/addons/metrics-server/config.yml register: kube_metrics_server_apply_result changed_when: (kube_metrics_server_apply_result.stdout_lines | reject("regex", " unchanged$") | list | length) > 0 |