From cf5f14c6c66a0ed698f83a38a118e4ef3065ab54 Mon Sep 17 00:00:00 2001 From: Gabriele Diener Date: Thu, 9 Jan 2020 15:59:30 +0100 Subject: [PATCH] [metricbeat] Add priorityClassName config --- metricbeat/templates/daemonset.yaml | 3 +++ metricbeat/values.yaml | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/metricbeat/templates/daemonset.yaml b/metricbeat/templates/daemonset.yaml index 7fb1cfdf7..60917202e 100644 --- a/metricbeat/templates/daemonset.yaml +++ b/metricbeat/templates/daemonset.yaml @@ -44,6 +44,9 @@ spec: {{- with .Values.nodeSelector }} nodeSelector: {{ toYaml . | nindent 8 }} {{- end }} + {{- if .Values.priorityClassName }} + priorityClassName: {{ .Values.priorityClassName }} + {{- end }} {{- with .Values.affinity }} affinity: {{ toYaml . | nindent 8 -}} {{- end }} diff --git a/metricbeat/values.yaml b/metricbeat/values.yaml index 5999ceb9f..efabef1ac 100755 --- a/metricbeat/values.yaml +++ b/metricbeat/values.yaml @@ -180,6 +180,10 @@ nodeSelector: {} affinity: {} +# This is the PriorityClass settings as defined in +# https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass +priorityClassName: "" + updateStrategy: RollingUpdate # Override various naming aspects of this chart