未验证 提交 ea7b6f87 编写于 作者: R Reuben Mannell 提交者: GitHub

Helm Chart: Add options for extraVolumes and extraVolumeMounts (#5525)

* [helm-chart] Add ability to specify extraVolumes and extraVolumeMounts

* [helm-chart] Update README with new config options for extraVolumes and extraVolumeMounts

* [helm-chart] Bump chart version to 2.5.1

* [helm-chart] Bump chart version to 2.6.0 since this add a new feature
上级 5ee57a1f
......@@ -14,7 +14,7 @@
apiVersion: v1
name: kubernetes-dashboard
version: 2.5.0
version: 2.6.0
appVersion: 2.0.3
description: General-purpose web UI for Kubernetes clusters
keywords:
......
......@@ -79,6 +79,8 @@ Parameter | Description
`labels` | Labels for deployment | `{}`
`extraArgs` | Additional container arguments | `[]`
`extraEnv` | Additional container environment variables | `[]`
`extraVolumes` | Additional volumes | `[]`
`extraVolumeMounts` | Additional container volumeMounts | `[]`
`podAnnotations` | Annotations to be added to pods | `seccomp.security.alpha.kubernetes.io/pod: 'runtime/default'}`
`podLabels` | Labels to be added to pods | `{}`
`nodeSelector` | node labels for pod assignment | `{}`
......
......@@ -90,6 +90,9 @@ spec:
# Create on-disk volume to store exec logs
- mountPath: /tmp
name: tmp-volume
{{- with .Values.extraVolumeMounts }}
{{ toYaml . | indent 8 }}
{{- end }}
livenessProbe:
httpGet:
{{- if .Values.protocolHttp }}
......@@ -156,6 +159,9 @@ spec:
secretName: {{ template "kubernetes-dashboard.fullname" . }}-certs
- name: tmp-volume
emptyDir: {}
{{- with .Values.extraVolumes }}
{{ toYaml . | indent 6 }}
{{- end }}
{{- with .Values.tolerations }}
tolerations:
{{ toYaml . | indent 8 }}
......
......@@ -43,6 +43,21 @@ extraEnv: []
# - name: SOME_VAR
# value: 'some value'
## Additional volumes to be added to kubernetes dashboard pods
##
extraVolumes: []
# - name: dashboard-kubeconfig
# secret:
# defaultMode: 420
# secretName: dashboard-kubeconfig
## Additional volumeMounts to be added to kubernetes dashboard pods
##
extraVolumeMounts: []
# - mountPath: /kubeconfig
# name: dashboard-kubeconfig
# readOnly: true
# Annotations to be added to kubernetes dashboard pods
podAnnotations:
seccomp.security.alpha.kubernetes.io/pod: 'runtime/default'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册