Last active
January 23, 2020 22:48
-
-
Save brianpursley/3325f04a41610d426b347b739c7aff87 to your computer and use it in GitHub Desktop.
Download and install metrics-server into a kind kubernetes cluster
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -O /tmp/metrics-server-master.zip https://github.com/kubernetes-sigs/metrics-server/archive/master.zip | |
unzip -u /tmp/metrics-server-master.zip -d /tmp | |
rm /tmp/metrics-server-master.zip | |
kubectl apply -f /tmp/metrics-server-master/deploy/1.8+/ | |
rm -rf /tmp/metrics-server-master | |
kubectl patch deploy metrics-server -n kube-system --type json --patch '[{"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--kubelet-insecure-tls"},{"op":"add","path":"/spec/template/spec/containers/0/args/-","value":"--kubelet-preferred-address-types=InternalIP,ExternalIP,Hostname"}]' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment