Skip to content

Commit 7002848

Browse files
sdaberdakunineinchnick
authored andcommitted
Add deployment strategy configuration to Trino gateway
1 parent ce25fd4 commit 7002848

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

charts/gateway/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,9 @@ A Helm chart for Trino Gateway
165165
* `serviceAccount.name` - string, default: `""`
166166

167167
The name of the service account to use. If not set and create is true, a name is generated using the fullname template
168+
* `strategy` - object, default: `{"rollingUpdate":{"maxSurge":"25%","maxUnavailable":"25%"},"type":"RollingUpdate"}`
169+
170+
The deployment strategy to use to replace existing pods with new ones.
168171

169172
----------------------------------------------
170173
Autogenerated from chart metadata using [helm-docs v1.14.2](https://github.com/norwoodj/helm-docs/releases/v1.14.2)

charts/gateway/templates/deployment.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ spec:
2020
{{- if not .Values.autoscaling.enabled }}
2121
replicas: {{ .Values.replicaCount }}
2222
{{- end }}
23+
strategy:
24+
{{- toYaml .Values.strategy | nindent 4 }}
2325
selector:
2426
matchLabels:
2527
{{- include "trino-gateway.selectorLabels" . | nindent 6 }}

charts/gateway/values.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,10 @@ serviceAccount:
213213
# -- The name of the service account to use.
214214
# If not set and create is true, a name is generated using the fullname template
215215
name: ""
216+
217+
# -- The deployment strategy to use to replace existing pods with new ones.
218+
strategy:
219+
type: RollingUpdate
220+
rollingUpdate:
221+
maxSurge: 25%
222+
maxUnavailable: 25%

0 commit comments

Comments
 (0)