Centos7 k8s部署dahsboard
阿新 • • 發佈:2021-01-15
一、k8s部署dahsboard
1、pull映象到本地,並上傳至私有倉庫
[[email protected] ~]# docker pull docker.io/siriuszg/kubernetes-dashboard-amd64:v1.5.1
[[email protected] ~]# docker tag docker.io/siriuszg/kubernetes-dashboard-amd64:v1.5.1 192.168.125.130:5000/kubernetes-dashboard:v1.5.1
[[email protected] ~]# docker push 192.168.125.130:5000/kubernetes-dashboard:v1.5.1
2、修改配置檔案,並建立dashboard
[[email protected] ~]# vim kubernetes-dashboard.yaml kind: Deployment apiVersion: extensions/v1beta1 metadata: labels: app: kubernetes-dashboard name: kubernetes-dashboard namespace: kube-system spec: replicas: 1 selector: matchLabels: app: kubernetes-dashboard template: metadata: labels: app: kubernete