From bf79f8f9f907f261cad6f3b7ce2fe2536b539be5 Mon Sep 17 00:00:00 2001 From: Osvald Ivarsson Date: Mon, 23 Oct 2023 17:29:36 +0200 Subject: [PATCH] feat: Add updateStrategy to Telegraf Deployment. (#515) --- charts/telegraf/Chart.yaml | 2 +- charts/telegraf/templates/deployment.yaml | 4 ++++ charts/telegraf/values.yaml | 8 ++++++++ 3 files changed, 13 insertions(+), 1 deletion(-) 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