Skip to content

Instantly share code, notes, and snippets.

@suryakencana007
Created January 10, 2022 05:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save suryakencana007/39316d282e840a22693585240cc4b14c to your computer and use it in GitHub Desktop.
Save suryakencana007/39316d282e840a22693585240cc4b14c to your computer and use it in GitHub Desktop.
Kubernetes Dashboard

Install Kubernetes Dashboard

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.4.0/aio/deploy/recommended.yaml

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 https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.5.2/components.yaml

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