Skip to content

Instantly share code, notes, and snippets.

@tlightsky
Last active December 21, 2020 03:48
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 tlightsky/c2eb381afb1afd012a292315084f4428 to your computer and use it in GitHub Desktop.
Save tlightsky/c2eb381afb1afd012a292315084f4428 to your computer and use it in GitHub Desktop.
k8s dashboard
helm install kubenetes-dashboard kubernetes-dashboard/kubernetes-dashboard --set service.type=NodePort,extraArgs="{--enable-insecure-login=true,--enable-skip-login=true,--disable-settings-authorizer=true}"
export NODE_PORT=$(kubectl get -n default -o jsonpath="{.spec.ports[0].nodePort}" services kubenetes-dashboard-kubernetes-dashboard)
export NODE_IP=$(kubectl get nodes -o jsonpath="{.items[0].status.addresses[0].address}")
echo https://$NODE_IP:$NODE_PORT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment