From 9c253bda06915c374c7e38144976923ee67787d5 Mon Sep 17 00:00:00 2001 From: garciadeblas Date: Wed, 12 Jun 2024 17:41:22 +0200 Subject: [PATCH] Fix installation of Kubernetes metrics server by updating the URL Change-Id: Ibda7b80fb519946496d08af4bd5b127f2947b792 Signed-off-by: garciadeblas --- installers/install_kubeadm_cluster.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/installers/install_kubeadm_cluster.sh b/installers/install_kubeadm_cluster.sh index 8df46190..c6072457 100755 --- a/installers/install_kubeadm_cluster.sh +++ b/installers/install_kubeadm_cluster.sh @@ -113,7 +113,7 @@ function check_and_track_k8s_ready_before_helm() { function install_k8s_metrics() { [ -z "${DEBUG_INSTALL}" ] || DEBUG beginning of function echo "Installing Kubernetes metrics" - kubectl apply -f "https://github.com/kubernetes-sigs/metrics-server/releases/${K8S_METRICS_VERSION}/download/components.yaml" + kubectl apply -f "https://github.com/kubernetes-sigs/metrics-server/releases/download/${K8S_METRICS_VERSION}/components.yaml" kubectl -n kube-system patch deployment metrics-server --type=json -p '[{"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--kubelet-insecure-tls"}]' [ -z "${DEBUG_INSTALL}" ] || DEBUG end of function } -- 2.25.1