Skip to content

Commit

Permalink
Add support for custom priorityClassName
Browse files Browse the repository at this point in the history
  • Loading branch information
yahel2410 committed Mar 25, 2024
1 parent 35b04a7 commit 5e7206c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/localstack/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
Expand Down
1 change: 1 addition & 0 deletions charts/localstack/test-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ command:
## cause the LocalStack instance to crash.
## Ref: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy
dnsPolicy: "Default"
priorityClassName: "system-cluster-critical" # built-in priority class in most k8s distributions

# enable startup scripts, create a startup script which creates an SQS queue
enableStartupScripts: true
Expand Down
4 changes: 4 additions & 0 deletions charts/localstack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -247,3 +247,7 @@ volumeMounts: []
# - name: <VOLUME_NAME>
# mountPath: <CONTAINER_PATH>
# readOnly: true

## @param priorityClassName Allows you to set the priorityClassName for the pod
## The default is not to set any priorityClassName
# priorityClassName: ""

0 comments on commit 5e7206c

Please sign in to comment.