1.配置helm源
helm 查看本地配置的源
# helm repo list
helm 删除配置的源
# helm repo remove stable
hlem 配置新的源
# helm repo add stable https://burdenbear.github.io/kube-charts-mirror/
2.下载kubernetes-dashboard chart包
[root@master helm]# helm search stable/kubernetes-dashboard
NAME CHART VERSION APP VERSION DESCRIPTION
stable/kubernetes-dashboard 1.10.1 1.10.1 General-purpose web UI for Kubernetes clusters
[root@master helm]# helm fetch stable/kubernetes-dashboard
[root@master helm]# ls
kubernetes-dashboard-1.10.1.tgz
[root@master helm]# tar -xvf kubernetes-dashboard-1.10.1.tgz
[root@master helm]# cd kubernetes-dashboard/
[root@master kubernetes-dashboard]# ls
Chart.yaml README.md templates values.yaml
3.自定义配置文件
[root@master kubernetes-dashboard]# cat <<EOF> my-values.yaml
image:
repository: registry.cn-shanghai.aliyuncs.com/zdl_work/kubernetes-dashboard-amd64
tag: v1.10.1
ingress:
enabled: true
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: 'true'
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
paths:
- /
hosts:
- dashboard.wanfei.wang
tls:
- secretName: kubernetes-dashboard-tls
hosts:
- dashboard.wanfei.wang
rbac:
clusterAdminRole: true
serviceAccount:
name: dashboard-admin
EOF