1. 程式人生 > 其它 >Centos7 k8s部署dahsboard

Centos7 k8s部署dahsboard

技術標籤:linux企業運維linuxcentosk8s

一、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