-
Notifications
You must be signed in to change notification settings - Fork 65
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 cloud2edge's post-install running before its deps are available #404
base: master
Are you sure you want to change the base?
Conversation
post-install runs when the chart is deployed, not when it's actually ready, so it's entirely possible for the post-install hook to try to access services that have not even started yet, resulting in a deployment failure. Instead, wait for the needed services to be ready, following the same pattern as used by the nginx-deployment template. Signed-off-by: Ryan Gonzalez <[email protected]>
I'm not sure why it's not saying the ECA isn't signed, it is under the correct email. |
@refi64 I couldn't reproduce such a case of a post-install job running too early. In my tests, Hono and cloud2edge post-install jobs were only started after all pods were ready. And the readiness probe endpoint implementations in the Hono device registry deployment and the ditto nginx deployment should make sure that at that point the components are operational. Did you have issues with the cloud2edge post-install jobs? Or was it a theoretical motivation, expecting potential issues (the Helm post-install definition of "Executes after all resources are loaded into Kubernetes" doesn't seem very clear after all) ? |
The docs here are terrible but it's clarified a bit here:
So it seems like the |
That's really quite confusing and unexpected. (It's unfortunate there is no "post-ready" hook yet.) Regarding the changes in this PR: Regarding the Hono change, I think it isn't needed for the health port to be exposed on the external service. The port definition could be added to |
I see this was brought up a while back, but I keep running into this problem on my installations. The job fails its What would be a good way to handle this? I just increase the backoffLimit to something like 15, but that seems like a hack. |
post-install runs when the chart is deployed, not when it's actually ready, so it's entirely possible for the post-install hook to try to access services that have not even started yet, resulting in a deployment failure. Instead, wait for the needed services to be ready, following the same pattern as used by the nginx-deployment template.
Signed-off-by: Ryan Gonzalez [email protected]