k8s v1.5 WEB界面中kubernetes-dashboardv1.5的升级以及使用方法,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。kubernetes d
k8s v1.5 WEB界面中kubernetes-dashboardv1.5的升级以及使用方法,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。
Docker pull reGIStry.cn-hangzhou.aliyuncs.com/Google-containers/kubernetes-dashboard-amd64:v1.5.0 #这里重新tag,并push到自己的镜像仓库了docker tag e5133bac8024 www.perofu.com:7070/kubernetes-dashboard-amd64:v1.5.0 docker push www.perofu.com:7070/kubernetes-dashboard-amd64:v1.5.0 |
[root@www: kube-dashboard]#curl -O kubernetes-dashboard_1.5.0.yaml https://rawgit.com/kubernetes/dashboard/master/src/deploy/kubernetes-dashboard.yaml [1446][root@www: kube-dashboard]#cat kubernetes-dashboard_1.5.0.yaml kind: Deployment apiVersion: extensions/v1beta1 metadata: labels: app: kubernetes-dashboard name: kubernetes-dashboard namespace: kube-system spec: replicas: 1 revisionHistoryLimit: 10 selector: matchLabels: app: kubernetes-dashboard template: metadata: labels: app: kubernetes-dashboard # Comment the following annotation if Dashboard must not be deployed on master annotations: scheduler.alpha.kubernetes.io/tolerations: | [ { "key": "dedicated", "operator": "Equal", "value": "master", "effect": "NoSchedule" } ] spec: containers: - name: kubernetes-dashboard #image: GCr.io/google_containers/kubernetes-dashboard-amd64:v1.5.0 image: www.perofu.com:7070/kubernetes-dashboard-amd64:v1.5.0 imagePullPolicy: Always ports: - containerPort: 9090 protocol: tcp args: livenessProbe: HttpGet: path: / port: 9090 initialDelaySeconds: 30 timeoutSeconds: 30 --- kind: Service apiVersion: v1 metadata: labels: app: kubernetes-dashboard name: kubernetes-dashboard namespace: kube-system spec: type: nodePort ports: - port: 80 targetPort: 9090 selector: app: kubernetes-dashboard |
[1396][root@www: kube-dashboard]# kubectl create -f kubernetes-dashboard_1.5.0.yaml deployment "kubernetes-dashboard" created service "kubernetes-dashboard" created [1397][root@www: kube-dashboard]# kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system kubernetes-dashboard-728075524-s6gd0 0/1 Pending 0 2s [1398][root@www: kube-dashboard]# kubectl get pods --all-namespaces NAMESPACE NAME READY STATUS RESTARTS AGE kube-system kubernetes-dashboard-728075524-s6gd0 1/1 Running 0 18s |
http://192.168.16.234:8080/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard/
kubernetes dashboard V1.5,相对改变了很多,
①、左侧的任务栏,多了k8s的资源对象
②、dashboard 部署应用的没有改变
附上几张图片,剩下的,大家可以去探索一下!!!
看完上述内容,你们掌握k8s v1.5 web界面中kubernetes-dashboardv1.5的升级以及使用方法的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注编程网精选频道,感谢各位的阅读!
--结束END--
本文标题: k8s v1.5 web界面中kubernetes-dashboardv1.5的升级以及使用方法
本文链接: https://lsjlt.com/news/295406.html(转载时请注明来源链接)
有问题或投稿请发送至: 邮箱/279061341@qq.com QQ/279061341
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
2024-05-24
回答
回答
回答
回答
回答
回答
回答
回答
回答
回答
0