Kubernetes(十三)部署Web UI(Dashboard)
2021-04-22 22:26
标签:*** rip admin 创建 tar generic name desc running Kubernetes(十三)部署Web UI(Dashboard) 标签:*** rip admin 创建 tar generic name desc running 原文地址:https://www.cnblogs.com/TSir/p/12240923.htmlkubectl apply -f https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta8/aio/deploy/recommended.yaml
kubectl apply -f
recommended.yaml
注意:默认的官方没有暴露外部端口,我们自己设置以下
nodePort: 30001
or
使用我们准备的yaml
6.9 KB
kubectl apply -f
dashboard.yaml
二、查看pod
kubectl get pods -n kubernetes-dashboard
输出以下内容
NAME READY STATUS RESTARTS AGE
dashboard-metrics-scraper-76585494d8-sbzjv 1/1 Running 0 2m6s
kubernetes-dashboard-5996555fd8-fc7zf 1/1 Running 2 2m6s
三、查看端口
service/dashboard-metrics-scraper ClusterIP 10.0.0.8
service/kubernetes-dashboard NodePort 10.0.0.88
373 bytes
kubectl apply -f
dashboard-adminuser.yaml
文章标题:Kubernetes(十三)部署Web UI(Dashboard)
文章链接:http://soscw.com/index.php/essay/78264.html