In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
K8s v1.5 web interface kubernetes-dashboardv1.5 upgrade and how to use, I believe that many inexperienced people do not know what to do, so this article summarizes the causes of the problem and solutions, through this article I hope you can solve this problem.
Kubernetes dashboard image acquisition:
Docker pull registry.cn-hangzhou.aliyuncs.com/google-containers/kubernetes-dashboard-amd64:v1.5.0
# re-tag here and push to your own image repository
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
Configuration files for kubernetes-dashboard-related resources:
[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
Create kubernetes-dashboard related resources:
[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
Access the kubernetes dashboard interface:
Http://192.168.16.234:8080/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard/
Kubernetes dashboard V1.5, which has changed a lot
①, the taskbar on the left, with more resource objects for k8s
The deployment of ② and dashboard applications remains unchanged.
Attach a few pictures, the rest, you can explore!
After reading the above, have you mastered the upgrade of kubernetes-dashboardv1.5 and how to use it in the k8s v1.5 web interface? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.