From 89cee5e0eeb4691e7059542a5ce7ff827ea825a5 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Mon, 18 Nov 2024 12:58:29 +0100 Subject: [PATCH] Fix install_k3s_cluster.sh to configure docker private registry Change-Id: I961cd4c4e4eaaeac4eb84cee2333bde67b958549 Signed-off-by: garciadeblas --- installers/install_k3s_cluster.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/installers/install_k3s_cluster.sh b/installers/install_k3s_cluster.sh index 3fc0b4a5..539e7764 100755 --- a/installers/install_k3s_cluster.sh +++ b/installers/install_k3s_cluster.sh @@ -23,6 +23,7 @@ K8S_VERSION="v1.29.3+k3s1" function configure_registry() { if [ -n "${DOCKER_PROXY_URL}" ]; then echo "Configuring docker proxy URL in /etc/rancher/k3s/registries.yaml" + sudo mkdir -p /etc/rancher/k3s/ cat << EOF | sudo tee /etc/rancher/k3s/registries.yaml > /dev/null mirrors: docker.io: -- 2.25.1