diff --git a/templates/deployment.yaml b/templates/deployment.yaml index b63e967..45bbeef 100644 --- a/templates/deployment.yaml +++ b/templates/deployment.yaml @@ -43,6 +43,9 @@ spec: {{- if .Values.serviceAccount.create }} serviceAccountName: {{ include "pgdog.serviceAccountName" . }} {{- end }} + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} + {{- end }} {{- if .Values.terminationGracePeriodSeconds }} terminationGracePeriodSeconds: {{ .Values.terminationGracePeriodSeconds }} {{- end }} diff --git a/values.yaml b/values.yaml index 881dc75..7d33c5e 100644 --- a/values.yaml +++ b/values.yaml @@ -51,6 +51,10 @@ port: 6432 # replicas indicates how many instances of PgDog will run (HA). replicas: 2 +# priorityClassName assigns a PriorityClass to pgdog pods for scheduling priority. +# Not set by default; omitted from the pod spec unless explicitly specified. +# Example: priorityClassName: production-critical + # Uncomment to enable explicit grace period # terminationGracePeriodSeconds: 90