Fix installation of Kubernetes metrics server by updating the URL 23/14423/1
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 12 Jun 2024 15:41:22 +0000 (17:41 +0200)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Wed, 12 Jun 2024 15:41:22 +0000 (17:41 +0200)
Change-Id: Ibda7b80fb519946496d08af4bd5b127f2947b792
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
installers/install_kubeadm_cluster.sh

index 8df4619..c607245 100755 (executable)
@@ -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
 }