Skip to content

Commit 1210cec

Browse files
authoredMay 24, 2024
Allow scheduling constraints for operator-ui pods (#2326)
1 parent b550f8a commit 1210cec

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed
 

‎charts/postgres-operator-ui/templates/deployment.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,12 @@ spec:
9494
{{- if .Values.extraEnvs }}
9595
{{- .Values.extraEnvs | toYaml | nindent 12 }}
9696
{{- end }}
97+
affinity:
98+
{{ toYaml .Values.affinity | indent 8 }}
99+
nodeSelector:
100+
{{ toYaml .Values.nodeSelector | indent 8 }}
101+
tolerations:
102+
{{ toYaml .Values.tolerations | indent 8 }}
103+
{{- if .Values.priorityClassName }}
104+
priorityClassName: {{ .Values.priorityClassName }}
105+
{{- end }}

‎charts/postgres-operator-ui/values.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,18 @@ ingress:
111111
# - secretName: ui-tls
112112
# hosts:
113113
# - ui.exmaple.org
114+
115+
# priority class for operator-ui pod
116+
priorityClassName: ""
117+
118+
# Affinity for pod assignment
119+
# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity
120+
affinity: {}
121+
122+
# Node labels for pod assignment
123+
# Ref: https://kubernetes.io/docs/user-guide/node-selection/
124+
nodeSelector: {}
125+
126+
# Tolerations for pod assignment
127+
# Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/
128+
tolerations: []

0 commit comments

Comments
 (0)