zuul-jobs/roles/ensure-kubernetes/tasks/main.yaml
Radosław Piliszek 32edb51a7e Reenable crio jobs
We switch the crio buildset registry job to run on debian bookworm for
the same reason we switched the other buildset registry jobs:
compatibility between skopeo and docker.

Additionally, we fix the crio/minikube route by avoiding the use of
the removed repo. [1]
kubectl from minikube will be used as it should have always been.

[1] https://kubernetes.io/blog/2023/08/31/legacy-package-repository-deprecation/#can-i-continue-to-use-the-legacy-package-repositories

Change-Id: I25b1f3ba7ba34b0dc0043c659111ca8405b375da
2024-03-21 21:09:37 +00:00

19 lines
450 B
YAML

- name: Install microk8s
when: ensure_kubernetes_type == 'microk8s'
include_tasks: microk8s.yaml
- name: Install minikube
when: ensure_kubernetes_type == 'minikube'
block:
- name: Install kubernetes dependencies
become: yes
apt:
name:
- conntrack
- liblz4-tool
update_cache: yes
- name: Run cluster tasks
include_tasks: minikube.yaml
when: install_kubernetes_with_cluster