Skip to content

Commit d600231

Browse files
author
Ellie Huxtable
authored
Allow specifying rollout strategy (#667)
1 parent 19a790c commit d600231

File tree

6 files changed

+83
-1
lines changed

6 files changed

+83
-1
lines changed

charts/posthog/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ type: application
1111

1212
# This is the chart version. This version number should be incremented each time you make changes
1313
# to the chart and its templates, including the app version.
14-
version: 30.2.7
14+
version: 30.2.8
1515

1616
# This is the version number of the application being deployed. This version number should be
1717
# incremented each time you make changes to the application.

charts/posthog/templates/_snippet-plugins-deployment.tpl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ spec:
1818
{{- if not .params.hpa.enabled }}
1919
replicas: {{ .params.replicacount }}
2020
{{- end }}
21+
22+
strategy:
23+
type: RollingUpdate
24+
rollingUpdate:
25+
maxSurge: {{ .params.rollout.maxSurge }}
26+
maxUnavailable: {{ .params.rollout.maxUnavailable }}
27+
2128
template:
2229
metadata:
2330
annotations:

charts/posthog/templates/events-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ spec:
1414
{{- if not .Values.events.hpa.enabled }}
1515
replicas: {{ .Values.events.replicacount }}
1616
{{- end }}
17+
18+
strategy:
19+
type: RollingUpdate
20+
rollingUpdate:
21+
maxSurge: {{ .Values.events.rollout.maxSurge }}
22+
maxUnavailable: {{ .Values.events.rollout.maxUnavailable }}
23+
1724
template:
1825
metadata:
1926
annotations:

charts/posthog/templates/web-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ spec:
1414
{{- if not .Values.web.hpa.enabled }}
1515
replicas: {{ .Values.web.replicacount }}
1616
{{- end }}
17+
18+
strategy:
19+
type: RollingUpdate
20+
rollingUpdate:
21+
maxSurge: {{ .Values.web.rollout.maxSurge }}
22+
maxUnavailable: {{ .Values.web.rollout.maxUnavailable }}
23+
1724
template:
1825
metadata:
1926
annotations:

charts/posthog/templates/worker-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ spec:
1414
{{- if not .Values.worker.hpa.enabled }}
1515
replicas: {{ .Values.worker.replicacount }}
1616
{{- end }}
17+
18+
strategy:
19+
type: RollingUpdate
20+
rollingUpdate:
21+
maxSurge: {{ .Values.worker.rollout.maxSurge }}
22+
maxUnavailable: {{ .Values.worker.rollout.maxUnavailable }}
23+
1724
template:
1825
metadata:
1926
annotations:

charts/posthog/values.yaml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,12 @@ events:
7474
# for configuration options
7575
behavior:
7676

77+
rollout:
78+
# The max surge in pods during a rollout
79+
maxSurge: 25%
80+
# The max unavailable during a rollout
81+
maxUnavailable: 25%
82+
7783
# -- Additional env variables to inject into the events stack, uses `web.env` if empty.
7884
env: []
7985

@@ -111,6 +117,12 @@ web:
111117
# for configuration options
112118
behavior:
113119

120+
rollout:
121+
# The max surge in pods during a rollout
122+
maxSurge: 25%
123+
# The max unavailable during a rollout
124+
maxUnavailable: 25%
125+
114126
# -- Resource limits for web service.
115127
resources:
116128
{}
@@ -204,6 +216,12 @@ worker:
204216
# for configuration options
205217
behavior:
206218

219+
rollout:
220+
# The max surge in pods during a rollout
221+
maxSurge: 25%
222+
# The max unavailable during a rollout
223+
maxUnavailable: 25%
224+
207225
# -- Additional env variables to inject into the worker stack deployment.
208226
env: []
209227

@@ -250,6 +268,12 @@ plugins:
250268
# for configuration options
251269
behavior:
252270

271+
rollout:
272+
# The max surge in pods during a rollout
273+
maxSurge: 25%
274+
# The max unavailable during a rollout
275+
maxUnavailable: 25%
276+
253277
# -- Additional env variables to inject into the plugin-server stack deployment.
254278
env: []
255279

@@ -322,6 +346,12 @@ pluginsAsync:
322346
# for configuration options
323347
behavior:
324348

349+
rollout:
350+
# The max surge in pods during a rollout
351+
maxSurge: 25%
352+
# The max unavailable during a rollout
353+
maxUnavailable: 25%
354+
325355
# -- Additional env variables to inject into the plugin-server stack deployment.
326356
env: []
327357

@@ -399,6 +429,12 @@ pluginsIngestion:
399429
# for configuration options
400430
behavior:
401431

432+
rollout:
433+
# The max surge in pods during a rollout
434+
maxSurge: 25%
435+
# The max unavailable during a rollout
436+
maxUnavailable: 25%
437+
402438
# -- Additional env variables to inject into the plugin-server stack deployment.
403439
env: []
404440

@@ -470,6 +506,12 @@ pluginsExports:
470506
# for configuration options
471507
behavior:
472508

509+
rollout:
510+
# The max surge in pods during a rollout
511+
maxSurge: 25%
512+
# The max unavailable during a rollout
513+
maxUnavailable: 25%
514+
473515
# -- Additional env variables to inject into the plugin-server stack deployment.
474516
env: []
475517

@@ -541,6 +583,12 @@ pluginsJobs:
541583
# for configuration options
542584
behavior:
543585

586+
rollout:
587+
# The max surge in pods during a rollout
588+
maxSurge: 25%
589+
# The max unavailable during a rollout
590+
maxUnavailable: 25%
591+
544592
# -- Additional env variables to inject into the plugin-server stack deployment.
545593
env: []
546594

@@ -611,6 +659,12 @@ pluginsScheduler:
611659
# for configuration options
612660
behavior:
613661

662+
rollout:
663+
# The max surge in pods during a rollout
664+
maxSurge: 25%
665+
# The max unavailable during a rollout
666+
maxUnavailable: 25%
667+
614668
# -- Additional env variables to inject into the plugin-server stack deployment.
615669
env: []
616670

0 commit comments

Comments
 (0)