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

cmd: add CLI flags for proxy shutdown lifecycle management #100

Merged
merged 7 commits into from
Jun 6, 2023

Conversation

mikemorris
Copy link
Contributor

@mikemorris mikemorris commented May 5, 2023

Refs hashicorp/consul-k8s#536, hashicorp/consul-k8s#650

Adds the following CLI flags for proxy shutdown lifecycle management, disabled by default:

  • -shutdown-drain-listeners
  • -shutdown-grace-period

Adds the following CLI flags for managing where the proxy lifecycle HTTP APIs are exposed:

  • -graceful-shutdown-path
  • -graceful-port

Notes for reviewers

@mikemorris mikemorris force-pushed the proxy-lcm/shutdown branch 2 times, most recently from 7762e0c to 80656fa Compare May 8, 2023 21:20
@mikemorris mikemorris marked this pull request as ready for review May 9, 2023 16:21
@mikemorris mikemorris requested a review from a team as a code owner May 9, 2023 16:21
@huikang
Copy link
Collaborator

huikang commented May 10, 2023

@mikemorris , thanks for making the PR. I am new to the world of consul-dataplane. Out of curiosity, do we have similar proxy shutdown feature in consul core (consul connect envoy)?

@mikemorris
Copy link
Contributor Author

mikemorris commented May 10, 2023

do we have similar proxy shutdown feature in consul core?

Nope, this has been a longstanding feature/fix request that we're looking to address now, added relevant issue references to original post for context. The eventual implementation of graceful shutdown functionality in consul-dataplane, which these flags are intended to configure, will be managed by Helm configuration for both regular pods and jobs and triggered by a preStop hook in consul-k8s for jobs.

@mikemorris mikemorris force-pushed the proxy-lcm/shutdown branch 2 times, most recently from 5be431b to 1ffb8ac Compare May 23, 2023 18:44
@mikemorris mikemorris merged commit 3d37b9f into main Jun 6, 2023
@mikemorris mikemorris deleted the proxy-lcm/shutdown branch June 6, 2023 19:15
DanStough added a commit that referenced this pull request Jun 14, 2023
DanStough added a commit that referenced this pull request Jun 14, 2023
* Revert "proxy-lifecycle: catch SIGTERM and initiate graceful shutdown (#130)"

This reverts commit 40c99dc.

* Revert "proxy-lifecycle: add HTTP Server with endpoints for proxy lifecycle shutdown (#115)"

This reverts commit 0047e65.

* Revert "cmd: add CLI flags for proxy shutdown lifecycle management (#100)"

This reverts commit 3d37b9f.
@curtbushko curtbushko self-assigned this Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.1 Changes are backported to 1.1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants