Skip to content

Instantly share code, notes, and snippets.

Last active Apr 21, 2021
What would you like to do?
Kubernetes Dashboard with Metrics Server

Install Kubernetes Dashboard

kubectl apply -f

Patch the dashboard to allow skipping login

kubectl patch deployment kubernetes-dashboard -n kubernetes-dashboard --type 'json' -p '[{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--enable-skip-login"}]'

Install Metrics Server

kubectl apply -f

Patch the metrisc server to work with insecure TLS

kubectl patch deployment metrics-server -n kube-system --type 'json' -p '[{"op": "add", "path": "/spec/template/spec/containers/0/args/-", "value": "--kubelet-insecure-tls"}]'

Run the Kubectl proxy to allow accessing the dashboard

kubectl proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment