diff --git a/deploy/helm/README.md b/deploy/helm/README.md index 2e805c6..1c018ba 100644 --- a/deploy/helm/README.md +++ b/deploy/helm/README.md @@ -20,6 +20,7 @@ A Helm chart to deploy alertmanager-discord to Kubernetes | nodeSelector | object | `{}` | | | podAnnotations | object | `{}` | | | podSecurityContext.fsGroup | int | `2000` | | +| priorityClassName | string | `""` | https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/ | | replicaCount | int | `1` | | | resources.limits.cpu | string | `"100m"` | | | resources.limits.memory | string | `"128Mi"` | | diff --git a/deploy/helm/templates/deployment.yaml b/deploy/helm/templates/deployment.yaml index d1b7c81..7c03c3f 100644 --- a/deploy/helm/templates/deployment.yaml +++ b/deploy/helm/templates/deployment.yaml @@ -22,6 +22,9 @@ spec: imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} + {{- end }} serviceAccountName: {{ include "alertmanager-discord.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} diff --git a/deploy/helm/values.yaml b/deploy/helm/values.yaml index c9ac44c..4533669 100644 --- a/deploy/helm/values.yaml +++ b/deploy/helm/values.yaml @@ -24,6 +24,9 @@ podAnnotations: {} podSecurityContext: fsGroup: 2000 +# -- https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/ +priorityClassName: "" + securityContext: capabilities: drop: