zuul-jobs/test-playbooks/install-kubernetes/crio.yaml
Tristan Cacqueray 25949ea416 install-kubernetes: add sanity check for crio
Change-Id: I1b9e6c7baac4fdf8cd053e1661b09e47e4dda1c4
2019-10-17 19:59:08 +00:00

35 lines
801 B
YAML

- hosts: all
name: Install kubernetes with minikube
roles:
- role: install-kubernetes
vars:
minikube_dns_resolvers:
- '1.1.1.1'
- '8.8.8.8'
kubernetes_runtime: cri-o
post_tasks:
- name: Check crio version
command: crictl version
become: yes
failed_when: false
- name: Create a test pod definition
copy:
dest: test-pod.yaml
content: |
apiVersion: v1
kind: Pod
metadata:
name: test
spec:
restartPolicy: Never
containers:
- name: test
image: k8s.gcr.io/pause:3.1
- name: Start pod
command: kubectl apply -f test-pod.yaml
- name: Check status
shell: sleep 5; kubectl get pods