Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Kubernetes1.15 deployment Dashboard

2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Do the following on the master node = = deployment method 1-native file deployment: kubectl apply-f https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml

Default use port: 8001

Default image download address: google

Deployment method 2-modify image port and image address method

1. Create a yaml file for Dashboard

Wget https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml modify image sed-I 's/k8s.gcr.io/ domestic accessible image address / g' kubernetes-dashboard.yaml modify port sed-I'/ targetPort:/a\\ nodePort: 50001\ n\\ type: NodePort' kubernetes-dashboard.yaml local deployment Dashboardkubectl create-f kubernetes-dashboard. Yaml checks the running status of related services kubectl get deployment kubernetes-dashboard-n kube-systemkubectl get pods-n kube-system-o widekubectl get services-n kube-systemnetstat-ntlp | grep 50001 browser access

Browser input Dashboard access address: https://172.20.101.252:50001

Create access user and authorize kubectl create serviceaccount dashboard-admin- n kube-systemkubectl create clusterrolebinding dashboard-admin--clusterrole=cluster-admin-serviceaccount=kube-system:dashboard-admin to view the authentication token that accesses Dashboard [root@kubm-01 ~] # kubectl describe secrets-n kube-system $(kubectl-n kube-system get secret | awk'/ dashboard-admin/ {print $1}') Name: dashboard-admin-token-x5qt8Namespace: kube-systemLabels: Annotations: kubernetes.io/ Service-account.name: dashboard-admin kubernetes.io/service-account.uid: 24900572-5faf-4ea5-b343-829517f5b871Type: kubernetes.io/service-account-tokenData====ca.crt: 1025 bytesnamespace: 11 bytestoken: eyJhbGciOiJSUzI1NiIsImtpZCI6IiJ9.eyJpc3MiOiJrdWJlcm5ldGVzL3NlcnZpY2VhY2NvdW50Iiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9uYW1lc3BhY2UiOiJrdWJlLXN5c3RlbSIsImt1YmVybmV0ZXMuaW8vc2VydmljZWFjY291bnQvc2VjcmV0Lm5hbWUiOiJkYXNoYm9hcmQtYWRtaW4tdG9rZW4teDVxdDgiLCJrdWJlcm5ldGVzLmlvL3NlcnZpY2VhY2NvdW50L3NlcnZpY2UtYWNjb3VudC5uYW1lIjoiZGFzaGJvYXJkLWFkbWluIiwia3ViZXJuZXRlcy5pby9zZXJ2aWNlYWNjb3VudC9zZXJ2aWNlLWFjY291bnQudWlkIjoiMjQ5MDA1NzItNWZhZi00ZWE1LWIzNDMtODI5NTE3ZjViODcxIiwic3ViIjoic3lzdGVtOnNlcnZpY2VhY2NvdW50Omt1YmUtc3lzdGVtOmRhc2hib2FyZC1hZG1pbiJ9.vvLlroVjuZ42m5E4ywT_vPLElfUPN67R0xu4GcbomTNyzjYic6SCsNxo-I-uIRuVtSu-O-cv2ECdLeshApzsZEc9Wr23XTdb8lHT3yHvXuT3o7SRPl74YxUcxRvW19H7O4RMQ4Y5Mu4j-W4QAsS7Y6yMphLijre60qlaE5-yDwm0VnXBg59AbVlIaTnya8VChp7sEHXNPORcdqvonMVojkJitH8567AD1mxb94m1eL3OU8CrN_UHZhWLvU27VSzdwCL6SIwUi8iy18uOvH-3_HFJs93Wt48LwfgDD0xNioDdkDiO7qr9qbpttNUWCXKnfpY3Jyk0UreBtP8VHUBJwg enter token

Click to log in

Project address

Https://github.com/kubernetes/dashboard

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report