1.11.1 安装Dashboard

在Master01节点创建Dashboard(该命令包含管理员用户的创建):

     # cd /root/k8s-ha-install/dashboard/
     # kubectl  create -f .
     serviceaccount/admin-user created
     clusterrolebinding.rbac.authorization.k8s.io/admin-user created
     namespace/kubernetes-dashboard created
     serviceaccount/kubernetes-dashboard created
     service/kubernetes-dashboard created
     secret/kubernetes-dashboard-certs created
     secret/kubernetes-dashboard-csrf created
     secret/kubernetes-dashboard-key-holder created
     configmap/kubernetes-dashboard-settings created
     role.rbac.authorization.k8s.io/kubernetes-dashboard created
     clusterrole.rbac.authorization.k8s.io/kubernetes-dashboard created
     rolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created
     clusterrolebinding.rbac.authorization.k8s.io/kubernetes-dashboard created
     deployment.apps/kubernetes-dashboard created
     service/dashboard-metrics-scraper created
     deployment.apps/dashboard-metrics-scraper created