Kubernetes binary deployment-deployment of UI interface (4)
Load balancing deployment (3) deployment UI interface yaml download: https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/dashboard deployment environment
Load balancing
Nginx1:192.168.13.128/24
Nginx2:192.168.13.129/24
Master node
Master1:192.168.13.131/24 kube-apiserver kube-controller-manager kube-scheduler etcd
Master2:192.168.13.130/24 kube-apiserver kube-controller-manager kube-scheduler etcd
Node node
Node1:192.168.13.132/24 kubelet kube-proxy docker flannel etcd
Node2:192.168.13.133/24 kubelet kube-proxy docker flannel etcd
one, Create dashboard [root@master01 ~] # cd k8s/ [root@master01 K8s] # mkdir dashboard # # create a working directory [root@master01 K8s] # cd dashboard/ [root@master01 dashboard] # rz-E # # upload dashboard's yaml file [root@master01 dashboard] # lsdashboard-configmap.yaml # # configure application dashboard-rbac.yaml # # authorize access to apidashboard-service.yaml # # publish application dashboard-controller.yaml # control Maker dashboard-secret.yaml # # secure encryption k8s-admin.yaml # # generate token [root@master01 dashboard] # kubectl create-f dashboard-rbac.yaml # # create api authorization [root@master01 dashboard] # kubectl create-f dashboard-secret.yaml # # create Security full encryption [root@master01 dashboard] # kubectl create-f dashboard-configmap.yaml # # create configuration [root@master01 dashboard] # kubectl create-f dashboard-controller.yaml # # Create application [root@master01 dashboard] # kubectl create-f dashboard-service.yaml # # create release [root@master01 dashboard] # kubectl get pods-n kube-system # # View creation in the specified kube-system namespace NAME READY STATUS RESTARTS AGEkubernetes-dashboard-65f974f565-xwhcb 1 2m31s 0 2m31s [root@master01 dashboard] # kubectl get pods Svc-n kube-system # # see how to access NAME READY STATUS RESTARTS AGEpod/kubernetes-dashboard-65f974f565-xwhcb 1 Running 1 Running 0 4m55sNAME TYPE CLUSTER-IP EXTERNAL-IP PORT (S) AGEservice/kubernetes-dashboard NodePort 10.0.0.119 443:30001/TCP 4m51s2 Access the node node ip with a browser (issues that cannot be accessed by Google browsers) # # more tools-developer tools-security
3. Self-sign the certificate [root@master01 dashboard] # vim dashboard-cert.sh # # create the certificate script file cat > dashboard-csr.json