Unverified Commit bf79f8f9 authored by Osvald Ivarsson's avatar Osvald Ivarsson Committed by GitHub

feat: Add updateStrategy to Telegraf Deployment. (#515)

parent 88286a5d
apiVersion: v2 apiVersion: v2
name: telegraf name: telegraf
version: 1.8.35 version: 1.8.36
appVersion: 1.28.2 appVersion: 1.28.2
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.
......
...@@ -10,6 +10,10 @@ spec: ...@@ -10,6 +10,10 @@ spec:
matchLabels: matchLabels:
app.kubernetes.io/name: {{ include "telegraf.name" . }} app.kubernetes.io/name: {{ include "telegraf.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/instance: {{ .Release.Name }}
{{- with .Values.updateStrategy }}
strategy:
{{- toYaml . | nindent 4 }}
{{- end }}
template: template:
metadata: metadata:
labels: labels:
......
...@@ -58,6 +58,14 @@ tolerations: [] ...@@ -58,6 +58,14 @@ tolerations: []
# value: "value" # value: "value"
# effect: "NoSchedule|PreferNoSchedule|NoExecute(1.6 only)" # 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: service:
enabled: true enabled: true
type: ClusterIP type: ClusterIP
......
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