Kubernetes 1.6 配置可视化界面
2021-03-04 11:28
标签:类型 https access ash 定义 grep -o 图片 images kubenetes官网:https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/ 所以kubenetes v1.16.0 应该使用新版dashboard ui才兼容 ? 查看github,用到的镜像有两个dashboard:v2.0.0-beta4、metrics-scraper:v1.0.1 先拉取镜像,本人使用的docker版本19.03.2 主节点从节点都需要拉镜像 获取yaml文件 修改recommended.yaml文件,为了方便访问,修改kubernetes-dashboard的Service定义,指定Service的type类型为NodeType,指定nodePort端口 kubectl apply -f recommended.yaml``` 运行结果如图所示: kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep admin-user | awk ‘{print $1}‘) Kubernetes 1.6 配置可视化界面 标签:类型 https access ash 定义 grep -o 图片 images 原文地址:https://blog.51cto.com/14040759/2509201
这是官网的截图,但是我去下载发现不成功
其实真正的地址在
https://github.com/kubernetes/dashboard/blob/master/aio/deploy/recommended.yamlkubernetesui/dashboard:v2.0.0-beta4
kubernetesui/metrics-scraper:v1.0.1
docker pull kubernetesui/dashboard:v2.0.0-beta4
docker pull kubernetesui/metrics-scraper:v1.0.1
拉成功后https://github.com/kubernetes/dashboard/blob/master/aio/deploy/recommended.yaml```
kind: Service
apiVersion: v1
metadata:
labels:
k8s-app: kubernetes-dashboard
name: kubernetes-dashboard
namespace: kubernetes-dashboard
spec:
type: NodePort # 改成NodePort
ports:
targetPort: 8443
nodePort: 31001 # 指定nodePort端口
selector:
k8s-app: kubernetes-dashboard
修改完后
查看是否启动kubectl get pods -n kubernetes-dashboard -o wide```
![](https://s4.51cto.com/images/blog/202007/07/694dfd9501194038bb69bbad87aeea1a.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
获取查看token
![](https://s4.51cto.com/images/blog/202007/07/197a187374e45718eb9546fb12b597b7.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
访问https: 31001
输入token
![](https://s4.51cto.com/images/blog/202007/07/367e2f84336b7557bf8cb285b14071c4.png?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
上一篇:jQuery 之 dom操作
下一篇:JS身份证合法性校验完全版
文章标题:Kubernetes 1.6 配置可视化界面
文章链接:http://soscw.com/index.php/essay/59971.html