install-kubernetes: add sanity check for crio
Change-Id: I1b9e6c7baac4fdf8cd053e1661b09e47e4dda1c4
This commit is contained in:
parent
03e42f874b
commit
25949ea416
@ -7,3 +7,28 @@
|
||||
- '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
|
||||
|
@ -36,7 +36,7 @@
|
||||
files:
|
||||
- roles/install-docker/.*
|
||||
- roles/install-kubernetes/.*
|
||||
- test-playbooks/install-kubernetes.yaml
|
||||
- test-playbooks/install-kubernetes/.*
|
||||
run: test-playbooks/install-kubernetes/docker.yaml
|
||||
post-run: test-playbooks/install-kubernetes/post.yaml
|
||||
|
||||
@ -51,7 +51,7 @@
|
||||
files:
|
||||
- roles/install-docker/.*
|
||||
- roles/install-kubernetes/.*
|
||||
- test-playbooks/install-kubernetes.yaml
|
||||
- test-playbooks/install-kubernetes/.*
|
||||
run: test-playbooks/install-kubernetes/crio.yaml
|
||||
post-run: test-playbooks/install-kubernetes/post.yaml
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user