If you’re running
minikube you can open up a Kubernetes dashboard with
(ignore all the stuff here: https://github.com/kubernetes/dashboard )
There’s a lot to see here so let’s break it down a bit.
For more info see https://github.com/kubernetes/dashboard/wiki
Note this is from
Dashboard Version v1.8.1.
See also https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/
- to see System Pods, choosing
kube-systemfrom Namespaces, then Pods
- or a summary of everything in a Namespace, using Workloads
- Dashboard lets you create and deploy a containerized application as a Deployment using a wizard (see the CREATE button in the top right of a page)
- Logs – via Pods >
name of pod> Logs
See AWS: creating an EKS cluster then
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/kubernetes-dashboard.yaml kubectl proxy
http://www.snowcrash.eu/wp-content/uploads/2018/08/Screen-Shot-2018-11-21-at-17.35.48-300x266.png 300w" sizes="(max-width: 558px) 100vw, 558px" />
~/.kube/config file gave:
Not enough data to create auth info structure.
The other options are
Every Service Account has a Secret with valid Bearer Token that can be used to log in to Dashboard. To find out more about how to configure and use Bearer Tokens, please refer to the Authenticationsection.
SKIPwhich gives you a dashboard with:
There is nothing to display here.
Skipoption will make the Dashboard use the privileges of the Service Account used by the Dashboard.
apiVersion: rbac.authorization.k8s.io/v1beta1 kind: ClusterRoleBinding metadata: name: kubernetes-dashboard labels: k8s-app: kubernetes-dashboard roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: cluster-admin subjects: - kind: ServiceAccount name: kubernetes-dashboard namespace: kube-system
dashboard-admin.yaml and deploy with:
kubectl create -f dashboard-admin.yaml
Then serve up the dashboard with
kubectl proxy and view it at:
(If you’ve done the `ClusterRoleBinding` then you can click Skip at the Dashboard dialog)
Note, you can view and delete this ClusterRoleBinding with:
kubectl get clusterrolebindings
kubectl delete clusterrolebinding kubernetes-dashboard
and delete the dashboard with:
kubectl -n kube-system delete deployment kubernetes-dashboard