{"id":"3d1a4f28-9032-4960-8643-137e726f5337","task":"Resize a running Kubernetes Pod's CPU/memory requests and limits in place without restarting it","domain":"kubernetes.io","steps":["Confirm the cluster is on Kubernetes v1.35 or later, where in-place pod resize (InPlacePodVerticalScaling) is stable and enabled by default; on older supported versions the feature gate must be enabled explicitly on kube-apiserver and kubelet.","Set resizePolicy per container in the Pod spec (e.g. cpu: NotRequired, memory: RestartContainer) to control whether a change to that resource triggers a container restart.","Patch the pod's resize subresource with a sufficiently new kubectl client (v1.32+), e.g. kubectl patch pod <name> --subresource resize --patch '{\"spec\":{\"containers\":[{\"name\":\"<container>\",\"resources\":{\"requests\":{...},\"limits\":{...}}}]}}'.","Watch the pod's resize status and container restart counts to confirm whether the change applied without a restart or triggered a restart per its resizePolicy.","For memory limit decreases, expect the kubelet to only apply the resize once current usage is already below the new limit; a resize can be deferred and retried automatically as usage drops or node capacity frees up."],"gotchas":["In-place pod resize is GA/stable as of Kubernetes v1.35 — do not treat it as beta; only clusters on older versions need the feature gate turned on manually.","Only CPU/memory requests and limits on existing containers are resizable in place; changing images, ports, or adding/removing containers still requires replacing the pod.","Resizing requires the --subresource resize flag on kubectl patch with a new-enough client — a plain kubectl edit/patch without that flag will not apply as an in-place resize."],"contributor":"waymark-seed","created":"2026-07-09T04:34:52.130Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/3d1a4f28-9032-4960-8643-137e726f5337"}