diff --git a/charts/mailcrab/README.md b/charts/mailcrab/README.md index 3b709e3..8150272 100644 --- a/charts/mailcrab/README.md +++ b/charts/mailcrab/README.md @@ -23,6 +23,7 @@ A Helm chart for deploying MailCrab in Kubernetes. | nameOverride | string | `""` | Configure the name override for resources. | | podAnnotations | object | `{}` | Configure annotations to be required by the pods to run the application. | | podSecurityContext | object | `{}` | Configure the pod security context. | +| priorityClassName | string | `""` | | | replicaCount | int | `1` | Configure the number of replicas to run. | | resources | object | `{}` | Enable autoscaling for the deployment. | | securityContext | object | `{}` | Configure the security context for the container. | diff --git a/charts/mailcrab/templates/deployment.yaml b/charts/mailcrab/templates/deployment.yaml index 0588cec..2a7a4d1 100644 --- a/charts/mailcrab/templates/deployment.yaml +++ b/charts/mailcrab/templates/deployment.yaml @@ -24,6 +24,7 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + priorityClassName: {{ .Values.priorityClassName }} serviceAccountName: {{ include "mailcrab.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} diff --git a/charts/mailcrab/values.yaml b/charts/mailcrab/values.yaml index e5d8d8b..35c4336 100644 --- a/charts/mailcrab/values.yaml +++ b/charts/mailcrab/values.yaml @@ -65,6 +65,10 @@ securityContext: {} # runAsNonRoot: true # runAsUser: 1000 +# Name of an existing PriorityClass to assign, defining the importance of the pods compared to other pods in the cluster. +# Ref: https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/ +priorityClassName: "" + service: # -- The type of service to create. type: ClusterIP