Merge pull request #8236 from Rory-Z/chore/add-pod-annotation
chore(helm): add pod annotation
This commit is contained in:
commit
627112fd75
|
@ -40,6 +40,8 @@ Parameter | Description | Default Value
|
||||||
`image.pullPolicy` | The image pull policy | `IfNotPresent`
|
`image.pullPolicy` | The image pull policy | `IfNotPresent`
|
||||||
`image.pullSecrets ` | The image pull secrets (does not add image pull secrets to deployed pods) |``[]``
|
`image.pullSecrets ` | The image pull secrets (does not add image pull secrets to deployed pods) |``[]``
|
||||||
`recreatePods` | Forces the recreation of pods during upgrades, which can be useful to always apply the most recent configuration. | `false`
|
`recreatePods` | Forces the recreation of pods during upgrades, which can be useful to always apply the most recent configuration. | `false`
|
||||||
|
`podAnnotations ` | Annotations for pod | `{}`
|
||||||
|
`podManagementPolicy`| To redeploy a chart with existing PVC(s), the value must be set to Parallel to avoid deadlock | `Parallel`
|
||||||
`persistence.enabled` | Enable EMQX persistence using PVC | `false`
|
`persistence.enabled` | Enable EMQX persistence using PVC | `false`
|
||||||
`persistence.storageClass` | Storage class of backing PVC (uses alpha storage class annotation) | `nil`
|
`persistence.storageClass` | Storage class of backing PVC (uses alpha storage class annotation) | `nil`
|
||||||
`persistence.existingClaim` | EMQX data Persistent Volume existing claim name, evaluated as a template | `""`
|
`persistence.existingClaim` | EMQX data Persistent Volume existing claim name, evaluated as a template | `""`
|
||||||
|
|
|
@ -56,8 +56,11 @@ spec:
|
||||||
version: {{ .Chart.AppVersion }}
|
version: {{ .Chart.AppVersion }}
|
||||||
app.kubernetes.io/name: {{ include "emqx.name" . }}
|
app.kubernetes.io/name: {{ include "emqx.name" . }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
{{- if .Values.recreatePods }}
|
|
||||||
annotations:
|
annotations:
|
||||||
|
{{- with .Values.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.recreatePods }}
|
||||||
checksum/config: {{ $configData | sha256sum | quote }}
|
checksum/config: {{ $configData | sha256sum | quote }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
|
|
@ -17,6 +17,8 @@ image:
|
||||||
## Forces the recreation of pods during helm upgrades. This can be useful to update configuration values even if the container image did not change.
|
## Forces the recreation of pods during helm upgrades. This can be useful to update configuration values even if the container image did not change.
|
||||||
recreatePods: false
|
recreatePods: false
|
||||||
|
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
# Pod deployment policy
|
# Pod deployment policy
|
||||||
# value: OrderedReady | Parallel
|
# value: OrderedReady | Parallel
|
||||||
# To redeploy a chart with existing PVC(s), the value must be set to Parallel to avoid deadlock
|
# To redeploy a chart with existing PVC(s), the value must be set to Parallel to avoid deadlock
|
||||||
|
@ -253,4 +255,4 @@ containerSecurityContext:
|
||||||
|
|
||||||
metrics:
|
metrics:
|
||||||
enabled: false
|
enabled: false
|
||||||
type: prometheus
|
type: prometheus
|
||||||
|
|
Loading…
Reference in New Issue