From 85106d7fe601c5dd63c3a6dc056e372f23b5e9e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Piliszek?= Date: Thu, 15 Feb 2024 15:45:31 +0100 Subject: [PATCH] Replace also minikube kubelet config.json To pass auth settings. Also, change the crio restart to HUP to avoid unnecessary extra work. Change-Id: Ib93e9be3819ac0c49455cfb2fc38758c80e12ca8 --- playbooks/helm/pre.yaml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/playbooks/helm/pre.yaml b/playbooks/helm/pre.yaml index 0b3f9bc..25e4a2a 100644 --- a/playbooks/helm/pre.yaml +++ b/playbooks/helm/pre.yaml @@ -14,12 +14,8 @@ - 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: Signal new config to minikube crio daemon + command: "minikube ssh 'sudo pkill -HUP 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 + - name: Replace minikube kubelet config.json + shell: minikube cp ~/.docker/config.json /var/lib/kubelet/config.json