Kubernetes GUI app

To install dashboard run new pod:

kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml

Next we need to create user. To do that create two configuration files:

apiVersion: v1
kind: ServiceAccount
metadata:
  name: admin-user
  namespace: kubernetes-dashboard
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: admin-user
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
  - kind: ServiceAccount
    name: admin-user
    namespace: kubernetes-dashboard

And apply them with kubectl apply -f <path_to_config>

Following command will create access token:

kubectl -n kubernetes-dashboard create token admin-user

Dashboard access dashboard need to create proxy:

kubectl proxy

Dashboard address is http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/

Or alternatively make port forwarding:

kubectl port-forward -n kubernetes-dashboard service/kubernetes-dashboard 8080:443 --address 0.0.0.0

And now dashboard will be accessible by https://<cluster-ip>:8080