Setup Kubernetes Dashboard - Linux Guru

Kubernetes Dashboard :

Dashboard is a web-based Kubernetes user interface. You can use Dashboard to deploy containerized applications to a Kubernetes cluster, troubleshoot your containerized application,
  • Setting up the dash board:
$ kubectl create -f
  • Create user to access dashboard. We will create user using RABC for default namespace access.
Create RABC yaml and apply it.
apiVersion: v1

kind: ServiceAccount


  name: admin-user

  namespace: default



kind: ClusterRoleBinding


  name: admin-user



  kind: ClusterRole

  name: cluster-admin


- kind: ServiceAccount

  name: admin-user

  namespace: default
Save it and apply.
$ kubectl apply -f user-rabc.yaml
Now You can access kubernetes cluster via web browser but it will ask you for token. you can get your use token by following command.
  • Access kubernetes dashboard :
$ kubectl proxy
  • To get token ID:
$ kubectl -n default get secret | grep admin-user
  • To get token :

$ kubectl -n default describe secret admin-user-token-cvfd

Linux Guru

Welcome to my Linux blog! Hello Friends, I am Vishal Vyas. I am a DevOps engineer and expert in Linux and Cloud Computing. Also I am a Certified Kubernetes Administrator, I have a total 12 plus years of experience in the IT field and I have worked in various technologies. I write about Linux, AWS, DevOps and web Technologies, I have started this blog to share my technical knowledge with all, I am posting here what I learn from the latest web technologies and the likes.

Post a Comment

Previous Post Next Post