1.下载chart包
http://mirror.azure.cn/kubernetes/charts/kubernetes-dashboard-1.8.0.tgz
2.解压并编写kubernetes-dashboard.yaml
image:
repository: k8s.gcr.io/kubernetes-dashboard-amd64
tag: v1.10.1
ingress:
enabled: true
hosts:
- k8s.frognew.com
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: “true”
nginx.ingress.kubernetes.io/backend-protocol: “HTTPS”
tls:
- secretName: frognew-com-tls-secret
hosts:
- k8s.frognew.com
rbac:
clusterAdminRole: true
3.下载dashboard镜像并使用docker导入到对应到所有节点
docker load -i dashboard.tar
4.使用helm安装
helm install .
-n kubernetes-dashboard
–namespace kube-system
-f kubernetes-dashboard.yaml
4.检查svc及pod运行状态