Radosław Piliszek bb5c04b369 Switch minikube to cri-o
This results in a much more elegant and flexible solution,
and supports our use of quay.io (unlike docker).

Change-Id: I00257b175c0445fc770a51bc69d30377c6f57382
2024-02-14 16:24:07 +01:00

26 lines
802 B
YAML

- hosts: all
roles:
- role: use-buildset-registry
- role: clear-firewall
- role: ensure-docker
- role: ensure-minikube
- role: ensure-helm
tasks:
- name: Start minikube
command: minikube start --cpus max --memory max --container-runtime cri-o
- name: Replace minikube registries.conf
block:
- name: Copy registries.conf from the host to minikube
command: minikube cp /etc/containers/registries.conf /etc/containers/registries.conf
- name: Restart minikube crio daemon
command: minikube ssh sudo systemctl restart crio
- name: Wait for minikube k8s API to be back up
command: kubectl get node
register: _result
until: _result is not failed
retries: 30
delay: 10