溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

k8s v1.5 web界面中kubernetes-dashboardv1.5的升級以及使用方法

發(fā)布時間:2021-10-12 09:34:47 來源:億速云 閱讀:129 作者:柒染 欄目:云計算

k8s v1.5 web界面中kubernetes-dashboardv1.5的升級以及使用方法,相信很多沒有經(jīng)驗的人對此束手無策,為此本文總結了問題出現(xiàn)的原因和解決方法,通過這篇文章希望你能解決這個問題。

kubernetes dashboard鏡像獲?。?/strong>

docker pull registry.cn-hangzhou.aliyuncs.com/google-containers/kubernetes-dashboard-amd64:v1.5.0

 #這里重新tag,并push到自己的鏡像倉庫了

docker tag e5133bac8024 www.perofu.com:7070/kubernetes-dashboard-amd64:v1.5.0 

docker push www.perofu.com:7070/kubernetes-dashboard-amd64:v1.5.0

kubernetes-dashboard相關資源的配置文件:

[root@www: kube-dashboard]#curl -O kubernetes-dashboard_1.5.0.yaml https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml

[1446][root@www: kube-dashboard]#cat kubernetes-dashboard_1.5.0.yaml

kind: Deployment

apiVersion: extensions/v1beta1

metadata:

  labels:

    app: kubernetes-dashboard

  name: kubernetes-dashboard

  namespace: kube-system

spec:

  replicas: 1

  revisionHistoryLimit: 10

  selector:

    matchLabels:

      app: kubernetes-dashboard

  template:

    metadata:

      labels:

        app: kubernetes-dashboard

      # Comment the following annotation if Dashboard must not be deployed on master

      annotations:

        scheduler.alpha.kubernetes.io/tolerations: |

          [

            {

              "key": "dedicated",

              "operator": "Equal",

              "value": "master",

              "effect": "NoSchedule"

            }

          ]

    spec:

      containers:

      - name: kubernetes-dashboard

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

        image: www.perofu.com:7070/kubernetes-dashboard-amd64:v1.5.0

        imagePullPolicy: Always

        ports:

        - containerPort: 9090

          protocol: TCP

        args:

        livenessProbe:

          httpGet:

            path: /

            port: 9090

          initialDelaySeconds: 30

          timeoutSeconds: 30

---

kind: Service

apiVersion: v1

metadata:

  labels:

    app: kubernetes-dashboard

  name: kubernetes-dashboard

  namespace: kube-system

spec:

  type: NodePort

  ports:

  - port: 80

    targetPort: 9090

  selector:

    app: kubernetes-dashboard

創(chuàng)建kubernetes-dashboard相關資源:

[1396][root@www: kube-dashboard]# kubectl create -f kubernetes-dashboard_1.5.0.yaml                                                      

deployment "kubernetes-dashboard" created

service "kubernetes-dashboard" created

[1397][root@www: kube-dashboard]# kubectl get pods --all-namespaces

NAMESPACE     NAME                                   READY     STATUS    RESTARTS   AGE

kube-system   kubernetes-dashboard-728075524-s6gd0   0/1       Pending   0          2s

[1398][root@www: kube-dashboard]# kubectl get pods --all-namespaces

NAMESPACE     NAME                                   READY     STATUS    RESTARTS   AGE

kube-system   kubernetes-dashboard-728075524-s6gd0   1/1       Running   0          18s

訪問kubernetes dashboard界面:

http://192.168.16.234:8080/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard/

k8s v1.5 web界面中kubernetes-dashboardv1.5的升級以及使用方法

    kubernetes dashboard V1.5,相對改變了很多,

        ①、左側的任務欄,多了k8s的資源對象

        ②、dashboard 部署應用的沒有改變

      附上幾張圖片,剩下的,大家可以去探索一下?。?!

k8s v1.5 web界面中kubernetes-dashboardv1.5的升級以及使用方法

k8s v1.5 web界面中kubernetes-dashboardv1.5的升級以及使用方法

k8s v1.5 web界面中kubernetes-dashboardv1.5的升級以及使用方法

看完上述內容,你們掌握k8s v1.5 web界面中kubernetes-dashboardv1.5的升級以及使用方法的方法了嗎?如果還想學到更多技能或想了解更多相關內容,歡迎關注億速云行業(yè)資訊頻道,感謝各位的閱讀!

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內容。

AI