在这里插入图片描述

dashboard安装部署(一)

wget https://www.qstack.com.cn/dashboard.zip
unzip dashboard.zip

vim dashboard-deploy.yaml
...
 ports:
        - containerPort: 9090
        args:
         -  --apiserver-host=http://10.0.0.11:8080
        livenessProbe:
          httpGet:
            path: /
            port: 9090
          initialDelaySeconds: 30
          timeoutSeconds: 30

dashboard安装部署(二)

安装:
[root@k8s-master dashboard]# kubectl create -f dashboard-deploy.yaml 
deployment "kubernetes-dashboard-latest" created
[root@k8s-master dashboard]# kubectl create -f dashboard-svc.yaml 
service “kubernetes-dashboard” created

检查:
[root@k8s-master dashboard]# kubectl get pod --namespace=kube-system 
NAME                                           READY     STATUS    RESTARTS   AGE
kube-dns-453684471-gxhwn                       4/4       Running   16         23h
kubernetes-dashboard-latest-1012954252-8gvcp   1/1       Running   0          4m


访问

在这里插入图片描述

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐