Kubernetes- Dashboard deployment

  • Yaml get the file dashboard
  • Modify image configuration - default is k8s foreign country can not access the image library can be replaced by Ali cloud or the other.
    • vim Kubernetes-dashboard.yaml
    • Downloadable dashboard under search image
    • Under modifications to other posts here I used in the
    •    

  • Execution kubectl created after editing
    • kubectl apply -f kubernetes-dashboard.yaml
    • After the execution is complete view dashboard pod dashboard service is already started created
    •    

    • Now you can access in your browser to 30003 port of
  • dashboard created how to log it? The following log is created Clusteradmin SA gives permission otherwise you are prompted to log back no authority can not access other Namespace resource error, etc.
    • Command to create a SA Service the Account
    • kubectl create serviceaccount dashboard-admin -n kube-system
    • Next, create a Cluster rolebinding
    • kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin
    • After you create can be completed in webUI logged.
    • The token for login webUI
    • kubectl describe secrets -n kube-system $(kubectl -n kube-system get secret | awk '/dashboard-admin/{print $1}')
    • Sign in to get the token copy
    •    

  • to sum up
    • This dashboard deployment is complete. Note 1.dashboard image modification 2.service nodePort port 3. modify browser issues currently use firefox chrmoe inaccessible.

Guess you like

Origin www.cnblogs.com/lbjstill/p/11726340.html