previous Chapters Kubernetes All operations we are using command line tools kubectl
completed. To provide a richer user experience, Kubernetes also developed a WEB-based Dashboard that enables users to deploy containerized applications with Kubernetes Dashboard, monitor the status of applications, perform troubleshooting tasks, and manage Kubernetes Various resources.
in Kubernetes Dashboard can view the running state of the application in the cluster, and can create and modify various Kubernetes resources, such as Deployment, Job, Daemonset, etc. Users can scale Up/down Deployment, perform rolling Update, restart a Pod, or deploy a new app through a wizard. Dashboard can display the status and log information of various resources in the cluster.
It can be said that Kubernetes Dashboard provides kubectl
most of the functions, you can choose according to the situation.
installation
Kubernetes no Dashboard is deployed by default and can be installed with the following command:
Kubectl create-f https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/recommended/ Kubernetes-dashboard.yaml
Dashboard will be in kube-system
Create your own Deployment and Service in namespace.
because the Service isClusterIP
type, for ease of use, we cankubectl --namespace=kube-system edit service kubernetes-dashboard
modified intoNodePort
type.
Save the changes and the Service has been assigned a port 31614
at this time .
Access Dashboard https://192.168.56.105:31614/
through the browser , the login interface is as follows:
Configure logon Permissions
Dashboard SupportKubeconfig
and theToken
two kinds of authentication methods, in order to simplify the configuration, we pass the configuration filedashboard-admin.yaml
give admin permissions to the Dashboard default user.
Execution kubectl apply
make it effective.
Now click on the SKIP
login page directly you'll be able to enter the Dashboard.
In the next section we will use Kubernetes Dashboard.
Books:
1. "5 minutes a day kubernetes"
Https://item.jd.com/26225745440.html
2.5 minutes of Docker container technology per day
Https://item.jd.com/16936307278.html
3.5 minutes of play with OpenStack per day
Https://item.jd.com/12086376.html
Kubernetes Dashboard-5 minutes a day to play Docker container technology (173)