Kubernetes binary Cluster deployment IV-deployment web Interface
Main points of content:
1. Environmental introduction
2. Web interface deployment
I. introduction to the environment:
1. As the last step of k8s cluster deployment, the blog address of the first few steps:
Kubernetes binary cluster deployment-- etcd storage components, flannel network components deployment:
Https://blog.51cto.com/14475876/2470049
Kubernetes binary cluster deployment II-single master cluster deployment + multiple master clusters and deployment:
Https://blog.51cto.com/14475876/2470063
Kubernetes binary cluster deployment 3-load balancing scheduler deployment:
Https://blog.51cto.com/14475876/2470086
2. Dashborad official document address: https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/dashboard
2. Deployment of web interface:
Operate on master01: / / create dashborad (control panel) working directory: [root@localhost K8s] # mkdir dashboard// copy official files (a total of 6): [root@localhost dashboard] # ls dashboard-configmap.yaml dashboard-rbac.yaml dashboard-service.yamldashboard-controller.yaml dashboard-secret.yaml k8s-admin.yaml// load, Create all the files: [root@localhost dashboard] # kubectl create-f dashboard-rbac.yamlrole.rbac.authorization.k8s.io/kubernetes-dashboard-minimal createdrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created [root@localhost dashboard] # kubectl create-f dashboard-secret.yamlsecret/kubernetes-dashboard-certs createdsecret/kubernetes-dashboard-key-holder created [root@localhost dashboard] # kubectl create-f dashboard-configmap.yamlconfigmap/kubernetes-dashboard-settings created [root@localhost dashboard] # kubectl create-f Dashboard-controller.yamlserviceaccount/kubernetes-dashboard createddeployment.apps/kubernetes-dashboard created [root@localhost dashboard] # kubectl create-f dashboard-service.yamlservice/kubernetes-dashboard created// after completion, view the creation under the specified kube-system namespace: [root@localhost dashboard] # kubectl get pods-n kube-systemNAME READY STATUS RESTARTS AGEkubernetes-dashboard-65f974f565-rs2h5 1and1 Running 0 4m23s// to see how to access: [root@localhost dashboard] # kubectl get pods Svc-n kube-systemNAME READY STATUS RESTARTS AGEpod/kubernetes-dashboard-65f974f565-x9vrg 1 443:30001/TCP 8m18s 1 Running 0 8m32sNAME TYPE CLUSTER-IP EXTERNAL-IP PORT (S) AGEservice/kubernetes-dashboard NodePort 10.0.0.110
At this point, we use Google browser to visit: https://192.168.109.131:30001/
Reason: no self-signed certificate
How to solve it: write a certificate
On master01: [root@localhost dashboard] # vim dashboard-cert.shcat > dashboard-csr.json