Metrics Server
Install the Kubernetes Metrics Server with the kubelet-insecure-tls flag for lab and development environments.
These commands download the Metrics Server manifest, patch it to add the --kubelet-insecure-tls flag (required in self-signed or lab environments where kubelet certificates are not trusted), and then deploy it to the cluster.
1
2
3
wget https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
sed -iE 's/^(.*--kubelet-use-node-status-port)/\1 \n - --kubelet-insecure-tls/' components.yaml
kubectl create -f components.yaml
This post is licensed under CC BY 4.0 by the author.