One-line enhancement description (can be used as a release note):
This issue tracks a list of KEP review conversations that need resolving before we GA the feature.
Kubernetes Enhancement Proposal: https://github.com/kubernetes/enhancements/blob/master/keps/sig-node/20181106-in-place-update-of-pod-resources.md
Primary contact (assignee): vinaykul
Identify CRI changes needed for UpdateContainerResources API, define response message for UpdateContainerResources
Define behavior when multiple containers are being resized, and UpdateContainerResources fails for one or more containers.
Check with API reviewers if we can keep maps instead list of named sub-objects for ResizePolicy.
Can we find a more intuitive name for ResizePolicy?
Can we use ResourceVersion to figure out the ordering of Pod resize requests?
Do we need to add back the ‘RestartPod’ resize policy? Is there a strong use-case for it?
/assign @vinaykul
👋 Hey there @vinaykul. I'm a shadow on the 1.17 Release Team, working on Enhancements. We're tracking issues for the 1.17 release and I wanted to reach out and ask we should track this (or more specifically I guess the In-Place Update of Pod Resources feature) for 1.17?
The current release schedule is:
Monday, September 23 - Release Cycle Begins
Tuesday, October 15, EOD PST - Enhancements Freeze
Thursday, November 14, EOD PST - Code Freeze
Tuesday, November 22 - Docs must be completed and reviewed
Monday, December 9 - Kubernetes 1.17.0 Released
We're only 5 days away from the Enhancements Freeze, so if you intend to graduate this capability in the 1.17 release, here are the requirements that you'll need to satisfy:
implementable
stateThanks @vinaykul
- KEP must be merged in
implementable
state- KEP must define graduation criteria
- KEP must have a test plan defined
Hi @jeremyrickard I'll do my best to get this KEP to implementable state by next Tuesday, but it looks like a stretch at this point - the major item is to complete API review with @thockin , and that depends on his availability.
The actual code changes are not that big. Nevertheless, the safe option would be to track this for 1.18.0 release, I'll update you by next Monday.
CC: @dashpole @derekwaynecarr @dchen1107
@jeremyrickard @mrbobbytables This KEP will take some more discussion - key thing is API review. It does not look like @thockin or another API reviewer is available soon. Could we please track this KEP for v1.18?
Thanks,
/milestone v1.18
@PatrickLang Here's a first stab at the proposed CRI change to allow UpdateContainerResources to work with Windows. Please take a look.. let's discuss in tomorrow's sig meeting
root@skibum:~/km16/staging/src/k8s.io/cri-api# git diff --cached .
diff --git a/staging/src/k8s.io/cri-api/pkg/apis/runtime/v1alpha2/api.proto b/staging/src/k8s.io/cri-api/pkg/apis/runtime/v1alpha2/api.proto
index 0290d0f..b05bb56 100644
--- a/staging/src/k8s.io/cri-api/pkg/apis/runtime/v1alpha2/api.proto
+++ b/staging/src/k8s.io/cri-api/pkg/apis/runtime/v1alpha2/api.proto
@@ -924,14 +924,33 @@ message ContainerStatusResponse {
map<string, string> info = 2;
}
+// ContainerResources holds the fields representing a container's resource limits
+message ContainerResources {
+ // Resource configuration specific to Linux container.
+ LinuxContainerResources linux = 1;
+ // Resource configuration specific to Windows container.
+ WindowsContainerResources windows = 2;
+}
+
message UpdateContainerResourcesRequest {
// ID of the container to update.
string container_id = 1;
- // Resource configuration specific to Linux containers.
+ // Resource configuration specific to Linux container.
LinuxContainerResources linux = 2;
+ // Resource configuration specific to Windows container.
+ WindowsContainerResources windows = 3;
}
-message UpdateContainerResourcesResponse {}
+message UpdateContainerResourcesResponse {
+ // ID of the container that was updated.
+ string container_id = 1;
+ // Resource configuration currently applied to the Linux container.
+ LinuxContainerResources linux = 2;
+ // Resource configuration currently applied to the Windows container.
+ WindowsContainerResources windows = 3;
+ // Error message if UpdateContainerResources fails in the runtime.
+ string error_message = 4;
+}
message ExecSyncRequest {
// ID of the container.
diff --git a/staging/src/k8s.io/cri-api/pkg/apis/services.go b/staging/src/k8s.io/cri-api/pkg/apis/services.go
index 9a22ecb..9f1d893 100644
--- a/staging/src/k8s.io/cri-api/pkg/apis/services.go
+++ b/staging/src/k8s.io/cri-api/pkg/apis/services.go
@@ -44,7 +44,7 @@ type ContainerManager interface {
// ContainerStatus returns the status of the container.
ContainerStatus(containerID string) (*runtimeapi.ContainerStatus, error)
// UpdateContainerResources updates the cgroup resources for the container.
- UpdateContainerResources(containerID string, resources *runtimeapi.LinuxContainerResources) error
+ UpdateContainerResources(containerID string, resources *runtimeapi.ContainerResources) error
// ExecSync executes a command in the container, and returns the stdout output.
// If command exits with a non-zero exit code, an error is returned.
ExecSync(containerID string, cmd []string, timeout time.Duration) (stdout []byte, stderr []byte, err error)
@vinaykul It looks like since the above PR was merged, this was removed from the API review queue. I believe you need to open a new PR that moves the state to implementable, and then add the API-review label to get it back in the queue and get a reviewer.
Edit: you should also include any other changes (e.g. windows CRI changes) required to move the feature to implementable in the PR as well.
@vinaykul It looks like since the above PR was merged, this was removed from the API review queue. I believe you need to open a new PR that moves the state to implementable, and then add the API-review label to get it back in the queue and get a reviewer.
Edit: you should also include any other changes (e.g. windows CRI changes) required to move the feature to implementable in the PR as well.
@dashpole Thanks!
I've started a provisional mini-KEP per our discussion last week for the CRI changes (Dawn mentioned last week that we should take that up separately). imho the CRI changes does not block the implementation of this KEP, as it is between Kubelet and runtime, and user is not affected by it.
In a second commit to the same PR, I've addressed another key issue (update api failure handling), and requested change to move primary KEP to implementable.
With this, everything is in one place, and we can use it for API review.
Hey there @vinaykul -- 1.18 Enhancements shadow here. I wanted to check in and see if you think this Enhancement will be graduating to alpha in 1.18?
The current release schedule is:
To be included in the release,
If you would like to include this enhancement, once coding begins please list all relevant k/k PRs in this issue so they can be tracked properly. 👍
We'll be tracking enhancements here: http://bit.ly/k8s-1-18-enhancements
Thanks! :)
Hey there @vinaykul -- 1.18 Enhancements shadow here. I wanted to check in and see if you think this Enhancement will be graduating to alpha in 1.18?
The current release schedule is:
- Monday, January 6th - Release Cycle Begins
- Tuesday, January 28th EOD PST - Enhancements Freeze
- Thursday, March 5th, EOD PST - Code Freeze
- Monday, March 16th - Docs must be completed and reviewed
- Tuesday, March 24th - Kubernetes 1.18.0 Released
To be included in the release,
- The KEP PR must be merged
- The KEP must be in an implementable state
- The KEP must have test plans and graduation criteria.
If you would like to include this enhancement, once coding begins please list all relevant k/k PRs in this issue so they can be tracked properly. 👍
We'll be tracking enhancements here: http://bit.ly/k8s-1-18-enhancements
Thanks! :)
@palnabarun Yes, I'm planning to work towards alpha code targets for this feature in 1.18. I've updated the KEP adding test plan and graduation criteria sections that I will be reviewing with SIG-Node this week and hope to get it implementable before Jan 28. I'll update this thread if anything changes.
Thank you @vinaykul for the updates. :)
/stage alpha
/milestone v1.18
@vinaykul Just a friendly reminder, we are just 7 days away from the Enhancement Freeze (Tuesday, January 28th).
The KEP is still in provisional
state and is missing test plans and graduation criteria.
@vinaykul Just a friendly reminder, we are just 7 days away from the Enhancement Freeze (Tuesday, January 28th).
The KEP is still in
provisional
state and is missing test plans and graduation criteria.
@palnabarun Thanks for the reminder, I have sent PR #1342 to get it them to implementable, and the change also adds test plan and graduation criteria to the KEPs. We discussed it in sig-node this morning and there were a couple of comments, which has been addressed. Once @derekwaynecarr , @dchen1107 have the chance to take a final look, we should be merging it. I'm optimistic it can be done by next Tuesday.
Awesome @vinaykul! Thanks for keeping it in priority. :)
As an added note, I am updating the issue comment here to have the KEP PR also linked.
@vinaykul Just a friendly reminder, we are just 2 days away from the Enhancement Freeze (3 PM Pacific Time, Tuesday, January 28th).
@palnabarun the KEP PR has been LGTM'd and merged. Please review and let me know if this has everything squared away now.
Amazing! Everything here looks fine wrt to the Enhancements Freeze. :)
Thank you for all efforts in getting this past the milestone.
A small nit though, the KEP linked here is stale, since it belongs to sig-node now.
Updated the issue description.
Hello @vinaykul,
I'm 1.18 docs shadow.
Just want to know if this enhancement work planned for 1.18 require any new docs (or modifications to existing docs)? If not, can you please update the 1.18 Enhancement Tracker Sheet (or let me know and I'll do so)
If so, just a friendly reminder we're looking for a PR against k/website (branch dev-1.18) due by Friday, Feb 28th, it can just be a placeholder PR at this time.
Warm regards,
chima
Hi @vinaykul, just a friendly reminder that the Code Freeze will go into effect on Thursday 5th March.
Can you please link all the k/k PRs or any other PRs which should be tracked for this enhancement?
Thank You :)
Hello @vinaykul,
I'm 1.18 docs shadow.
Just want to know if this enhancement work planned for 1.18 require any new docs (or modifications to existing docs)? If not, can you please update the 1.18 Enhancement Tracker Sheet (or let me know and I'll do so)
If so, just a friendly reminder we're looking for a PR against k/website (branch dev-1.18) due by Friday, Feb 28th, it can just be a placeholder PR at this time.
Hello @vinaykul,
I'm 1.18 docs shadow.
Just want to know if this enhancement work planned for 1.18 require any new docs (or modifications to existing docs)? If not, can you please update the 1.18 Enhancement Tracker Sheet (or let me know and I'll do so)
If so, just a friendly reminder we're looking for a PR against k/website (branch dev-1.18) due by Friday, Feb 28th, it can just be a placeholder PR at this time.
Hi @iheanyi1 yes this feature will require updates to the documentation as we have API change. I'm working on the API change code, and once it is approved / agreed-upon I'll create a PR updating the relevant docs
Thanks,
Vinay
Thank you for update @vinaykul.
But just a friendly reminder we're looking for a PR against k/website (branch dev-1.18) due by Friday, Feb 28th, it can just be a placeholder PR at this time.
Keep the good work, we hope you will meet deadline we are working with.
Thanks
Hi @vinaykul, just a friendly reminder that the Code Freeze will go into effect on Thursday 5th March. Please list out any PRs for this enhancement.
Hi @vinaykul.
Just a friendly reminder we're looking for a PR against k/website (branch dev-1.18) due by Friday, Feb 28th, it can just be a placeholder PR at this time.
Thanks
@palnabarun @jeremyrickard @iheanyi1 While the code is getting there, we were a couple of hands short due to unforeseen circumstances, and some of my time was consumed by another priority for the company. So I won't be able to make 1.18 release with high quality by March 5th deadline - I don't have time to complete all the planned test-cases and iterate over the code to ensure the feature is mostly bulletproof. Since this is a feature that touches fundamental structures and core k8s components, it better be solid.
Could we please track this for 1.19 release? I'll continue to work on it and 1.19 should give us ample time for this to bake well.
Thank you @vinaykul for the update.
We will track the enhancement for 1.19 then.
/milestone clear
Thanks for update
hey guys!! this will be an awesome addition, especially with combination with VPA, super excited for it!!! 😄 what are the existing PRs/code changes that are already done, and what still needs work? I'm happy to help push/code/test this!
@jeremyrickard @palnabarun Could we please track this for v1.19? Thanks.
@vinaykul Awesome! I'm guessing you would want it to tracked as graduating to Alpha
. Can you please confirm the same? :slightly_smiling_face:
@vinaykul Awesome! I'm guessing you would want it to tracked as graduating to
Alpha
. Can you please confirm the same? 🙂
Yes, graduating as alpha. thanks,
@vinaykul Thank you for the confirmation. I have updated the tracking sheet for 1.19 release.
/milestone v1.19
Hello, @vinaykul ! :wave: I'm one of the v1.19
Docs shadows. Does this enhancement work planned for v1.19
require any new docs (or modifications to existing docs)?
This is a friendly reminder that we're looking for a PR against kubernetes/website (branch dev-1.19
) due by Friday, June 12, it can just be a placeholder PR at this time. Let me know if you have any questions!
Regards,
Mikael.
Hi @vinaykul
As a reminder that the Code Freeze is June 25th. Can you please link all the k/k PRs or any other PRs that should be tracked for this enhancement?
Thanks!
The 1.19 Enhancements Team
kubernetes/website
I have created placeholder PR https://github.com/kubernetes/website/pull/21669 . In addition to adding this new md file, I might need to modify a few existing pages. I'll get to identifying them as soon as I can, right now heads down on getting to code-complete and getting e2e tests done for alpha by the jun 25 deadline.
Hi @vinaykul
As a reminder that the Code Freeze is June 25th. Can you please link all the k/k PRs or any other PRs that should be tracked for this enhancement?
Thanks!
The 1.19 Enhancements Team
@kikisdeliveryservice At this time, I'm working on it in my fork and also being reviewed there: https://github.com/vinaykul/kubernetes/pull/1 . I should be able to rebase and send PR to upstream by sometime next week. Should I send PR to k/k master? Or is there particular branch I need to work in and send PR to for this alpha feature?
Created a k/k PR for broader community review. Please see https://github.com/kubernetes/kubernetes/pull/92127
@vinaykul looks good, thanks for linking!
Hi @vinaykul !
To follow-up on the email sent to k-dev today, I wanted to let you know that Code Freeze has been extended to Thursday, July 9th. You can see the revised schedule here: https://github.com/kubernetes/sig-release/tree/master/releases/release-1.19
We expect all PRs to be merged by that time. Please let me know if you have any questions. 😄
Best,
Kirsten
Hi @vinaykul 👋 docs shadow here. Just a quick reminder to get your doc PR ready for review (Remove WIP/rebased/all ready to go) by EOD. Thank you!
Spoke to @vinaykul and this will be pushed to 1.20
/milestone clear
/milestone v1.20
Hi @vinaykul !
Enhancements Lead here, do you still intend to target this for alpha in 1.20?
Thanks!
Kirsten
Hi @vinaykul !
Enhancements Lead here, do you still intend to target this for alpha in 1.20?
Thanks!
Kirsten
Yes. Sorry I missed responding to this sooner, I've been working on another priority project.
The proposed API changes are not too disruptive and I believe I can pull it into 1.20 looking at the schedule. Please keep it tracked 1.20-alpha.
Thanks
Hey @vinaykul -- 1.20 Enhancements Shadow here 👋
Time permitting, can you please update the KEP to the new format detailed here: https://github.com/kubernetes/enhancements/tree/master/keps/NNNN-kep-template?
This can be completed before the Enhancements Freeze deadline on October 6th.
Thank you for all of your work on this!!
Regards,
Jeremy
Hi @vinaykul ,
Since your Enhancement is scheduled to be in 1.20, please keep in mind the important upcoming dates:
Friday, Nov 6th: Week 8 - Docs Placeholder PR deadline
Thursday, Nov 12th: Week 9 - Code Freeze
As a reminder, please link all of your k/k PR as well as docs PR to this issue so we can track them.
Best,
Jeremy
Hello @vinaykul , 1.20 Docs shadow here 👋🏽.
Does this enhancement work planned for 1.20 require any new docs or modification to existing docs?
If so, please follows the steps here to open a PR against dev-1.20
branch in the k/website
repo. This PR can be just a placeholder at this time and must be created before Nov 6th
Also take a look at Documenting for a release to get yourself familiarize with the docs requirement for the release.
Thank you!
Hi @vinaykul
The docs placeholder deadline is almost here. Please make sure to create a placeholder PR against the dev-1.20
branch in the k/website
before the deadline
Also, please keep in mind the important upcoming dates:
Thank you!
@kikisdeliveryservice @MorrisLaw @SomtochiAma Could you please move this enhancement out to the next release (track it towards 1.21). I've just not had the cycles to work on the updated design, which is still in a bit of flux, but I hope to work out the final details with Tim Hockin in the coming few weeks - he has some cycles now to work on finalizing it. Once finalized, I will implement it around late Nov or early Dec when the work pressure lets up a bit.
Thanks.
Thanks for the update @vinaykul
Most helpful comment
Yes. Sorry I missed responding to this sooner, I've been working on another priority project.
The proposed API changes are not too disruptive and I believe I can pull it into 1.20 looking at the schedule. Please keep it tracked 1.20-alpha.
Thanks