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 .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ jobs:
--set image.tag="${{ steps.sha.outputs.sha }}" \
--atomic \
--wait \
--timeout 10m
--timeout 20m

- name: Rollout status (sanity)
run: |
Expand Down
8 changes: 8 additions & 0 deletions deploy/helm/tracebility/templates/api-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ metadata:
app.kubernetes.io/component: api
spec:
replicas: {{ .Values.api.replicaCount }}
# Recreate so a single-replica rollout doesn't briefly need 2x the
# capacity of one pod. With Autopilot's just-in-time node scaling,
# RollingUpdate's default maxSurge=1 forces a node scale-up on every
# deploy; that takes ~5min and pushes the helm --wait past timeout.
# Brief outage during rollout is acceptable for the api service —
# the LB is fronted by web, not api directly.
strategy:
type: Recreate
selector:
matchLabels:
{{- include "tracebility.api.selectorLabels" . | nindent 6 }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ metadata:
app.kubernetes.io/component: ingest-worker
spec:
replicas: {{ .Values.ingestWorker.replicaCount }}
# Recreate so a single-replica rollout doesn't need 2x capacity. The
# worker is a Redis-stream consumer; redelivery on a brief outage is
# already in the failure model (XACK after successful insert), so
# killing the old pod before starting the new one is safe.
strategy:
type: Recreate
selector:
matchLabels:
{{- include "tracebility.ingestWorker.selectorLabels" . | nindent 6 }}
Expand Down
Loading