kube-ui是k8s提供的web管理界面,可以展示节点的内存、CPU、磁盘、Pod、RC、SVC等信息。

1.编辑kube-dashboard-rc.yml定义文件
[root@kubernetes-master pods]# cat kubernetes-dashboard-rc.yml

 1 kind: ReplicationController
 2 apiVersion: v1
 3 metadata:
 4   labels:
 5     app: kubernetes-dashboard
 6   name: kubernetes-dashboard
 7   namespace: kube-system
 8 spec:
 9   replicas: 1
10   selector:
11       app: kubernetes-dashboard
12   template:
13     metadata:
14       labels:
15         app: kubernetes-dashboard
16     spec:
17       containers:
18       - name: kubernetes-dashboard
19         image: docker.gaoxiaobang.com/kubernetes/kube-ui:v5
20         imagePullPolicy: Always
21         ports:
22         - containerPort: 8080
23         livenessProbe:  
24           httpGet:  
25             path: /  
26             port: 8080  
27           initialDelaySeconds: 30  
28           timeoutSeconds: 5
kubernetes-dashboard-rc.yml

相关文章:

  • 2022-01-24
  • 2021-12-31
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-05
  • 2022-12-23
  • 2021-07-05
  • 2022-12-23
  • 2021-05-31
  • 2021-04-25
相关资源
相似解决方案