blob: e09106c1c9c01ef37eff4e6b480f2324de4fc595 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
---
- name: copy config for metrics-server
template:
src: "components.{{ kubernetes_metrics_server_version }}.yml.j2"
dest: /etc/kubernetes/metrics-server.yml
- name: install metrics-server onto the cluster
command: kubectl --kubeconfig /etc/kubernetes/admin.conf apply -f /etc/kubernetes/metrics-server.yml
register: kube_metrics_server_apply_result
changed_when: (kube_metrics_server_apply_result.stdout_lines | reject("regex", " unchanged$") | list | length) > 0
|