kubernetes dashboard 安裝

來源:互聯網
上載者:User

標籤:k8s dashboard

1.下載  dashboard.yaml檔案

   我安裝的k8s版本為1.5.2,從github下載相近的dashaboard版本

   wget https://raw.githubusercontent.com/kubernetes/dashboard/v1.5.0/src/deploy/kubernetes-dashboard.yaml

 

2.編輯kubernetes-dashboard.yaml

  由於yaml檔案中的image使用的是Googlegcr.io,被牆無法下載,因此,需將檔案中image 用docker.io上的image替代

      image gcr.io/google_containers/kubernetes-dashboard-amd64:v1.5.0

       替換為:

       image: docker.io/mritd/kubernetes-dashboard-amd64:v1.5.0


 3.執行yaml檔案,建立pod和service

#kubectl create  -f  dashboard.yaml


# kubectl get service --all-namespaces

NAMESPACE    NAME           CLUSTER-IP       EXTERNAL-IP   PORT(S)        AGE

default      kubernetes            10.254.0.1       <none>        443/TCP        8h

kube-system  kubernetes-dashboard  10.254.153.174  <nodes>       80:31411/TCP   27m


dashboard建立成功,顯示clusterip為10.254.153.174,nodeport為31411

所以訪問節點伺服器的 31411連接埠即可看到dashboard

http://node-ip:31411

 650) this.width=650;" src="https://s1.51cto.com/wyfs02/M02/00/0F/wKiom1mVYbHADdQeAACxsmfAiVM918.png" title="k8s.png" alt="wKiom1mVYbHADdQeAACxsmfAiVM918.png" />



kubernetes dashboard 安裝

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.