diff --git a/charts/localstack/templates/deployment.yaml b/charts/localstack/templates/deployment.yaml index f6d1860..f7ace62 100644 --- a/charts/localstack/templates/deployment.yaml +++ b/charts/localstack/templates/deployment.yaml @@ -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 }} diff --git a/charts/localstack/test-values.yaml b/charts/localstack/test-values.yaml index 9b76c8b..519b54f 100644 --- a/charts/localstack/test-values.yaml +++ b/charts/localstack/test-values.yaml @@ -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 diff --git a/charts/localstack/values.yaml b/charts/localstack/values.yaml index d4f4f8c..cd32e99 100644 --- a/charts/localstack/values.yaml +++ b/charts/localstack/values.yaml @@ -247,3 +247,7 @@ volumeMounts: [] # - name: # mountPath: # readOnly: true + +## @param priorityClassName Allows you to set the priorityClassName for the pod +## The default is not to set any priorityClassName +# priorityClassName: ""