Change-Id: Ibda7b80fb519946496d08af4bd5b127f2947b792
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
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
}