Kubernetes Dashboard Bearer Token

While Login in to Kubernetes dashboard it will ask for 2 types of authentication :
1. Kubeconfig file upload
2. Bearer Token

Below is the way to fetch the bearer token using a single line command and paste it on the Login page. It will Login successfully..



kubectl -n kube-system describe secret $(
  kubectl -n kube-system get secret | \
  awk '/^deployment-controller-token-/{print $1}'
) | \
awk '$1=="token:"{print $2}'

No comments:

Installing Ingress Controller - Kubernetes

Installing the Ingress Controller Prerequisites Make sure you have access to the Ingress controller image: For NGINX Ingress controll...