diff --git a/charts/telegraf/Chart.yaml b/charts/telegraf/Chart.yaml index f57fa3d5..759b95ae 100755 --- a/charts/telegraf/Chart.yaml +++ b/charts/telegraf/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: telegraf -version: 1.8.22 +version: 1.8.23 appVersion: 1.24.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 eeec0087..b78fb296 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