Skip to content

Clarify what setting .spec.os.name does in the Pod OS section#56537

Merged
kubernetes-prow[bot] merged 1 commit into
kubernetes:mainfrom
harjothkhara:docs-55112-pod-os-framing
Jul 20, 2026
Merged

Clarify what setting .spec.os.name does in the Pod OS section#56537
kubernetes-prow[bot] merged 1 commit into
kubernetes:mainfrom
harjothkhara:docs-55112-pod-os-framing

Conversation

@harjothkhara

@harjothkhara harjothkhara commented Jul 19, 2026

Copy link
Copy Markdown
Contributor

Description

The Pod OS section tells you to set .spec.os.name, then says the value does not
affect how the scheduler picks a node — without saying what setting it does do.
Read together, those two statements look like a contradiction, which is what
#55112 reports.

This adds the missing half: the kubelet refuses to run a Pod if .spec.os.name
does not match the operating system of the node. The scheduling sentence then reads
as a caveat rather than a contradiction, and the recommendation to set the field
stays as it is.

That kubelet behaviour is already documented under the
kubernetes.io/os
label, which links to this section for more detail — so this page was the one place
not stating it.

The opening sentence now describes the operating system that the containers require,
matching how content/en/docs/concepts/windows/user-guide.md already describes the
field. Checked windows/intro.md as well; no change needed there. Built locally with
Hugo 0.144.2 and checked the rendered section.

#55454 proposes a different fix for the same issue and has been inactive since April.
Its review feedback was that the recommendation to set .spec.os.name should be kept,
so this change keeps it — happy to close this one if its author picks that back up.

This PR was assisted by AI but human reviewed along the way.

Issue

Closes: #55112

The section recommended setting .spec.os.name and then said the value does
not affect scheduling, which read as a contradiction: it was not clear what
setting the field actually does. Say that the kubelet refuses to run a Pod
whose .spec.os.name does not match the node, so the recommendation and the
scheduling caveat no longer appear to conflict.

The kubelet behaviour is already documented under the kubernetes.io/os
label, which links here for details. Also align the opening sentence with
the Windows user guide, which describes the field in terms of the
containers rather than the node.
@kubernetes-prow kubernetes-prow Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 19, 2026
@linux-foundation-easycla

linux-foundation-easycla Bot commented Jul 19, 2026

Copy link
Copy Markdown

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: harjothkhara / name: harjoth (3a6b036)

@kubernetes-prow kubernetes-prow Bot added the language/en Issues or PRs related to English language label Jul 19, 2026
@kubernetes-prow kubernetes-prow Bot added the cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. label Jul 19, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

Welcome @harjothkhara!

It looks like this is your first PR to kubernetes/website 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/website has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@kubernetes-prow kubernetes-prow Bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jul 19, 2026
@netlify

netlify Bot commented Jul 19, 2026

Copy link
Copy Markdown

Pull request preview available for checking

Built without sensitive environment variables

Name Link
🔨 Latest commit 3a6b036
🔍 Latest deploy log https://app.netlify.com/projects/kubernetes-io-main-staging/deploys/6a5c4fd86e1b4100089298e3
😎 Deploy Preview https://deploy-preview-56537--kubernetes-io-main-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. and removed cncf-cla: no Indicates the PR's author has not signed the CNCF CLA. labels Jul 19, 2026
@harjothkhara
harjothkhara marked this pull request as ready for review July 19, 2026 04:31
@kubernetes-prow kubernetes-prow Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 19, 2026

@lmktfy lmktfy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice improvement. Thanks for following our policy on AI use disclosure.

/lgtm
/approve

@kubernetes-prow kubernetes-prow Bot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Jul 20, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

LGTM label has been added.

DetailsGit tree hash: 0beddb7461cc5b6ea642fd267de313cf6d1ca0f9

@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lmktfy

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubernetes-prow kubernetes-prow Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 20, 2026
@kubernetes-prow
kubernetes-prow Bot merged commit 2e51225 into kubernetes:main Jul 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. language/en Issues or PRs related to English language lgtm "Looks good to me", indicates that a PR is ready to be merged. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent documentation about .spec.os.name usage

2 participants