-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Issue 320: support clean shutdown #953
Conversation
I just broke some tests which are not initialized correctly now that I added some dependencies, I will fix this. |
Codecov Report
@@ Coverage Diff @@
## master #953 +/- ##
==========================================
+ Coverage 71.98% 72.03% +0.05%
==========================================
Files 65 68 +3
Lines 5411 5486 +75
==========================================
+ Hits 3895 3952 +57
- Misses 1210 1225 +15
- Partials 306 309 +3
Continue to review full report at Codecov.
|
I'm done with the CI, ready for review. |
@lkysow : Could you please have a look at this or assign someone ? |
This looks great! I'm wondering if we need the |
I'm also wondering if there are some other tools out there that follow this pattern that I can look at? |
Kubernetes is draining nodes of running pods as well, e.g. for performing
an update of the kubelet, the OS, hardware failures, ... No idea where this
is implemented in the codebase to be honest.
Le ven. 27 mars 2020 à 20:17, Luke Kysow <[email protected]> a
écrit :
… I'm also wondering if there are some other tools out there that follow
this pattern that I can look at?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#953 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABWF5CMBMZTAWXX6IIPNFRLRJT3VDANCNFSM4LS3YSPA>
.
|
I meant more other tools that are running on Kube and how they solve this problem. For example I wonder if they have a separate command or just an endpoint that blocks. |
Hook handler implementation in Kub supports also HTTP, but only with GET method.
If we need POST method this have to be done with References: |
Hu, ok, did not got your question right. Find below what I've found looking in helm charts preStop (not many to be honest).
@MRinalducci |
Hi @lkysow any news about this PR? 😄 |
Hey I've just been too busy to tackle this. I'll get to it when I can. |
Ok no problem, thanks for the update 👍 |
Hi @benoit74, I've merged this as part of #1051 however I made a couple of changes:
I would loved to have worked with you on your code via reviews rather than coding on top however I don't have as much time as I'd like to work on code reviews and you opened this so long ago and I know it's annoying to have to reload all the context. Hopefully this mechanism works for you and if there are any issues then please let me know and we can look to fix. |
Hi @lkysow |
I'll get a release out this week for sure. |
Tries to solve #320
Feedback, code review, suggestion more than welcome.
Code is functional (i.e. it has been tested in live conditions inside a K8S cluster.
drain = start a clean shutdown, i.e. terminate ongoing commands and refuse to start new ones.
Changes :