Skip to content

Commit

Permalink
contrib: Use the readyz endpoint in startup probes
Browse files Browse the repository at this point in the history
Fixes #1488

Signed-off-by: Iain Duncan <iain.duncan@uk.ibm.com>
  • Loading branch information
iainduncani authored and crozzy committed Mar 18, 2022
1 parent f2e209c commit ae7675a
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions contrib/openshift/manifests/manifests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,14 @@ objects:
port: ${{HEALTH_PORT}}
readinessProbe:
httpGet:
path: ${{HEALTH_PATH}}
path: ${{READY_PATH}}
port: ${{HEALTH_PORT}}
startupProbe:
httpGet:
path: ${{HEALTH_PATH}}
path: ${{READY_PATH}}
port: ${{HEALTH_PORT}}
failureThreshold: 400
periodSeconds: 10
volumeMounts:
- name: clair-config
mountPath: /etc/clair
Expand Down Expand Up @@ -144,12 +146,14 @@ objects:
port: ${{HEALTH_PORT}}
readinessProbe:
httpGet:
path: ${{HEALTH_PATH}}
path: ${{READY_PATH}}
port: ${{HEALTH_PORT}}
startupProbe:
httpGet:
path: ${{HEALTH_PATH}}
path: ${{READY_PATH}}
port: ${{HEALTH_PORT}}
failureThreshold: 400
periodSeconds: 10
volumeMounts:
- name: clair-config
mountPath: /etc/clair
Expand Down Expand Up @@ -207,12 +211,14 @@ objects:
port: ${{HEALTH_PORT}}
readinessProbe:
httpGet:
path: ${{HEALTH_PATH}}
path: ${{READY_PATH}}
port: ${{HEALTH_PORT}}
startupProbe:
httpGet:
path: ${{HEALTH_PATH}}
path: ${{READY_PATH}}
port: ${{HEALTH_PORT}}
failureThreshold: 400
periodSeconds: 10
volumeMounts:
- name: clair-config
mountPath: /etc/clair
Expand Down Expand Up @@ -373,6 +379,9 @@ parameters:
- name: HEALTH_PATH
value: "/healthz"
displayName: the http path to clair's health check endpoint
- name: READY_PATH
value: "/readyz"
displayName: the http path to clair's ready endpoint
- name: HEALTH_PORT
value: "8089"
displayName: the port to clair's health check endpoint
Expand Down

0 comments on commit ae7675a

Please sign in to comment.