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

UI interface deployment of Kubernetes binary deployment

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Follow up on the blog "Multi-node deployment of Kubernetes binary deployment"

Official document download address:

Https://github.com/kubernetes/kubernetes/tree/master/cluster/addons/dashboard

UI interface deployment

Operate on master01

# create dashborad working directory [root@localhost k8s] # mkdir dashboard [root@localhost dashboard] # lsdashboard-configmap.yaml dashboard-rbac.yaml dashboard-service.yamldashboard-controller.yaml dashboard-secret.yaml k8s-admin.yaml# component create [root@localhost dashboard] # kubectl create-f dashboard-rbac.yaml role.rbac.authorization.k8s.io/kubernetes-dashboard-minimal createdrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard-minimal created [root@localhost dashboard] # kubectl create-f dashboard- Secret.yaml secret/kubernetes-dashboard-certs createdsecret/kubernetes-dashboard-key-holder created [root@localhost dashboard] # kubectl create-f dashboard-configmap.yaml configmap/kubernetes-dashboard-settings created [root@localhost dashboard] # kubectl create-f dashboard-controller.yaml serviceaccount/kubernetes-dashboard createddeployment.apps/kubernetes-dashboard created [root@localhost dashboard] # kubectl create-f dashboard-service.yaml service/kubernetes-dashboard created

When finished, view the creation under the specified kube-system namespace

[root@localhost dashboard] # kubectl get pods-n kube-systemNAME READY STATUS RESTARTS AGEkubernetes-dashboard-65f974f565-jzcs9 0lap 1 ContainerCreating 0 12s

See how to access

[root@localhost dashboard] # kubectl get pods,svc-n kube-systemNAME READY STATUS RESTARTS AGEpod/kubernetes-dashboard-65f974f565-jzcs9 1 + 1 Running 0 34sNAME TYPE CLUSTER-IP EXTERNAL-IP PORT (S) AGEservice/kubernetes-dashboard NodePort 10.0.0.154 443:30001/TCP 24s

Visit nodeIP and you can visit

Https://192.168.18.145:30001/

Troubleshooting: a problem that cannot be accessed by Google browser

[root@localhost dashboard] # vim dashboard-cert.shcat > 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