From 1210ceca72fb017ea72eccd245f5190894ff9ecf Mon Sep 17 00:00:00 2001 From: Pratheek Rebala Date: Fri, 24 May 2024 10:27:00 -0400 Subject: [PATCH] Allow scheduling constraints for operator-ui pods (#2326) --- .../templates/deployment.yaml | 9 +++++++++ charts/postgres-operator-ui/values.yaml | 15 +++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/charts/postgres-operator-ui/templates/deployment.yaml b/charts/postgres-operator-ui/templates/deployment.yaml index cf3d60752..3161ae0a7 100644 --- a/charts/postgres-operator-ui/templates/deployment.yaml +++ b/charts/postgres-operator-ui/templates/deployment.yaml @@ -94,3 +94,12 @@ spec: {{- if .Values.extraEnvs }} {{- .Values.extraEnvs | toYaml | nindent 12 }} {{- end }} + affinity: +{{ toYaml .Values.affinity | indent 8 }} + nodeSelector: +{{ toYaml .Values.nodeSelector | indent 8 }} + tolerations: +{{ toYaml .Values.tolerations | indent 8 }} + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} + {{- end }} \ No newline at end of file diff --git a/charts/postgres-operator-ui/values.yaml b/charts/postgres-operator-ui/values.yaml index 951670092..67adb930a 100644 --- a/charts/postgres-operator-ui/values.yaml +++ b/charts/postgres-operator-ui/values.yaml @@ -111,3 +111,18 @@ ingress: # - secretName: ui-tls # hosts: # - ui.exmaple.org + +# priority class for operator-ui pod +priorityClassName: "" + +# Affinity for pod assignment +# Ref: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/#affinity-and-anti-affinity +affinity: {} + +# Node labels for pod assignment +# Ref: https://kubernetes.io/docs/user-guide/node-selection/ +nodeSelector: {} + +# Tolerations for pod assignment +# Ref: https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/ +tolerations: [] \ No newline at end of file