Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cstor-pool-mgmt): fix livenessprobe in cStor pool deployment (#1544) #1552

Merged
merged 1 commit into from
Dec 11, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions pkg/install/v1alpha1/cstor_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,11 +260,17 @@ spec:
command:
- /bin/sh
- -c
- zfs set io.openebs:livenesstimestamp="$(date +%s)" cstor-$OPENEBS_IO_CSTOR_ID
## timeout 120 is added to exit the command forcefully with non-zero exit code if command takes
## more than 120 seconds.
- timeout 120 zfs set io.openebs:livenesstimestamp="$(date +%s)" cstor-$OPENEBS_IO_CSTOR_ID
failureThreshold: 3
initialDelaySeconds: 300
periodSeconds: 10
timeoutSeconds: 30
## how often (in seconds) to perform the probe
periodSeconds: 60
## Number of seconds after which the probe times out. i.e informing
## to kubelet probe should timeout after 150 seconds(Note: It will
## not honour because of timeout 120 value before command)
timeoutSeconds: 150
securityContext:
privileged: true
volumeMounts:
Expand Down