diff --git a/charts/egressd/templates/collector/daemonSet.yaml b/charts/egressd/templates/collector/daemonSet.yaml index 89dd456..17507d6 100644 --- a/charts/egressd/templates/collector/daemonSet.yaml +++ b/charts/egressd/templates/collector/daemonSet.yaml @@ -26,6 +26,9 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + {{- if .Values.collector.priorityClassName }} + priorityClassName: {{ .Values.collector.priorityClassName }} + {{- end }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} diff --git a/charts/egressd/templates/exporter/deployment.yaml b/charts/egressd/templates/exporter/deployment.yaml index 45c2a8e..c0ea07b 100644 --- a/charts/egressd/templates/exporter/deployment.yaml +++ b/charts/egressd/templates/exporter/deployment.yaml @@ -28,6 +28,9 @@ spec: {{- toYaml . | nindent 8 }} {{- end }} spec: + {{- if .Values.exporter.priorityClassName }} + priorityClassName: {{ .Values.exporter.priorityClassName }} + {{- end }} {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} diff --git a/charts/egressd/values.yaml b/charts/egressd/values.yaml index 8c8f387..ec08ffb 100644 --- a/charts/egressd/values.yaml +++ b/charts/egressd/values.yaml @@ -37,6 +37,8 @@ collector: # If not set and create is true, a name is generated using the fullname template name: "" + ## The name of the PriorityClass for collector pods + priorityClassName: "system-node-critical" ## Annotations to be added to collector pod ## @@ -121,6 +123,9 @@ exporter: name: "" + ## The name of the PriorityClass for exporter pods + priorityClassName: "system-node-critical" + ## Annotations to be added to exporter pod ## podAnnotations: { }