From: garciadeblas Date: Mon, 18 Nov 2024 11:58:29 +0000 (+0100) Subject: Fix install_k3s_cluster.sh to configure docker private registry X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=89cee5e0eeb4691e7059542a5ce7ff827ea825a5;p=osm%2Fdevops.git Fix install_k3s_cluster.sh to configure docker private registry Change-Id: I961cd4c4e4eaaeac4eb84cee2333bde67b958549 Signed-off-by: garciadeblas --- 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: