You need to sign in or sign up before continuing.
Commit b272c078 authored by Chris Ramsay's avatar Chris Ramsay Committed by David McKay

Add option to set priorityClassName

parent 26e42ab5
apiVersion: v1 apiVersion: v1
name: telegraf-ds name: telegraf-ds
version: 1.0.14 version: 1.0.15
appVersion: 1.14 appVersion: 1.14
deprecated: false deprecated: false
description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics. description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics.
......
...@@ -20,6 +20,9 @@ spec: ...@@ -20,6 +20,9 @@ spec:
checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }} checksum/config: {{ include (print $.Template.BasePath "/configmap.yaml") . | sha256sum }}
spec: spec:
serviceAccountName: {{ template "telegraf.serviceAccountName" . }} serviceAccountName: {{ template "telegraf.serviceAccountName" . }}
{{- if .Values.priorityClassName }}
priorityClassName: {{ .Values.priorityClassName | quote }}
{{- end }}
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
image: "{{ .Values.image.repo }}:{{ .Values.image.tag }}" image: "{{ .Values.image.repo }}:{{ .Values.image.tag }}"
......
...@@ -61,6 +61,10 @@ serviceAccount: ...@@ -61,6 +61,10 @@ serviceAccount:
# If not set and create is true, a name is generated using the fullname template # If not set and create is true, a name is generated using the fullname template
# name: # name:
## Specify priorityClassName
## Ref: https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/
# priorityClassName: system-node-critical
## Exposed telegraf configuration ## Exposed telegraf configuration
## ref: https://docs.influxdata.com/telegraf/v1.13/administration/configuration/ ## ref: https://docs.influxdata.com/telegraf/v1.13/administration/configuration/
config: config:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment