Skip to content

Conversation

mburke5678
Copy link
Contributor

@mburke5678 mburke5678 commented Sep 3, 2025

https://issues.redhat.com/browse/OSDOCS-15958

Link to docs preview:
Adjust pod resource levels without pod disruption -- New assembly

QE review:

  • QE has approved this change.

@mburke5678 mburke5678 added this to the Planned for 4.20 GA milestone Sep 3, 2025
@openshift-ci openshift-ci bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 3, 2025
@ocpdocs-previewbot
Copy link

ocpdocs-previewbot commented Sep 3, 2025

🤖 Mon Oct 06 15:01:24 - Prow CI generated the docs preview:

https://98484--ocpdocs-pr.netlify.app/openshift-enterprise/latest/nodes/pods/nodes-pods-adjust-resources-in-place.html

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 11, 2025
@openshift-ci openshift-ci bot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Sep 11, 2025
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 11, 2025
@mburke5678 mburke5678 added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. labels Sep 11, 2025
@mburke5678
Copy link
Contributor Author

@haircommander PTAL

[id="nodes-pods-adjust-resources-in-place-about_{context}"]
= About in-place pod resizing

In-place pod resizing allows you to change the CPU and memory resources for containers and sidecar containers within a running pod without application disruption. The standard methods for changing pod CPU and memory resources cause the pod to be re-created, potentially causing disruption. In-place pod resizing allows you to scale pod resources up or down without suffering the downtime or state loss associated with a pod restart.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

curious why you callout sidecar conatainers, wouldn't containers cover that?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@haircommander The Kubernetes docs called it out (4th bullet). Thought it might be important. I can remove it if it doesn't make sense here or is redundant.

@haircommander
Copy link
Member

one note but generally looks good

@mburke5678 mburke5678 changed the title OSDOCS16065 Document InPlacePod feature for OpenShift 4.20 OSDOCS16065 Document InPlacePod Resize feature for OpenShift 4.20 Sep 15, 2025
@arnaik-rh
Copy link

@asahay19 Can you also review this PR

@asahay19
Copy link

asahay19 commented Oct 1, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Oct 1, 2025
@mburke5678 mburke5678 force-pushed the node-in-place-update branch from c6ab9e6 to 5efe643 Compare October 6, 2025 13:12
@mburke5678 mburke5678 added the merge-review-needed Signifies that the merge review team needs to review this PR label Oct 6, 2025
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Oct 6, 2025
Copy link

openshift-ci bot commented Oct 6, 2025

New changes are detected. LGTM label has been removed.

@JoeAldinger JoeAldinger added merge-review-in-progress Signifies that the merge review team is reviewing this PR and removed merge-review-needed Signifies that the merge review team needs to review this PR labels Oct 6, 2025
Copy link
Contributor

@JoeAldinger JoeAldinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One thing that needs changed otherwise, good to go.

$ apply -f <file_name>.yaml --subresource resize
----

[source,terminal]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if we need outputs for these. I mention this because I feel like I heard this was part of the 2.0 CQA work or JTBD. I could've hallucinated this too. I couldn't find anything firm on it so this isn't a blocker, IMO.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this point, I wanted to show that the --subresource resize flag is required. We aren't concerned with the output at this point.


Because you need to use the `--subresource resize` flag with a resize policy, you cannot edit the pod resources in the {product-title} web console.

If the resize policy is `NotRequired` and you change the request or limits, the pod is not restarted.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need a noun following NotRequired. Again, not a deal breaker for merge.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. NotRequired is a value, not an object. Rather like: "Set the parameter to 0"

resize-pod 1/1 Running 0 5s
----

If the resize policy is `RestartContainer` and you change the request or limits, the pod is restarted.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same


You can change the CPU or memory resource requests and limits assigned to a container without re-creating or restarting the pod by using _in-place pod resizing_.

include::modules/nodes-pods-adjust-resources-in-place-about.adoc[leveloffset=+1]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need a space between includes

@JoeAldinger JoeAldinger removed the merge-review-in-progress Signifies that the merge review team is reviewing this PR label Oct 6, 2025
@mburke5678 mburke5678 force-pushed the node-in-place-update branch from 5efe643 to 734307e Compare October 6, 2025 14:50
Copy link

openshift-ci bot commented Oct 6, 2025

@mburke5678: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@mburke5678 mburke5678 merged commit 33d7b0c into openshift:main Oct 6, 2025
2 checks passed
@mburke5678 mburke5678 deleted the node-in-place-update branch October 6, 2025 15:22
@mburke5678
Copy link
Contributor Author

/cherrypick enterprise-4.20

@openshift-cherrypick-robot

@mburke5678: new pull request created: #100059

In response to this:

/cherrypick enterprise-4.20

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

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

Labels

branch/enterprise-4.20 size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants