Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions cri-o.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand All @@ -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