diff --git a/cri-o.yml b/cri-o.yml index 92abafc..fba97ae 100644 --- a/cri-o.yml +++ b/cri-o.yml @@ -110,7 +110,7 @@ git: repo: https://github.com/kubernetes-incubator/cri-o dest: /root/src/github.com/kubernetes-incubator/cri-o - version: kube-1.6.x + version: release-1.9 - name: clone CNI git: @@ -217,7 +217,7 @@ - name: systemd dropin for kubeadm shell: | sh -c 'echo "[Service] - Environment=\"KUBELET_EXTRA_ARGS=--enable-cri=true --container-runtime=remote --runtime-request-timeout=15m --image-service-endpoint /var/run/crio.sock --container-runtime-endpoint /var/run/crio.sock\"" > /etc/systemd/system/kubelet.service.d/0-crio.conf' + Environment=\"KUBELET_EXTRA_ARGS=--container-runtime=remote --runtime-request-timeout=15m --image-service-endpoint /var/run/crio/crio.sock --container-runtime-endpoint /var/run/crio/crio.sock\"" > /etc/systemd/system/kubelet.service.d/0-crio.conf' - name: flush iptables command: "iptables -F" @@ -232,3 +232,11 @@ - name: disable selinux command: "setenforce 0" when: ansible_distribution in ['Fedora', 'RedHat', 'CentOS'] + + - name: install crictl + shell: | + curl -LO https://github.com/kubernetes-incubator/cri-tools/releases/download/v1.0.0-alpha.0/crictl-v1.0.0-alpha.0-linux-amd64.tar.gz + tar -xvf crictl-v1.0.0-alpha.0-linux-amd64.tar.gz + mv crictl /usr/local/bin/crictl + rm crictl-v1.0.0-alpha.0-linux-amd64.tar.gz + chmod +x /usr/local/bin/crictl