k8s dashboard for kind

Expected result

What kind of problem the dashboard solve?

Solve the problem to see a GUI instead of CLI. Although help when you’re starting on k8s and/or won’t have in mind all k8s commands, there are so many, check it out.

Assumptions

  • Has Helm installed
  • You’re using kind
  • If you’re using other local k8s, such as Minikube check the section Minikube.

How to configure?

Install the dashboard using the following steps:

  1. Helm install
helm install dashboard kubernetes-dashboard/kubernetes-dashboard -n kubernetes-dashboard --create-namespace
helm install
kubectl proxy
kubectl proxy
http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:dashboard-kubernetes-dashboard:https/proxy/#/login
login page
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
kubectl apply -f "file path + file name"
kubectl apply
// First command
kubectl describe serviceaccount admin-user -n kubernetes-dashboard
// Second command
kubectl describe secret admin-user-token-lgr7w -n kubernetes-dashboard
kubectl describe
Dashboard
Dashboard Workloads

Minikube

For minikube click here.

References

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Luiz Gustavo De O. Costa

Luiz Gustavo De O. Costa

Hey friend!! I’m Luiz Gustavo, a Java developer and I’m here to learn and write about Java, tests and good practices