Skip to content

Instantly share code, notes, and snippets.

@brianpursley
Last active January 23, 2020 22:48
Show Gist options
  • Save brianpursley/3325f04a41610d426b347b739c7aff87 to your computer and use it in GitHub Desktop.
Save brianpursley/3325f04a41610d426b347b739c7aff87 to your computer and use it in GitHub Desktop.
Download and install metrics-server into a kind kubernetes cluster
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