Skip to content

Commit

Permalink
fix: Add readiness check to controller. Fixes argoproj#8283
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Collins <alex_collins@intuit.com>
  • Loading branch information
alexec committed Mar 31, 2022
1 parent e50ec69 commit 6a11a53
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,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
7 changes: 6 additions & 1 deletion manifests/install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ spec:
failureThreshold: 3
httpGet:
path: /healthz
port: 6060
port: healthz
initialDelaySeconds: 90
periodSeconds: 60
timeoutSeconds: 30
Expand All @@ -1129,6 +1129,11 @@ spec:
- containerPort: 9090
name: metrics
- containerPort: 6060
name: healthz
readinessProbe:
httpGet:
path: /metrics
port: metrics
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down
7 changes: 6 additions & 1 deletion manifests/namespace-install.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ spec:
failureThreshold: 3
httpGet:
path: /healthz
port: 6060
port: healthz
initialDelaySeconds: 90
periodSeconds: 60
timeoutSeconds: 30
Expand All @@ -1019,6 +1019,11 @@ spec:
- containerPort: 9090
name: metrics
- containerPort: 6060
name: healthz
readinessProbe:
httpGet:
path: /metrics
port: metrics
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down
7 changes: 6 additions & 1 deletion manifests/quick-start-minimal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1431,7 +1431,7 @@ spec:
failureThreshold: 3
httpGet:
path: /healthz
port: 6060
port: healthz
initialDelaySeconds: 90
periodSeconds: 60
timeoutSeconds: 30
Expand All @@ -1440,6 +1440,11 @@ spec:
- containerPort: 9090
name: metrics
- containerPort: 6060
name: healthz
readinessProbe:
httpGet:
path: /metrics
port: metrics
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down
7 changes: 6 additions & 1 deletion manifests/quick-start-mysql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ spec:
failureThreshold: 3
httpGet:
path: /healthz
port: 6060
port: healthz
initialDelaySeconds: 90
periodSeconds: 60
timeoutSeconds: 30
Expand All @@ -1529,6 +1529,11 @@ spec:
- containerPort: 9090
name: metrics
- containerPort: 6060
name: healthz
readinessProbe:
httpGet:
path: /metrics
port: metrics
securityContext:
allowPrivilegeEscalation: false
capabilities:
Expand Down
7 changes: 6 additions & 1 deletion manifests/quick-start-postgres.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,7 @@ spec:
failureThreshold: 3
httpGet:
path: /healthz
port: 6060
port: healthz
initialDelaySeconds: 90
periodSeconds: 60
timeoutSeconds: 30
Expand All @@ -1521,6 +1521,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 6a11a53

Please sign in to comment.