部署k8s的dashboard
dashboard安装部署(一)wget https://www.qstack.com.cn/dashboard.zipunzip dashboard.zipvim dashboard-deploy.yaml...ports:- containerPort: 9090args:---apiserver-host=http://10.0.0.11:8080livenessProbe:httpGe.
·
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
访问
更多推荐
已为社区贡献15条内容
所有评论(0)