After kubespray install kubernetes completes kubenetes-dashboard installation

In the previous article, we used kuberspay to install a production-level Kubernetes cluster without pits . After the installation is complete, if you need to install kubernetes-dashboardit, please do the following:

  • Download description filecurl https://raw.githubusercontent.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml -o kubernetes-dashboard.yaml
  • will be gcr.io/google_containers/kubernetes-dashboard-amd64modified toregistry.cn-hangzhou.aliyuncs.com/google_images/kubernetes-dashboard-amd64
  • implement:kubectl create -f kubernetes-dashboard.yaml
  • View execution results
    wangyunfeideMBP:kubespray wangyunfei$ kubectl get pod
    NAME                                  READY     STATUS    RESTARTS   AGE
    kube-apiserver-node1                  1/1       Running   0          3d
    kube-controller-manager-node1         1/1       Running   0          3d
    kube-dns-69997447-783dz               3/3       Running   0          3d
    kube-proxy-node1                      1/1       Running   0          3d
    kube-proxy-node2                      1/1       Running   0          3d
    kube-proxy-node3                      1/1       Running   0          3d
    kube-scheduler-node1                  1/1       Running   0          3d
    kubedns-autoscaler-2506230242-1vcgk   1/1       Running   0          3d
    kubernetes-dashboard-27199923-qqgrq   1/1       Running   0          1m
    nginx-proxy-node2                     1/1       Running   0          3d
    nginx-proxy-node3                     1/1       Running   0          3d
    

  • view page, execute kubectl proxy, visithttp://127.0.0.1:8001/ui

    https://raw.githubusercontent.com/wiselyman/kubespray/master/kubernetes-dashboard.png

 Source address: http://www.wisely.top/2017/07/04/kubespray-kubernetes-dashboard/

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326395564&siteId=291194637