Update 'k8s/setup_calico.yml'

master
alecsandru 9 months ago
parent 416a47c2e6
commit f4d431f80a
  1. 6
      k8s/setup_calico.yml

@ -25,5 +25,9 @@
- "kubectl apply -f $HOME/calico/custom-resources.yaml"
args:
creates: $HOME/calico/custom-resources.yaml
- name: Check if Metrics API is installed
shell: "kubectl get pods -n kube-system | grep metrics | wc -l"
register: METRICS_COUNT
- name: Setup Metrics API
shell: "kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/high-availability.yaml"
shell: "kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/high-availability.yaml"
when: METRICS_COUNT.stdout|int < 1
Loading…
Cancel
Save