You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# create service Account
kubectl apply -f ServiceAccount.yml
Edit kubernetes-dashboard service to NodePort
Observation: kubernetes-dashboard default service is ClusterIP
# Edit kubernetes-dashboard service
kubectl edit svc kubernetes-dashboard -n kubernetes-dashboard
Get token to access Dasboard
# Get token
kubectl -n kubernetes-dashboard describe secret $(kubectl -n kubernetes-dashboard get secret | grep k8s-admin | awk '{print $1}')
Access the kubernetes-dashboard using Public IP
# Get NodePort
kubectl get svc kubernetes-dashboard
Observation: Make a note of port which starts with 3 (Example: 80:3xxxx/TCP). Capture the port 3xxxx and use it in application URL below.
# kubernetes-dashboard URL
https://<worker-node-public-ip>:<Node-Port>