-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Closed
Closed
Copy link
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.sig/cliCategorizes an issue or PR as relevant to SIG CLI.Categorizes an issue or PR as relevant to SIG CLI.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Description
What would you like to be added?
In #128266, we are introducing a new /resize subresource to request pod resource resizing. It would be good add support for this in kubectl.
Few options:
- A new
resizesubcommand:
kubectl resize pods <pod-name> -c <container> --cpu <cpu> --memory <memory>
- support for
resizesubresource in existing commands likekubectl patchandkubectl edit:
kubectl patch pod pause \
-p '{"spec":{"containers":[{"name":"pause", "resources": {"requests": {"cpu": "200m"}}}]}}' \
--subresource=resize
kubectl edit pod pause --subresource=resize
Why is this needed?
This will help us manually test this feature as well as making it user friendly to use the new subresource.
Metadata
Metadata
Assignees
Labels
kind/featureCategorizes issue or PR as related to a new feature.Categorizes issue or PR as related to a new feature.sig/cliCategorizes an issue or PR as relevant to SIG CLI.Categorizes an issue or PR as relevant to SIG CLI.triage/acceptedIndicates an issue or PR is ready to be actively worked on.Indicates an issue or PR is ready to be actively worked on.
Type
Projects
Status
Closed
Status
Done