Command to create all the Kubernetes components to run the Dashboard (https://github.com/kubernetes/dashboard)
kubectl create -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-rc5/aio/deploy/recommended.yaml
Access the application locally, command to start Kubernetes proxy server
kubectl proxy
Browse the Kubernetes Dashboard.
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/#/login
The first time, need to authenticate with a token. Run the following command to show all Kubernetes secrets
kubectl -n kubernetes-dashboard get secret
It shows all the secrets of the cluster. Need to retrieve the name of the secret that has a name starting with deployment-controller-token
To show the specified secret details
kubectl -n kube-system describe secret deployment-controller-token-r5jps
Copy the token and paste it to sign the Kubernetes Dashboard.
As you can see, there is only one instance of the pod (frontendmvc-pod)
No comments:
Post a Comment