Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install crictl on nodes #66

Merged
merged 1 commit into from Mar 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -118,6 +118,7 @@ $ ansible-playbook --inventory ansible-inventory --extra-vars "serial_all=50%" i
| ------------------------- | ---------- | ---------- |
| cni | 0.7.5 | node |
| containerd | 1.3.3 | node |
| crictl | 1.16.1 | node |
| etcd | 3.3.12 | etcd |
| kube-apiserver | 1.15.10 | master |
| kube-controller-manager | 1.15.10 | master |
Expand Down
3 changes: 2 additions & 1 deletion install.yml
Expand Up @@ -20,6 +20,7 @@
roles:
- cni
- containerd
- crictl
- runc
- kube-proxy
- kubelet
- kubelet
32 changes: 32 additions & 0 deletions roles/crictl/tasks/main.yml
@@ -0,0 +1,32 @@
- name: Download crictl
get_url:
url: https://github.com/kubernetes-sigs/cri-tools/releases/download/v1.16.1/crictl-v1.16.1-linux-amd64.tar.gz
dest: /tmp/crictl-v1.16.1-linux-amd64.tar.gz
mode: 0755
owner: root
group: root
checksum: sha256:19fed421710fccfe58f5573383bb137c19438a9056355556f1a15da8d23b3ad1

- name: Unarchive crictl tarball
unarchive:
src: /tmp/crictl-v1.16.1-linux-amd64.tar.gz
dest: /tmp
remote_src: True

- name: Move crictl binary into place
copy:
src: /tmp/crictl
dest: /usr/local/bin/crictl
remote_src: True

- name: Remove tmp download files
file:
path: /tmp/crictl
state: absent

- name: Make crictl binaries executable
file:
path: /usr/local/bin/crictl
owner: root
group: root
mode: 0755