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

Does kubernetes support docker update command when pod is running? #39060

Closed
liubnu opened this Issue Dec 21, 2016 · 3 comments

Comments

Projects
None yet
4 participants
@liubnu
Copy link

liubnu commented Dec 21, 2016

This is a FEATURE REQUEST.
I use kubernetes v1.4.7 on centos 7.2.

Docker has command named update to change allocated resources on the fly.
I'd like to know if I can use kubectl to change allocated resources of a running pod.
I look this in kubectl patch command, but could not find solution.

@resouer

This comment has been minimized.

Copy link
Member

resouer commented Dec 21, 2016

In a cluster, it is not easy to update container resource on the fly. Just imagine what happens if you changed a container's memory request to +1GB while your node only have 512MB available?

And, for another example, docker update command only changes values in the container's cgroup, but resources like memory is actually incompressible, container can not free more memory unless the process is killed.

For more details, please check: #9043. People have been talking about in-place pod update for long time, but as you can see there, it is definitely not as easy as replace values in cgroups.

For now using deployment to manage your container workload and trigger rolling update is a good idea, unless you have strong reason that your workload can not be stopped. In that case, I assume it's mostly because your container has state, Stateful Apps may also help.

If it's not all the case above, #9043 is a good place to continue discussing your problem (I will close this one so we can focus the original problem), @davidopp is the one of the authors of Borg paper and owner of scheduling there.

@resouer resouer closed this Dec 21, 2016

@kargakis kargakis changed the title Dose kubernetes support docker update command when pod is running? Does kubernetes support docker update command when pod is running? Dec 21, 2016

@kargakis

This comment has been minimized.

Copy link
Member

kargakis commented Dec 21, 2016

@bgrant0607

This comment has been minimized.

Copy link
Member

bgrant0607 commented Feb 24, 2017

Pod resource update is #5774

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment