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

Support Kubernetes startupProbe #291

Merged
merged 2 commits into from
Jun 1, 2021
Merged

Support Kubernetes startupProbe #291

merged 2 commits into from
Jun 1, 2021

Conversation

treydock
Copy link
Contributor

This will have same idea as the after.sh.erb used by HPC batch connect apps, the pod won't report as Running until the TCP port defined for the pod is actually up. I tried to make the class structure such that we could switch to a HTTP probe instead of TCP just by adding a new class in the future. I opted for TCP probe over HTTP probe because didn't want to have to worry about which path for HTTP probe would respond with 200 status code which could vary greatly between batch connect apps. Using a TCP probe seemed more universal.

end
end

class TCPProbe < Probe
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think we need the subclass. I think we can just start with 1 class and modify later if required. But you're right about tcp being better than http.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I merged Probe into TCPProbe so now there is only 1 class.

@treydock treydock requested a review from johrstrom May 28, 2021 17:51
@johrstrom johrstrom merged commit d98918b into master Jun 1, 2021
@johrstrom johrstrom deleted the k8-startupProbe branch June 1, 2021 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants