Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Kubernetes binary deployment-deployment of UI interface (4)

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

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

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report