Skip to content

Commit ab22933

Browse files
smg247claude
authored andcommitted
Add probes and rollout strategy to component-monitor deployment (openshift#79354)
Wire up startup, readiness, and liveness probes against the new /health endpoint. Add RollingUpdate strategy with maxUnavailable 0 and minReadySeconds 60 so the old pod keeps running until the new one is confirmed ready, preventing monitoring gaps during rollouts. Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 66878c4 commit ab22933

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

clusters/app.ci/ship-status-dash/component-monitor/deployment.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ metadata:
1212
keel.sh/pollSchedule: "@every 5m"
1313
spec:
1414
replicas: 1
15+
strategy:
16+
type: RollingUpdate
17+
rollingUpdate:
18+
maxUnavailable: 0
19+
maxSurge: 1
20+
minReadySeconds: 60
1521
selector:
1622
matchLabels:
1723
app: component-monitor
@@ -63,6 +69,27 @@ spec:
6369
- "--dashboard-url=https://protected.ship-status.ci.openshift.org"
6470
- "--kubeconfig-dir=/etc/kubeconfig"
6571
- "--report-auth-token-file=/etc/kubeconfig/sa.component-monitor.app.ci.token.txt"
72+
startupProbe:
73+
httpGet:
74+
path: /health
75+
port: 8080
76+
initialDelaySeconds: 10
77+
periodSeconds: 5
78+
failureThreshold: 24
79+
readinessProbe:
80+
httpGet:
81+
path: /health
82+
port: 8080
83+
initialDelaySeconds: 5
84+
periodSeconds: 10
85+
failureThreshold: 3
86+
livenessProbe:
87+
httpGet:
88+
path: /health
89+
port: 8080
90+
initialDelaySeconds: 30
91+
periodSeconds: 15
92+
failureThreshold: 5
6693
volumeMounts:
6794
- name: release
6895
mountPath: /var/repo

0 commit comments

Comments
 (0)