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

Backport of connect: deployments should wait for Connect sidecar checks into release/1.5.x #19364

Conversation

hc-github-team-nomad-core
Copy link
Contributor

Backport

This PR is auto-generated from #19334 to be assessed for backporting due to the inclusion of the label backport/1.5.x.

The below text is copied from the body of the original PR.


When a Connect service is registered with Consul, Nomad includes the nested Connect.SidecarService field that includes health checks for the Envoy proxy. Because these are not part of the job spec, the alloc health tracker created by health_hook doesn't know to read the value of these checks.

In many circumstances this won't be noticed, but if the Envoy health check happens to take longer than the update.min_healthy_time (perhaps because it's been set low), it's possible for a deployment to progress too early such that there will briefly be no healthy instances of the service available in Consul.

Update the Consul service client to find the nested sidecar service in the service catalog and attach it to the results provided to the tracker. The tracker can then check the sidecar health checks.

Fixes: #19269


Overview of commits

@hc-github-team-nomad-core hc-github-team-nomad-core force-pushed the backport/b-gh19269-sidecar-checks/repeatedly-liked-sawfish branch from a91f76b to 8b04fbc Compare December 7, 2023 19:05
@tgross tgross merged commit 17e6372 into release/1.5.x Dec 7, 2023
23 of 25 checks passed
@tgross tgross deleted the backport/b-gh19269-sidecar-checks/repeatedly-liked-sawfish branch December 7, 2023 19:28
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