diff --git a/charts/telegraf/Chart.yaml b/charts/telegraf/Chart.yaml index 0e605cb0..d1eac3e2 100755 --- a/charts/telegraf/Chart.yaml +++ b/charts/telegraf/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: telegraf -version: 1.8.35 +version: 1.8.36 appVersion: 1.28.2 deprecated: false description: Telegraf is an agent written in Go for collecting, processing, aggregating, and writing metrics. diff --git a/charts/telegraf/templates/deployment.yaml b/charts/telegraf/templates/deployment.yaml index af6661c1..0b018930 100644 --- a/charts/telegraf/templates/deployment.yaml +++ b/charts/telegraf/templates/deployment.yaml @@ -10,6 +10,10 @@ spec: matchLabels: app.kubernetes.io/name: {{ include "telegraf.name" . }} app.kubernetes.io/instance: {{ .Release.Name }} + {{- with .Values.updateStrategy }} + strategy: + {{- toYaml . | nindent 4 }} + {{- end }} template: metadata: labels: diff --git a/charts/telegraf/values.yaml b/charts/telegraf/values.yaml index 8d23a565..ad42d471 100644 --- a/charts/telegraf/values.yaml +++ b/charts/telegraf/values.yaml @@ -58,6 +58,14 @@ tolerations: [] # value: "value" # effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)" +## Configure the updateStrategy used to replace Telegraf Pods +## See https://kubernetes.io/docs/reference/kubernetes-api/workload-resources/deployment-v1/ +updateStrategy: {} +# type: RollingUpdate|Recreate +# rollingUpdate: +# maxUnavailable: 1 +# maxSurge: 1 + service: enabled: true type: ClusterIP