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.
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
namespace Create your own Deployment and Service.
because the Service isClusterIP
type, for ease of use, we cankubectl --namespace=kube-system edit service kubernetes-dashboard
modified intoNodePort
type.
Save the modifications, at which point the Service has been assigned a port 31614
access dashboard via browser https://192.168.56.105:31614/
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.
execute kubectl apply
make it effective.
now directly click on the login page skip
can enter 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 a day to play Docker container technology
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)