Skip to content

Commit

Permalink
Add priorityClassName to community operator (#311)
Browse files Browse the repository at this point in the history
* Add priorityClassName to mongodb community operator
  • Loading branch information
vramperez authored Apr 18, 2024
1 parent 8860a78 commit f7f1cd0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/community-operator/templates/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ spec:
securityContext:
{{- toYaml .Values.operator.securityContext | nindent 12 }}
{{- end }}
{{- if .Values.operator.priorityClassName }}
priorityClassName: {{ .Values.operator.priorityClassName }}
{{- end }}
{{- if .Values.operator.podSecurityContext }}
securityContext:
{{- toYaml .Values.operator.podSecurityContext | nindent 8 }}
Expand Down
4 changes: 4 additions & 0 deletions charts/community-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ operator:
cpu: 500m
memory: 200Mi

# PriorityClass configuration for operator
# ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/#priorityclass
priorityClassName: ""

# replicas deployed for the operator pod. Running 1 is optimal and suggested.
replicas: 1

Expand Down

0 comments on commit f7f1cd0

Please sign in to comment.