Skip to content

Commit

Permalink
Update operator Liveness and Readiness probe
Browse files Browse the repository at this point in the history
Related to operator-sdk v1.4.0 upgrade:

https://sdk.operatorframework.io/docs/upgrading-sdk-version/v1.4.0/

operator-framework/operator-sdk#4326

Signed-off-by: Wayne Sun <gsun@redhat.com>
  • Loading branch information
waynesun09 committed Apr 21, 2021
1 parent 101d0d8 commit 010de4f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/manager/manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,16 @@ spec:
- name: ANSIBLE_GATHERING
value: explicit
image: controller:latest
livenessProbe:
httpGet:
path: /healthz
port: 6789
initialDelaySeconds: 15
periodSeconds: 20
readinessProbe:
httpGet:
path: /readyz
port: 6789
initialDelaySeconds: 5
periodSeconds: 10
terminationGracePeriodSeconds: 10

0 comments on commit 010de4f

Please sign in to comment.