diff --git a/charts/zot/templates/deployment.yaml b/charts/zot/templates/deployment.yaml index e8c0574..2e639f9 100644 --- a/charts/zot/templates/deployment.yaml +++ b/charts/zot/templates/deployment.yaml @@ -6,6 +6,10 @@ metadata: {{- include "zot.labels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} + {{- with .Values.strategy }} + strategy: + {{- toYaml . | nindent 4 }} + {{- end }} selector: matchLabels: {{- include "zot.selectorLabels" . | nindent 6 }} diff --git a/charts/zot/values.yaml b/charts/zot/values.yaml index ad32913..b3bbc65 100644 --- a/charts/zot/values.yaml +++ b/charts/zot/values.yaml @@ -171,3 +171,9 @@ extraVolumeMounts: [] extraVolumes: [] # - name: data # emptyDir: {} + +# Deployment strategy type +strategy: + type: RollingUpdate + rollingUpdate: + maxUnavailable: 25% \ No newline at end of file