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

feat(install): setup liveness probes for openebs components #1909

Merged
merged 2 commits into from
Sep 27, 2018

Conversation

kmova
Copy link
Member

@kmova kmova commented Sep 19, 2018

This PR adds liveness probes to check the required binaries are running within the control plane components. In the future, these can be enhanced to check for additional parameters.

Signed-off-by: kmova kiran.mova@openebs.io

Signed-off-by: kmova <kiran.mova@openebs.io>
@kmova kmova requested a review from muratkars September 19, 2018 16:04
command:
- /usr/local/bin/mayactl
- version
initialDelaySeconds: 300
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can Initialdelayseconds be shortened (60 or less) , otherwise looks good to me.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keeping it too low may cause false positives on a slow network.

command:
- pgrep
- ".*provisioner"
initialDelaySeconds: 300
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can Initialdelayseconds be shortened (60 or less)? otherwise looks good to me.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

command:
- pgrep
- ".*controller"
initialDelaySeconds: 300
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can Initialdelayseconds be shortened (60 or less)? otherwise looks good to me.

command:
- pgrep
- ".*provisioner"
initialDelaySeconds: 300
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can Initialdelayseconds be shortened (60 or less)? otherwise looks good to me.

command:
- pgrep
- ".*ndm"
initialDelaySeconds: 300
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can initialDelaySeconds be shortened (60 or less)? otherwise looks good to me.

@@ -156,6 +156,13 @@ spec:
value: "openebs/cstor-volume-mgmt:ci"
- name: OPENEBS_IO_VOLUME_MONITOR_IMAGE
value: "openebs/m-exporter:ci"
livenessProbe:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Separately, can we use the same ExecAction to add readinessProbe?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. It does help to add a readinessProbe to maya-apiserver deployment, since it is frontended by a service.

Signed-off-by: kmova <kiran.mova@openebs.io>
@muratkars
Copy link
Member

LGTM

@muratkars muratkars merged commit 1eddcef into openebs:master Sep 27, 2018
@kmova kmova deleted the livness-probes branch November 19, 2018 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants