File tree Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Expand file tree Collapse file tree 2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change 52
52
{{- if .Values.controllerID.create }}
53
53
- name : CONTROLLER_ID
54
54
value : {{ template "postgres-operator.controllerID" . }}
55
+ {{- end }}
56
+ {{- if .Values.extraEnvs }}
57
+ {{- .Values.extraEnvs | toYaml | nindent 12 }}
55
58
{{- end }}
56
59
resources :
57
60
{{ toYaml .Values.resources | indent 10 }}
Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ priorityClassName: ""
478
478
# priority class for database pods
479
479
podPriorityClassName :
480
480
# If create is false with no name set, no podPriorityClassName is specified.
481
- # Hence, the pod priorityClass is the one with globalDefault set.
481
+ # Hence, the pod priorityClass is the one with globalDefault set.
482
482
# If there is no PriorityClass with globalDefault set, the priority of Pods with no priorityClassName is zero.
483
483
create : true
484
484
# If not set a name is generated using the fullname template and "-pod" suffix
@@ -504,6 +504,24 @@ readinessProbe:
504
504
initialDelaySeconds : 5
505
505
periodSeconds : 10
506
506
507
+ # configure extra environment variables
508
+ # Extra environment variables are writen in kubernetes format and added "as is" to the pod's env variables
509
+ # https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container/
510
+ # https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/pod-v1/#environment-variables
511
+ extraEnvs :
512
+ []
513
+ # Exemple of settings maximum amount of memory / cpu that can be used by go process (to match resources.limits)
514
+ # - name: MY_VAR
515
+ # value: my-value
516
+ # - name: GOMAXPROCS
517
+ # valueFrom:
518
+ # resourceFieldRef:
519
+ # resource: limits.cpu
520
+ # - name: GOMEMLIMIT
521
+ # valueFrom:
522
+ # resourceFieldRef:
523
+ # resource: limits.memory
524
+
507
525
# Affinity for pod assignment
508
526
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
509
527
affinity : {}
You can’t perform that action at this time.
0 commit comments