Allow setting custom kubernetes labels when using the helm chart

This commit is contained in:
Arie Peterson 2021-10-05 11:36:24 +02:00
parent c406607fd2
commit 966670fe70
2 changed files with 12 additions and 0 deletions

View file

@ -8,6 +8,9 @@ metadata:
component: wekan
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
{{- if .Values.deploymentLabels }}
{{- toYaml .Values.deploymentLabels | nindent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
@ -22,6 +25,9 @@ spec:
app: {{ template "wekan.name" . }}
component: wekan
release: {{ .Release.Name }}
{{- if .Values.podLabels }}
{{- toYaml .Values.podLabels | nindent 8 }}
{{- end }}
spec:
serviceAccountName: {{ template "wekan.serviceAccountName" . }}
containers:

View file

@ -103,6 +103,12 @@ autoscaling:
##
targetCPUUtilizationPercentage: 80
# Optional custom labels for the deployment resource.
deploymentLabels: {}
# Optional custom labels for the pods created by the deployment.
podLabels: {}
# ------------------------------------------------------------------------------
# MongoDB:
# ------------------------------------------------------------------------------