diff --git a/charts/cp-kafka-connect/templates/deployment.yaml b/charts/cp-kafka-connect/templates/deployment.yaml index 4582f4ac..224bc449 100644 --- a/charts/cp-kafka-connect/templates/deployment.yaml +++ b/charts/cp-kafka-connect/templates/deployment.yaml @@ -12,6 +12,10 @@ metadata: release: {{ .Release.Name }} heritage: {{ .Release.Service }} spec: + {{- if .Values.deploymentStrategy }} + strategy: + {{- toYaml .Values.deploymentStrategy | nindent 4 }} + {{- end }} replicas: {{ .Values.replicaCount }} selector: matchLabels: diff --git a/charts/cp-kafka-connect/values.yaml b/charts/cp-kafka-connect/values.yaml index ff2cad6c..b5ed3d9b 100644 --- a/charts/cp-kafka-connect/values.yaml +++ b/charts/cp-kafka-connect/values.yaml @@ -133,3 +133,10 @@ livenessProbe: # initialDelaySeconds: 30 # periodSeconds: 5 # failureThreshold: 10 + +# Example deployment strategy +# deploymentStrategy: +# type: RollingUpdate +# rollingUpdate: +# maxUnavailable: 1 +# maxSurge: 1