Get the App
SLTechnology News&Howtos  ›  Servers  › 

UI interface deployment of Kubernetes binary deployment

Shulou Source: shulou.com Published: 2022-06-03 09:41:43 09月30日 Update

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

Tags: Token interface login binary blog address official file download browser directory space component node problem previous work browse generate Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Microsoft NVidia OPPO Reno Xiaomi Huawei