中文字幕av专区_日韩电影在线播放_精品国产精品久久一区免费式_av在线免费观看网站

溫馨提示×

溫馨提示×

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

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

部署kubernetes-dashboard

發布時間:2020-03-24 01:59:19 來源:網絡 閱讀:277 作者:蘭朝亞 欄目:系統運維

在線部署
kubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml

為了方便使用,修改Service 類型為NodePort
kubectl edit service/kubernetes-dashboard -n kubernetes-dashboard
添加 type: NodePort
修改 nodePort: 30001
并保存

apiVersion: v1
kind: Service
metadata:
  annotations:
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"v1","kind":"Service","metadata":{"annotations":{},"labels":{"k8s-app":"kubernetes-dashboard"},"name":"kubernetes-dashboard","namespace":"kubernetes-dashboard"},"spec":{"ports":[{"port":443,"targetPort":8443}],"selector":{"k8s-app":"kubernetes-dashboard"}}}
  creationTimestamp: "2020-01-07T16:31:17Z"
  labels:
    k8s-app: kubernetes-dashboard
  name: kubernetes-dashboard
  namespace: kubernetes-dashboard
  resourceVersion: "13889"
  selfLink: /api/v1/namespaces/kubernetes-dashboard/services/kubernetes-dashboard
  uid: 26fbfe40-bace-40e5-9a59-efdbb38cca4f
spec:
  clusterIP: 10.110.70.158
  externalTrafficPolicy: Cluster
  ports:
  - nodePort: 30001
    port: 443
    protocol: TCP
    targetPort: 8443
  selector:
    k8s-app: kubernetes-dashboard
  sessionAffinity: None
  type: NodePort
status:
  loadBalancer: {}

之后,應用dashboard-adminuser.yaml:

apiVersion: v1
kind: ServiceAccount
metadata:
  name: admin-user
  namespace: kubernetes-dashboard
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
  name: admin-user
roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: cluster-admin
subjects:
- kind: ServiceAccount
  name: admin-user
  namespace: kubernetes-dashboard
向AI問一下細節
推薦閱讀:
  1. sybase部署
  2. Django部署

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

AI

乳山市| 霞浦县| 恩施市| 华池县| 蓝山县| 铅山县| 泰宁县| 丰城市| 清河县| 天柱县| 嘉兴市| 五家渠市| 衡阳县| 南陵县| 盈江县| 秭归县| 黄大仙区| 曲阜市| 遂宁市| 旅游| 双鸭山市| 武汉市| 平果县| 密云县| 铁力市| 丽水市| 瑞安市| 宁海县| 方山县| 抚松县| 吴桥县| 翼城县| 祁连县| 石渠县| 扶绥县| 淳安县| 杭锦旗| 东兰县| 兴安盟| 虞城县| 融水|