Skip to content

Commit

Permalink
fix: Add readiness check to controller. Fixes #8283 (#8285)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Collins <alex_collins@intuit.com>
  • Loading branch information
alexec authored and sarabala1979 committed Apr 18, 2022
1 parent ed26dc0 commit b9f8b35
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ spec:
selector:
matchLabels:
app: workflow-controller
strategy:
type: Recreate
template:
metadata:
labels:
Expand Down Expand Up @@ -39,10 +41,15 @@ spec:
ports:
- name: metrics
containerPort: 9090
- containerPort: 6060
- name: healthz
containerPort: 6060
readinessProbe:
httpGet:
port: metrics
path: /metrics
livenessProbe:
httpGet:
port: 6060
port: healthz
path: /healthz
# Require three failures to tolerate transient errors.
failureThreshold: 3
Expand Down
9 changes: 8 additions & 1 deletion manifests/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,8 @@ spec:
selector:
matchLabels:
app: workflow-controller
strategy:
type: Recreate
template:
metadata:
labels:
Expand All @@ -1114,7 +1116,7 @@ spec:
failureThreshold: 3
httpGet:
path: /healthz
port: 6060
port: healthz
initialDelaySeconds: 90
periodSeconds: 60
timeoutSeconds: 30
Expand All @@ -1123,6 +1125,11 @@ spec:
- containerPort: 9090
name: metrics
- containerPort: 6060
name: healthz
readinessProbe:
httpGet:
path: /metrics
port: metrics
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down
9 changes: 8 additions & 1 deletion manifests/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -989,6 +989,8 @@ spec:
selector:
matchLabels:
app: workflow-controller
strategy:
type: Recreate
template:
metadata:
labels:
Expand All @@ -1014,7 +1016,7 @@ spec:
failureThreshold: 3
httpGet:
path: /healthz
port: 6060
port: healthz
initialDelaySeconds: 90
periodSeconds: 60
timeoutSeconds: 30
Expand All @@ -1023,6 +1025,11 @@ spec:
- containerPort: 9090
name: metrics
- containerPort: 6060
name: healthz
readinessProbe:
httpGet:
path: /metrics
port: metrics
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down
9 changes: 8 additions & 1 deletion manifests/quick-start-minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1410,6 +1410,8 @@ spec:
selector:
matchLabels:
app: workflow-controller
strategy:
type: Recreate
template:
metadata:
labels:
Expand All @@ -1435,7 +1437,7 @@ spec:
failureThreshold: 3
httpGet:
path: /healthz
port: 6060
port: healthz
initialDelaySeconds: 90
periodSeconds: 60
timeoutSeconds: 30
Expand All @@ -1444,6 +1446,11 @@ spec:
- containerPort: 9090
name: metrics
- containerPort: 6060
name: healthz
readinessProbe:
httpGet:
path: /metrics
port: metrics
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down
9 changes: 8 additions & 1 deletion manifests/quick-start-mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,8 @@ spec:
selector:
matchLabels:
app: workflow-controller
strategy:
type: Recreate
template:
metadata:
labels:
Expand All @@ -1524,7 +1526,7 @@ spec:
failureThreshold: 3
httpGet:
path: /healthz
port: 6060
port: healthz
initialDelaySeconds: 90
periodSeconds: 60
timeoutSeconds: 30
Expand All @@ -1533,6 +1535,11 @@ spec:
- containerPort: 9090
name: metrics
- containerPort: 6060
name: healthz
readinessProbe:
httpGet:
path: /metrics
port: metrics
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down
9 changes: 8 additions & 1 deletion manifests/quick-start-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1491,6 +1491,8 @@ spec:
selector:
matchLabels:
app: workflow-controller
strategy:
type: Recreate
template:
metadata:
labels:
Expand All @@ -1516,7 +1518,7 @@ spec:
failureThreshold: 3
httpGet:
path: /healthz
port: 6060
port: healthz
initialDelaySeconds: 90
periodSeconds: 60
timeoutSeconds: 30
Expand All @@ -1525,6 +1527,11 @@ spec:
- containerPort: 9090
name: metrics
- containerPort: 6060
name: healthz
readinessProbe:
httpGet:
path: /metrics
port: metrics
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down

0 comments on commit b9f8b35

Please sign in to comment.