Skip to content

Commit

Permalink
feat: Add updateStrategy to Telegraf Deployment. (#515)
Browse files Browse the repository at this point in the history
  • Loading branch information
Foosvald authored Oct 23, 2023
1 parent 88286a5 commit bf79f8f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/telegraf/Chart.yaml
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
4 changes: 4 additions & 0 deletions charts/telegraf/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 8 additions & 0 deletions charts/telegraf/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bf79f8f

Please sign in to comment.