Radosław Piliszek f816bb4197 Install buildset registry CA certificate in minikube
Change-Id: I95d8d3915d7e4b735497359e8c8fa167c15ee267
2024-02-15 20:34:25 +01:00

30 lines
1.1 KiB
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: Signal new config to minikube crio daemon
command: "minikube ssh 'sudo pkill -HUP crio'"
- name: Replace minikube kubelet config.json
shell: minikube cp ~/.docker/config.json /var/lib/kubelet/config.json
- name: Install buildset registry CA certificate in minikube
block:
- name: Copy the CA certificate from the host to minikube
command: "minikube cp /usr/local/share/ca-certificates/{{ buildset_registry_alias }}.crt /usr/local/share/ca-certificates/{{ buildset_registry_alias }}.crt"
- name: Run update-ca-certificates in minikube
command: "minikube ssh 'sudo update-ca-certificates'"