Get the App
SLTechnology News&Howtos  ›  Servers  › 

Kubernetes1.15 deployment Dashboard

Shulou Source: shulou.com Published: 2022-06-02 17:20:07 10月24日 Update

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

Tags: Address image method port file browser browse input token status user node project service check login authentication run Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MySQL OPPO Reno Xiaomi Linux