k8s v1.5 web界面中kubernetes-dashboardv1.5的升级以及使用方法,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。
成都创新互联专业IDC数据服务器托管提供商,专业提供成都服务器托管,服务器租用,四川雅安服务器托管,四川雅安服务器托管,成都多线服务器托管等服务器托管服务。
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的升级以及使用方法的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注创新互联行业资讯频道,感谢各位的阅读!