Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/posthog/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type: application

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

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
Expand Down
7 changes: 7 additions & 0 deletions charts/posthog/templates/_snippet-plugins-deployment.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ spec:
{{- if not .params.hpa.enabled }}
replicas: {{ .params.replicacount }}
{{- end }}

strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: {{ .params.rollout.maxSurge }}
maxUnavailable: {{ .params.rollout.maxUnavailable }}

template:
metadata:
annotations:
Expand Down
7 changes: 7 additions & 0 deletions charts/posthog/templates/events-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ spec:
{{- if not .Values.events.hpa.enabled }}
replicas: {{ .Values.events.replicacount }}
{{- end }}

strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: {{ .Values.events.rollout.maxSurge }}
maxUnavailable: {{ .Values.events.rollout.maxUnavailable }}

template:
metadata:
annotations:
Expand Down
7 changes: 7 additions & 0 deletions charts/posthog/templates/web-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ spec:
{{- if not .Values.web.hpa.enabled }}
replicas: {{ .Values.web.replicacount }}
{{- end }}

strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: {{ .Values.web.rollout.maxSurge }}
maxUnavailable: {{ .Values.web.rollout.maxUnavailable }}

template:
metadata:
annotations:
Expand Down
7 changes: 7 additions & 0 deletions charts/posthog/templates/worker-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ spec:
{{- if not .Values.worker.hpa.enabled }}
replicas: {{ .Values.worker.replicacount }}
{{- end }}

strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: {{ .Values.worker.rollout.maxSurge }}
maxUnavailable: {{ .Values.worker.rollout.maxUnavailable }}

template:
metadata:
annotations:
Expand Down
54 changes: 54 additions & 0 deletions charts/posthog/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,12 @@ events:
# for configuration options
behavior:

rollout:
# The max surge in pods during a rollout
maxSurge: 25%
# The max unavailable during a rollout
maxUnavailable: 25%

# -- Additional env variables to inject into the events stack, uses `web.env` if empty.
env: []

Expand Down Expand Up @@ -111,6 +117,12 @@ web:
# for configuration options
behavior:

rollout:
# The max surge in pods during a rollout
maxSurge: 25%
# The max unavailable during a rollout
maxUnavailable: 25%

# -- Resource limits for web service.
resources:
{}
Expand Down Expand Up @@ -204,6 +216,12 @@ worker:
# for configuration options
behavior:

rollout:
# The max surge in pods during a rollout
maxSurge: 25%
# The max unavailable during a rollout
maxUnavailable: 25%

# -- Additional env variables to inject into the worker stack deployment.
env: []

Expand Down Expand Up @@ -250,6 +268,12 @@ plugins:
# for configuration options
behavior:

rollout:
# The max surge in pods during a rollout
maxSurge: 25%
# The max unavailable during a rollout
maxUnavailable: 25%

# -- Additional env variables to inject into the plugin-server stack deployment.
env: []

Expand Down Expand Up @@ -322,6 +346,12 @@ pluginsAsync:
# for configuration options
behavior:

rollout:
# The max surge in pods during a rollout
maxSurge: 25%
# The max unavailable during a rollout
maxUnavailable: 25%

# -- Additional env variables to inject into the plugin-server stack deployment.
env: []

Expand Down Expand Up @@ -399,6 +429,12 @@ pluginsIngestion:
# for configuration options
behavior:

rollout:
# The max surge in pods during a rollout
maxSurge: 25%
# The max unavailable during a rollout
maxUnavailable: 25%

# -- Additional env variables to inject into the plugin-server stack deployment.
env: []

Expand Down Expand Up @@ -470,6 +506,12 @@ pluginsExports:
# for configuration options
behavior:

rollout:
# The max surge in pods during a rollout
maxSurge: 25%
# The max unavailable during a rollout
maxUnavailable: 25%

# -- Additional env variables to inject into the plugin-server stack deployment.
env: []

Expand Down Expand Up @@ -541,6 +583,12 @@ pluginsJobs:
# for configuration options
behavior:

rollout:
# The max surge in pods during a rollout
maxSurge: 25%
# The max unavailable during a rollout
maxUnavailable: 25%

# -- Additional env variables to inject into the plugin-server stack deployment.
env: []

Expand Down Expand Up @@ -611,6 +659,12 @@ pluginsScheduler:
# for configuration options
behavior:

rollout:
# The max surge in pods during a rollout
maxSurge: 25%
# The max unavailable during a rollout
maxUnavailable: 25%

# -- Additional env variables to inject into the plugin-server stack deployment.
env: []

Expand Down