install calicoctl on kube nodes

This commit is contained in:
Erki Aas 2024-08-14 18:18:00 +03:00
parent 5589b0721e
commit 8529e7c0cc

View File

@ -171,3 +171,9 @@
- name: Restart kube-apiserver - name: Restart kube-apiserver
ansible.builtin.shell: "killall kube-apiserver" ansible.builtin.shell: "killall kube-apiserver"
when: apiserver.changed when: apiserver.changed
- name: Download calicoctl
ansible.builtin.get_url:
url: "https://github.com/projectcalico/calico/releases/download/v3.28.1/calicoctl-linux-{{ 'arm64' if ansible_architecture == 'aarch64' else 'amd64' }}"
dest: "/usr/bin/calicoctl"
mode: '0755'