Skip to content

[docs] Retire the "Ray Pod" term from the Kubernetes docs - #65423

Merged
dstrodtman merged 7 commits into
ray-project:masterfrom
dstrodtman:doc-1436-retire-ray-pod-term
Aug 14, 2026
Merged

dstrodtman merged 7 commits into
ray-project:masterfrom
dstrodtman:doc-1436-retire-ray-pod-term

Conversation

@dstrodtman

@dstrodtman dstrodtman commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Why this change

Ray on Kubernetes docs use "Ray Pod" 89 times, and this PR removes the term. It's the concrete counterpart to the discussion in #65239, where a reviewer asked whether the Kubernetes casing rule should capitalize Pod in "Ray pod". Investigating that question produced a better answer than either casing.

A Pod isn't a Ray node, it's a host that contains one. Kubernetes defines a Pod as an "application-specific logical host" holding one or more containers. KubeRay indexes exactly one Ray container per Pod through utils.RayContainerIndex, and routinely places non-Ray containers alongside it: the autoscaler sidecar, the history-server collector, the RayJob submitter in SidecarMode, and the Fluent Bit sidecars that persist-kuberay-custom-resource-logs.md documents. The Pod is a strict superset of the Ray node, so naming it after Ray overstates what it is. It's the same category error as "head node pod", one level up.

"Pod" is already taken in these docs, by something that isn't a Kubernetes object. A TPU Pod is a group of interconnected TPU chips. user-guides/tpu.md writes "The name of the TPU Pod or slice" and "The TPU pod type" three lines apart, and ray.util.tpu.get_current_pod_name() is a public API whose docstring reads "Return the name of the TPU pod that the worker is a part of". Standardizing on a capitalized Ray Pod would put it beside a capitalized TPU Pod on the same pages, distinguished only by the preceding word.

The mapping is already documented. user-guides/k8s-autoscaler.md says "each Ray node is run as a Kubernetes Pod", so two defined terms already cover what the compound names.

There was no convention to preserve. Across the 55 prose lines using the term, casing split four ways:

Form Occurrences
Ray Pods 20
Ray pods 16
Ray pod 16
Ray Pod 15

Meanwhile "head Pod" and "worker Pod" already outnumber it 284 to 86 under doc/source/cluster/kubernetes/, so the replacement vocabulary is the one these docs mostly use.

What changed

83 lines across 31 files. The term becomes "Pod" where context is unambiguous, which is most of them. Where a bare "Pod" would lose meaning I used an explicit form instead:

  • Headings, which have no surrounding context: "Check logs of the head and worker Pods", "Verify the Ray cluster's Pods and PodGroup", "Configuring Kubernetes Pods for TPU usage".
  • Pages where other kinds of Pod are in scope: "the Ray cluster's Pods" in network-policy.md, prometheus-grafana.md, k8s-events.md, and scheduler-plugins.md.
  • rayservice-high-availability.md listed "Ray Pod: This Pod sends requests to the RayService". That Pod is a client that isn't part of the RayCluster, and it's named ray-pod in the sample manifest, so it's now listed by its actual object name.

What replaces it on the orientation pages

Removing the compound takes away the handle a Ray-first reader was using for the node-and-Pod relationship, so the relationship now gets stated where readers form their mental model. It was only in user-guides/k8s-autoscaler.md, whose title begins "(Advanced)", and absent from index.md, getting-started.md, and user-guides/config.md.

One sentence each on the two orientation pages:

  • index.md: "KubeRay runs each Ray node as a Kubernetes Pod, so each Ray cluster consists of a head Pod and a collection of worker Pods."
  • getting-started.md: "It runs each Ray node as a Kubernetes Pod, so a Ray cluster's head node is its head Pod and its worker nodes are its worker Pods."

getting-started/raycluster-quick-start.md is the natural third location, since line 53 is where the two vocabularies genuinely first meet for a reader following the quickstart. It's left alone deliberately: that paragraph writes "pods" lowercase throughout, and adding a capitalized sentence into it would either read inconsistently or drag the casing sweep into this PR. It belongs to whoever runs that pass.

The rules behind both changes are in #65239, which now carries a "State the node-to-Pod mapping once, early" section and a "Keep Pods out of Ray-general pages" section. The second one is why this PR touches ray-core/scheduling/placement-group.rst and serve/production-guide/fault-tolerance.md.

What this deliberately doesn't touch

  • Ray head Pod and Ray worker Pod stay. Those qualify by role, which is the form these docs already prefer and the one Google's Ray on GKE docs use. Only the unqualified compound goes.
  • No casing sweep. Lowercase "head pod" occurrences are left alone. That's the Vale rule in [docs] Add Kubernetes and KubeRay conventions to the style guide #65239, not this PR.
  • python/ code comments and docstrings keep the term. About 10 occurrences under python/ray/autoscaler, python/ray/dashboard, and the KubeRay tests identify which Pods the operator manages, which is reasonable for a code comment. This PR is scoped to documentation prose.
  • The kuberay repo is out of scope. Its authored prose has a handful of uses and its docs/reference/api.md is generated from Go doc comments. That's a maintainer call for that repo, and I'll raise it there separately rather than assume the same decision carries.

Two fixes on lines this change already rewrites

  • k8s-autoscaler.md linked to .../horizontal-Pod-autoscale/, which returns 404. The correct URL is all-lowercase and returns 200. An earlier Pod-casing sweep appears to have capitalized inside the URL.
  • index.md described a Ray cluster as "a head node pod and a collection of worker node pods", stacking both vocabularies in one phrase. Now "a head Pod and a collection of worker Pods".
  • index.md also wrote "heterogenous compute nodes" on that same line. Now "heterogeneous".

One casing fix folded in

k8s-ecosystem/kai-scheduler.md wrote "KAI scheduler deployment" in one place and "KAI Scheduler" everywhere else. The KubeRay Vale vocabulary proposed in #65239 surfaced it, and @win5923 confirmed the two-word title-case form on that PR. Folded in here rather than opened as a one-line PR, per the guidance in AGENTS.md about standalone trivial changes.

The other hyphenated spellings in that file stay as they are. They sit inside links to NVIDIA/KAI-Scheduler, the Helm release name, and the <KAI_SCHEDULER_VERSION> placeholder, so none of them are prose.

Testing

pre-commit run --files $(git diff --name-only)

Every hook reports "no files to check". Stating that plainly rather than implying coverage it doesn't give: no pre-commit hook applies to Markdown or reStructuredText under doc/source/, and the vale hook is scoped to ^doc/source/data/.*, so none of these files are linted in CI today.

What I verified by hand instead:

  • No residual term. grep -rIniE '\bray [*_]* ?pods?\b' .over the whole repo returns only thepython/` code comments listed above as intentionally out of scope. This includes a markup-split case, "Ray **Pod quantities**", that a naive search misses.
  • reStructuredText heading integrity. gpu.rst has a section whose title shortened, so its underline was resized to match. Title and underline are both 30 characters.
  • No broken anchors. Four headings changed text. Searched for inbound references to their generated anchors and found none, and none carries an explicit MyST anchor.
  • The URL fix. curl returns 404 for the old casing and 200 for the new one.
  • Config comments included. configs/static-ray-cluster.tls.yaml carried the term in two YAML comments mirroring config.md prose, so the removal is complete rather than Markdown-only.

Rendering is verified by the Read the Docs preview build on this PR.

No code, no API, no behavior change.

Not a duplicate

gh pr list --repo ray-project/ray --state open --search "Ray Pod"
gh pr list --repo ray-project/ray --state open --search "pod terminology"

No open PR proposes this change. #65239 is the style-guide PR where the question came up and is the discussion surface for the rule; this PR is the cleanup and stands on its own against master. Two of my open PRs touch nearby files: #65287 rewrites lines in jax-tpu-profiling.md, which this PR doesn't touch, and #65263 is a draft adding scheduling.md, which introduces one new use of the term that I'll fix there rather than here.

Per AGENTS.md, mechanical cleanups need maintainer coordination. That's the thread on #65239 with @win5923, who reviewed and approved the style-guide change and raised the question this PR answers.

AI assistance

Written with AI assistance (Claude). I've reviewed every changed line, generated and inspected the counts myself, and can defend the change end to end.


Update: four casing defects folded in (f9fc8ea)

Extending the KubeRay Vale vocabulary in #65239 turned four latent casing errors into alerts. They belong with the rest of the terminology cleanup rather than in a PR of their own.

  • configuring-ippr.md, two uses: "Kubelet" to "kubelet". Kubernetes writes the component lowercase in prose.
  • rayservice-incremental-upgrade.md: "Install istio" to "Install Istio" in a step label, where the word names the project. The lowercase istio elsewhere on that page is correct and stays, since it's a GatewayClass metadata.name and a controllerName value rather than the project name.
  • resource-isolation-with-writable-cgroups.md: the H1 read "Resource Isolation with Writable Cgroups on Google Kubernetes Engine (GKE)". Lowercasing only "Cgroups" would leave a title-case heading with one lowercase word, so the whole heading moves to sentence case, which the style guide requires anyway.

One coupling worth flagging for review. The explicit MyST label above that H1 is unchanged, so every {ref} to the page still resolves, and the bare {ref} in cluster/kubernetes/user-guides.md picks up the new title automatically. But ray-core/resource-isolation-with-cgroupv2.rst passes custom link text that mirrored the old title case, so that text moves to sentence case too. That's the one file this PR touches outside doc/source/cluster/kubernetes/, and it's a one-line consistency fix caused directly by the heading change.

Verified against the #65239 ruleset by diffing the alert set for these files before and after the change: the four alerts clear and no new alert appears. AI assistance was used for this commit and for that verification.

Update: a bad replacement in this PR, plus three defects in the same files (89b0e49)

This PR had a bug. The term replacement turned "KubeRay pods" into "KubePods" in tpu.md: the pattern matched "Ray pods" inside "KubeRay pods" and left the "Kube" prefix glued to the replacement. git log -S traces it to the retirement commit, so it isn't pre-existing. It's now "Pods", which is what the rule asks for when the qualifier only names the framework.

I swept every added line in this PR for the same signature, a lowercase letter glued to "Pod" or "Pods", and this was the only instance. The other repo-wide matches are Kubernetes event reasons such as CreatedHeadPod, correct as literal strings.

Three more defects, in files this PR already edits:

  • tpu.md: "GKE nodepool" to "GKE node pool" in prose. The az aks nodepool spelling elsewhere in the docs is a CLI subcommand and stays.
  • prometheus-grafana.md: "spawned by replicaset controller" to "spawned by a ReplicaSet controller", fixing the API object casing and a missing article.
  • rayservice-incremental-upgrade.md: "utilizing" to "using", "like" to "such as" for an example, and "(e.g. istio)" to "for example istio", plus the imperative in place of "You will need to".

Verified against the #65239 ruleset with a column-independent diff of the alert set for these files: five alerts clear, no new finding. The two passive-voice alerts that change column position are pre-existing and unchanged in substance.

Deliberately not in this PR. These sit in files this PR doesn't otherwise touch, so folding them in would widen its file scope for unrelated reasons: "Deepseek" for DeepSeek in examples/rayserve-deepseek-example.md (an H1) and serve/llm/architecture/overview.md; gsutil in examples/distributed-checkpointing-with-gcsfuse.md, where gcloud storage supersedes it and swapping a documented command needs someone who can verify the equivalent invocation; and "nodepool" in the prose of user-guides/azure-aks-gpu-cluster.md.

AI assistance was used for this commit and for the verification above.

Update: adopt the RayCluster possessive the style guide settled on (68041df)

#65239 merged after this PR was written, and the rule it landed is more specific than the form used here. It says to use the resource name in the possessive: the operator creates these Pods, sets their ownerReferences to the RayCluster, and labels them ray.io/cluster, so ownership, selection, and lifecycle are facts about the resource rather than about the Ray cluster it produces. Its worked example is the exact sentence this PR introduced in six places: "List the RayCluster's Pods" above kubectl get pods -l=ray.io/is-ray-node=yes.

All 16 possessives become "the RayCluster's Pods". Each turns on one of the three:

  • Selection, nine uses. Six step comments above label-filtered kubectl commands in rayservice.md, rayservice-quick-start.md, configuring-autoscaling.md, label-based-scheduling.md, and rayservice-no-ray-serve-replica.md (twice); the PodMonitor and the kubectl wait -l ray.io/cluster= in prometheus-grafana.md; and the podSelector in network-policy.md.
  • Ownership, four uses. The Pods the RayCluster owns and places in one PodGroup in scheduler-plugins.md (three), and the Pods KubeRay injects environment variables into in k8s-events.md.
  • Membership, three uses. Which Pods carry the proxy in kuberay-serve-high-throughput.md, and which Pods to exec into in serve/production-guide/fault-tolerance.md (twice).

Non-possessive uses of "Ray cluster" are unchanged, since they name the running thing. Two of them the style guide now carries verbatim as its own Use: examples: "Each Ray cluster consists of a head Pod and a collection of worker Pods" on the landing page, and "a Ray cluster's head node is its head Pod" on the getting-started page. That's a check on the earlier commits rather than a change to them.

One thing left alone. config.md reads "manages Pods in order to match the RayCluster's spec", with the resource name in backticks. The backticks predate this PR and code-formatting the resource name is a separate question from the possessive, so it stays as it is.

A Pod is a Kubernetes host that contains a Ray node rather than being
one, so "Ray Pod" misstates what it names. KubeRay routinely places
non-Ray containers in the same Pod, including the autoscaler sidecar,
the history-server collector, the RayJob sidecar submitter, and Fluent
Bit log shippers, which makes the Pod a strict superset of the Ray node.

"TPU Pod" already occupies the qualified-Pod form in these same docs and
means something that isn't a Kubernetes object at all, so standardizing
on a capitalized "Ray Pod" would put two unrelated capitalized Pods on
the same pages.

The term also had no settled form to preserve. Across the 55 prose lines
using it, casing split four ways: "Ray Pods" 20, "Ray pods" 16, "Ray pod"
16, "Ray Pod" 15.

Replaces the term with "Pod" where context is unambiguous, and with an
explicit form such as "the Ray cluster's Pods" or "head and worker Pods"
in headings and in the pages where other kinds of Pod are in scope. The
role-qualified "Ray head Pod" and "Ray worker Pod" forms are correct and
stay as they are.

Two fixes on lines this change already rewrites. The Horizontal Pod
Autoscaler link in k8s-autoscaler.md pointed at "horizontal-Pod-autoscale"
and returned 404, left by an earlier casing sweep. And index.md described
"a head node pod and a collection of worker node pods", stacking the Ray
and Kubernetes vocabularies in one phrase.

Signed-off-by: Douglas Strodtman <[email protected]>
Review caught that some replacements dropped information the original
term was carrying. Several of these Pods are described in contexts that
also contain Pods the RayCluster doesn't own, and a few sit above
commands whose label selectors filter to a subset.

Six step comments read "List all Pods in the `default` namespace" above
`kubectl get pods -l=ray.io/is-ray-node=yes`. The selector filters to the
Pods running Ray nodes, so "all Pods" described something the command
doesn't do. These now say "the Ray cluster's Pods".

The same problem appeared above `kubectl wait pods -l ray.io/cluster=...`
in the Prometheus and Grafana guide, in a namespace that also holds the
kube-prometheus-stack Pods.

kuberay-gcs-ft.md shows the distinction is real and predates this change:
it says "List all Pods in the `default` namespace" for a bare `kubectl
get pods` and expects "1 head, 1 worker, 1 KubeRay, and 1 Redis". That
usage is correct and stays as it is.

Also restores explicit scope in four prose spots whose pages describe
other kinds of Pod: the memory benchmark, which counts Pods across
RayClusters alongside an operator Pod; the Serve high-throughput guide;
the TLS guide's step heading; and the no-Serve-replica guide, where a
curl Pod also has no ProxyActor.

Signed-off-by: Douglas Strodtman <[email protected]>
The KubeRay Vale vocabulary proposed in ray-project#65239 surfaced this: the
scheduler integration guide writes "KAI scheduler deployment" in one
place and "KAI Scheduler" everywhere else. @win5923 confirmed the
two-word title-case form on that PR.

The remaining hyphenated spellings in this file are correct as they
stand. They sit inside links to NVIDIA/KAI-Scheduler, the Helm release
name, and the <KAI_SCHEDULER_VERSION> placeholder, none of which are
prose.

Signed-off-by: Douglas Strodtman <[email protected]>
…n pages

Retiring "Ray Pod" removes a term readers were using as their handle on
the node-and-Pod relationship, so the relationship needs stating where
readers form their mental model. It currently appears only in
user-guides/k8s-autoscaler.md, whose title begins "(Advanced)", and is
absent from the landing page and the getting-started page.

Adds one sentence to each. Also corrects "heterogenous" to
"heterogeneous" on a line this change already rewrites.

Signed-off-by: Douglas Strodtman <[email protected]>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request standardizes the terminology used across the KubeRay documentation by replacing generic 'Ray pod' references with more precise terms such as 'Pod' or 'the Ray cluster's Pods'. The review process identified a minor typo introduced during the search-and-replace process ('KubePods') and suggested a phrasing improvement to reduce redundancy in the high-throughput documentation. Both comments provided actionable suggestions to improve the quality and clarity of the documentation.

With Ray 2.56 and later, high throughput config options are available for Ray Serve by setting the following environment variables:

- `RAY_SERVE_ENABLE_HA_PROXY=1`: Enables HAProxy ingress for each Ray pod's proxy ingress (serving on port 8000 by default), which is a highly optimized, battle-tested open-source load balancer written in C.
- `RAY_SERVE_ENABLE_HA_PROXY=1`: Enables HAProxy ingress for the proxy ingress on each of the Ray cluster's Pods (serving on port 8000 by default), which is a highly optimized, battle-tested open-source load balancer written in C.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The phrase "Enables HAProxy ingress for the proxy ingress" is slightly redundant. We can simplify this to "Enables HAProxy as the proxy ingress" to improve readability and flow.

Suggested change
- `RAY_SERVE_ENABLE_HA_PROXY=1`: Enables HAProxy ingress for the proxy ingress on each of the Ray cluster's Pods (serving on port 8000 by default), which is a highly optimized, battle-tested open-source load balancer written in C.
- `RAY_SERVE_ENABLE_HA_PROXY=1`: Enables HAProxy as the proxy ingress on each of the Ray cluster's Pods (serving on port 8000 by default), which is a highly optimized, battle-tested open-source load balancer written in C.

Extending the KubeRay Vale vocabulary in ray-project#65239 turned four latent casing
errors into alerts. Folding the fixes in here, where the rest of the
terminology cleanup lives, rather than opening a separate PR for them.

- `configuring-ippr.md`, two uses: "Kubelet" to "kubelet". Kubernetes
  writes the component lowercase in prose.
- `rayservice-incremental-upgrade.md`: "Install istio" to "Install Istio"
  in a step label, where the word names the project. The lowercase `istio`
  elsewhere on that page is correct and stays, because it's a
  GatewayClass `metadata.name` and a `controllerName` value rather than
  the project name.
- `resource-isolation-with-writable-cgroups.md`: the H1 was
  "Resource Isolation with Writable Cgroups on Google Kubernetes Engine
  (GKE)". Lowercasing only "Cgroups" would have left a title-case heading
  with one lowercase word, so the whole heading moves to sentence case,
  which the style guide requires anyway.

The heading change has one coupling. The explicit MyST label above the H1
is unchanged, so every `{ref}` to this page still resolves, and the bare
`{ref}` in `cluster/kubernetes/user-guides.md` picks up the new title
automatically. But `ray-core/resource-isolation-with-cgroupv2.rst` passes
custom link text that mirrored the old title case, so that text moves to
sentence case too and stays consistent with the page it points at.

Verified against the ray-project#65239 ruleset by diffing the alert set for these
files before and after: the four alerts clear and no new alert appears.

Signed-off-by: Douglas Strodtman <[email protected]>
…dy edits

The first item is a bug this PR introduced, found while sweeping the
remaining Vale findings.

- `tpu.md`: the term replacement turned "KubeRay pods" into "KubePods".
  The pattern matched "Ray pods" inside "KubeRay pods" and left the "Kube"
  prefix glued to the replacement. `git log -S` traces it to the retirement
  commit, so it isn't pre-existing. Corrected to "Pods", which is what the
  rule asks for when the qualifier only names the framework. Swept the rest
  of the PR's added lines for the same signature, a lowercase letter glued
  to "Pod" or "Pods", and this was the only instance. The remaining matches
  repo-wide are Kubernetes event reasons such as `CreatedHeadPod`, which
  are correct as literal strings.

Three defects in the same files, all surfaced by the vocabulary work in
ray-project#65239:

- `tpu.md`: "GKE nodepool" to "GKE node pool" in prose. The `az aks
  nodepool` command spelling elsewhere in the docs is a CLI subcommand and
  stays as is.
- `prometheus-grafana.md`: "spawned by replicaset controller" to "spawned
  by a ReplicaSet controller", fixing both the API object casing and a
  missing article.
- `rayservice-incremental-upgrade.md`: "utilizing" to "using", "like" to
  "such as" for an example, and a parenthetical "(e.g. `istio`)" to "for
  example `istio`". Also drops "You will need to" in favor of the
  imperative.

Verified against the ray-project#65239 ruleset with a column-independent diff of the
alert set for these files: five alerts clear and no new finding appears.
The two passive-voice alerts that shift position are pre-existing and
unchanged in substance.

Signed-off-by: Douglas Strodtman <[email protected]>
@ray-gardener ray-gardener Bot added docs An issue or change related to documentation core Issues that should be addressed in Ray Core labels Aug 12, 2026
@dstrodtman dstrodtman added go add ONLY when ready to merge, run all tests docs-go RtD-only checks for docs-only changes. Doesn't run full library doc-test suites. labels Aug 13, 2026
dstrodtman added a commit that referenced this pull request Aug 14, 2026
)

## Why this change

Ray on Kubernetes docs describe Kubernetes API objects alongside Ray
concepts, and the two vocabularies collide. Deployment, Job, and Service
each name both a Kubernetes API object and a distinct Ray concept, so
capitalization is the only thing telling them apart, and the style guide
didn't say which form to use where. A contributor asking "RayCluster or
Ray cluster?" had to derive the answer from two guides and adjudicate
between them.

This adds a `Writing Ray on Kubernetes and KubeRay docs` section to the
style guide, scoped to the user-facing pages under
`doc/source/cluster/kubernetes/` and the contributor-facing pages in
[ray-project/kuberay](https://github.com/ray-project/kuberay).

The approach is to extend this guide with a Kubernetes deference section
rather than stand up a separate KubeRay style guide. The two guides
already overlap heavily, and a forked guide would drift within a release
or two.

## What the casing scan found

The term list isn't invented. It comes from a prose-only scan of three
corpora: 79 user-facing pages in this repo, 12 contributor pages in
`ray-project/kuberay`, and 128 pages of `kubernetes/website`
(`content/en/docs/concepts/`, commit `bb38117c0`). The scan strips front
matter, fenced code blocks, inline code, MyST roles, and link targets
before counting, so YAML field names and CLI output don't inflate the
figures.

Headline: **these docs already follow the Kubernetes casing rule.**
Upstream Kubernetes capitalizes "Pod" in 71% of prose uses; the Ray-side
KubeRay docs do so in 70%. So this PR documents a rule the docs mostly
already follow, and does not propose a capitalization sweep.

| Term | Ray-side KubeRay docs | Upstream Kubernetes | Read |
|---|---|---|---|
| Pod | 371/527 (70%) | 3712/5195 (71%) | Matches upstream almost
exactly. |
| ConfigMap | 20/21 (95%) | 119/130 (91%) | Healthy. |
| Ingress | 8/15 (53%) | 148/242 (61%) | Roughly aligned. |
| Service | 18/114 (15%) | 515/946 (54%) | Diverges by design. |
| Job | 17/143 (11%) | 522/610 (85%) | Diverges by design. |
| Deployment | 6/53 (11%) | 355/461 (77%) | Diverges by design. |

The three "diverges by design" rows are the reason this section exists.
Sampling shows the lowercase uses are Ray Serve deployments, Ray jobs,
and Ray services, not Kubernetes API objects. That's a naming collision,
not drift, so the fix is a disambiguation rule rather than a sweep.
Kubernetes's own rule expects a mix (UpperCamelCase for the API object,
sentence case for the general concept), which is why the upstream column
isn't 100% either.

The one genuine inconsistency the scan found is **"Ray Autoscaler" (44
uses) against "Ray autoscaler" (35)**, spread across at least eight
files. This guide already says to lowercase generic nouns even when they
name a Ray concept, so lowercase wins. Recording the rule here is the
prerequisite for a mechanical follow-up cleanup. I've left that out of
this PR to keep the rule change reviewable on its own.

## Open questions for reviewers

I've deliberately written only the rules I can support from the two
published guides plus the scan. These five are genuinely open, and I'd
rather resolve them in review than assert them:
All five are now resolved in review. Each entry keeps the original
question for context, since the reasoning behind the answer matters more
than the answer:
1. ~~**Confirm the custom-resource split.**~~ **Resolved** by @win5923:
the split is intentional and consistent with Kubernetes terminology.
Original question: The section documents `RayCluster` (the resource)
versus "Ray cluster" (the running thing it produces), currently 335
against 106 uses in this repo. I read it as intentional and matching the
Kubernetes API-object rule. Worth confirming rather than normalizing to
one form.
1. ~~**"head Pod" versus "head node."**~~ **Resolved** by @win5923: use
"head Pod" consistently when a Ray cluster runs on Kubernetes. Original
question: The section prefers "head Pod" for the Kubernetes-hosted case,
since a node is a machine on Kubernetes.
`doc/source/cluster/kubernetes/index.md` currently says "a head node pod
and a collection of worker node pods," which stacks both vocabularies.
Reasonable, or is "head node" worth keeping for continuity with Ray's
core architecture docs?
1. ~~**Feature graduation phases.**~~ **Resolved** by @win5923: keep the
existing convention, start case for Kubernetes feature stages and
lowercase for Ray and KubeRay stages. The corpus already works this way.
I've added the ownership test for the ambiguous case, a third-party
controller's feature gate, which makes `kueue.md:747` a defect rather
than an exception. No Vale rule, since a substitution can't tell which
project a stage name refers to. Original question: Kubernetes uses start
case ("DRA is Beta"); Ray docs lowercase feature stages. This bites on
pages discussing a Kubernetes feature's stage and a Ray feature's stage
in one paragraph. I left it out of the section rather than pick. Which
wins?
1. ~~**Field values.**~~ **Resolved** by @win5923, who writes values in
backticks: "set `upgradeStrategy.type` to
`NewClusterWithIncrementalUpgrade`." That's also what this guide already
says, so the section now states the divergence from Kubernetes
explicitly rather than leaving the two guides to contradict each other
silently. Original question: Kubernetes wants unquoted, unstyled values
("set `imagePullPolicy` to Always"); this guide says to use backticks
for configuration values and gives `num_replicas: 1`. These are closer
than they look, since one is a bare value and the other a key-value
pair, but the guidance should say which form applies where.
1. ~~**"Ray dashboard" versus "Ray Dashboard"**~~ **Resolved** by
@win5923: lowercase, on the grounds that "dashboard" is a generic noun
for the same reason "autoscaler" is, which makes the rule already in
this guide cover it. Applies to "KubeRay dashboard" too. This is the
largest defect the ruleset now surfaces, at 43 prose uses plus 1, and it
moves `KubeRay.Terms` on these pages from 160 to 204. A fair number sit
in headings, where the sentence-case rule makes them defects too. Sweep
folds into #65423. Original question: 43 title-case against 18
lowercase. This guide implies lowercase, but the dashboard is arguably a
named UI surface. Not addressed in the section pending a call.

Two further items are out of scope here but worth flagging:

- **Line wrapping in the `kuberay` repo.** This guide requires soft
wrap. The Kubernetes guide requires manual wrap, justified by
localization teams diffing per line, which KubeRay doesn't have. Nothing
in this PR changes that, since this guide already governs `doc/source/`.
But `kuberay`'s `.markdownlint.yaml` sets `MD013` to 120 characters via
pre-commit, which is a latent gate: 266 lines in its `docs/` already
exceed it, it isn't enforced in CI, and it isn't auto-fixable, so
contributors hit it unpredictably on whichever file they touch.
Disabling it there would align the two repos, but that's a call for
KubeRay maintainers in their own repo.
- **Turning Vale enforcement on.** This PR now adds the ruleset but
doesn't enforce it. See the section below.

## Staged Vale ruleset

A later commit adds a Vale ruleset for these pages, following the
pattern already used for the Ray Data docs. **Nothing is enforced yet.**
The Vale hook in `.pre-commit-config.yaml` stays scoped to
`^doc/source/data/.*`, so CI checks exactly what it checked before.

- `.vale/styles/config/vocabularies/KubeRay/accept.txt` — the KubeRay
custom resources, the Kubernetes and ecosystem API objects these pages
reference, and project names. Skips what the `General` vocabulary
already accepts (`Kubernetes`, `kubectl`, `CRD(s)?`, `namespace`).
- `.vale/styles/KubeRay/Terms.yml` — a `substitution` rule at `warning`
level covering only the casing forms the new style-guide section
settles, with `vocab: false` (see below). The open questions above are
deliberately absent.
- `.vale.ini` — registers the vocabulary and scopes the style to
`doc/source/cluster/kubernetes/`.

Registering a vocabulary that the hook doesn't exercise matches existing
practice here: `RLlib` and `Train` are already in `Vocab` while the hook
only runs on `doc/source/data/`.

Contributors can run it by hand today:

```
vale doc/source/cluster/kubernetes/
```

To enforce later, widen the `files` pattern on the `vale` hook. I'd
still hold that until the open questions land.

### What I verified

Vale 3.12.0 locally.

**Path scoping works.** The KubeRay rules fire on a file under
`doc/source/cluster/kubernetes/` and stay silent on identical content at
the repo root.

**Current state of these pages** — 146 `KubeRay.Terms` alerts, which
lines up with the casing scan:

| Alert | Count |
|---|---|
| Use 'Ray autoscaler' instead of 'Ray Autoscaler' | 42 |
| Use 'head Pod' instead of 'head pod' | 20 |
| Use 'worker Pod' instead of 'worker pod' | 7 |
| Use 'Ray job' instead of 'ray job' | 2 |
| Use 'Ray Serve' instead of 'Ray serve' | 1 |
| Use 'Ray cluster' instead of 'ray cluster' | 1 |
| Use 'KubeRay' instead of 'Kuberay' | 1 |
| Use 'GCS fault tolerance' instead of 'GCS FT' | 1 |

The 42 matches the scan's count for these pages exactly, which is a
useful cross-check on both. None of it is enforced, so nothing here has
to be fixed in this PR.

**No regression on the gated path.** Alert count on `doc/source/data/`
goes 174 → 173, deterministic across repeated runs in both states, with
no new alerts. A `Vocab` list is global, so it can only widen what's
accepted. The single alert that disappears is a `Google.Parens` hit in
`concurrent-dataset-execution.md`; no term in the new vocabulary appears
on that line, so I'm reporting that as observed rather than claiming I
understand the mechanism. It's a reduction either way, so it can't break
the gate.

### The vocabulary shadowing trap

Worth knowing if you write Vale rules here: a `Vocab` accept entry
shadows its token for **every** rule, case-insensitively. A substitution
whose target appears in an accept list silently never fires, and nothing
warns you.

This bit the `Ray Autoscaler` swap, because `autoscaler` is accepted in
`config/vocabularies/Data/accept.txt`. The fix is `vocab: false` on the
rule, which opts out of the filtering without touching the Data
vocabulary. The rule carries a comment saying so.

Credit to Bugbot for catching it. I'd first shipped that swap commented
out, having concluded the only way to enable it was dropping
`autoscaler` from the Data vocabulary and accepting new spelling alerts
on the gated path. That was wrong, and `vocab: false` avoids the
tradeoff entirely.

## Added after review

Two rules that review surfaced, both in the style-guide section plus the
Vale ruleset.

**Node stays lowercase.** Node is a Kubernetes API object, so
"capitalize Kubernetes API objects" read literally tells contributors to
write "Kubernetes Node." These pages almost always mean the machine, and
all 24 uses are correctly lowercase today, so a literal reading of the
rule would have someone "fix" working prose into wrongness. Kubernetes
applies the same two-part rule it applies elsewhere, capitalizing Node
only for the resource, and the section now says so.

**Don't write "Ray Pod."** This answers the casing question raised in
review, and the answer turned out to be neither casing. A Pod is a
Kubernetes host that contains a Ray node plus any sidecars, so naming it
after Ray overstates what it is. "TPU Pod" also already occupies the
qualified-Pod form in these pages and means a group of TPU chips rather
than a Kubernetes object. The term had no settled form to preserve
either: across the 55 prose lines using it, casing split four ways at
20, 16, 16, and 15.

Stating that alone would be a trap, because a bare "Pod" isn't always an
adequate replacement, so the section gives the test that separates the
cases:

- Qualify when the qualifier distinguishes two referents. That's why
"Ray node" against "Kubernetes node" is correct and should stay.
- Don't qualify when it relabels one thing.
- Keep the scope explicit where a page also describes Pods the
RayCluster doesn't own, such as the operator, Redis, or a `curl` Pod,
and where a nearby command filters by label. "List all Pods" and "List
the Ray cluster's Pods" describe different commands and shouldn't read
the same way.

The cleanup is #65423, which removes all 89 uses from the docs and is
reviewable on its own. This PR is the rule; that one is the sweep.

Vale picks up four swaps for the retired forms. Plurals get their own
entries, for the word-boundary reason @win5923 identified on the `head
pod` swaps. Verified that they don't fire on "Ray head Pod" or "Ray
worker Pods", and that the gated `doc/source/data/` path holds at 173
alerts.

## Not a duplicate

Checked open PRs for this area before starting:

```
gh pr list --repo ray-project/ray --state open --search "writing-style"
gh pr list --repo ray-project/ray --state open --search "style guide in:title"
gh pr list --repo ray-project/ray --state open --search "kuberay style"
```

No open PR touches `doc/source/ray-contribute/writing-style.md` or
proposes KubeRay style guidance. The `writing-style` matches were all
false positives on `write_delta`. This extends the guide added in
#64518.

## Testing

```
pre-commit run --files doc/source/ray-contribute/writing-style.md
```

Passes, but as a no-op on the Markdown: every hook reports "no files to
check," because no pre-commit hook applies to Markdown under
`doc/source/` and Vale is scoped to `doc/source/data/`. Stating that
plainly instead of claiming coverage it doesn't give.

The Vale config files do have hook coverage, and those checks ran for
real:

```
pre-commit run --files .vale.ini .vale/styles/KubeRay/Terms.yml .vale/styles/config/vocabularies/KubeRay/accept.txt
```

`trim trailing whitespace`, `fix end of files`, `check for added large
files`, and `semgrep` all pass.

Vale verification for the ruleset is in the section above: path scoping,
the 31-alert current state, and the 174 → 173 no-regression check on the
gated path.

Verified by hand: the new `(kubernetes-docs-style)=` anchor doesn't
collide with any existing target in `doc/source/`, and the section uses
the same MyST anchor form and Markdown pipe-table style already used
elsewhere in this file. Rendering is verified by the Read the Docs
preview build on this PR.

No code, no API, no behavior change. The prose is a contributor guide;
the Vale files add configuration without widening what CI enforces.

## AI assistance

Written with AI assistance (Claude). I've reviewed every changed line,
generated and inspected the casing counts myself, and can defend the
change end to end. The scan scripts that produced the numbers live
outside this repo; happy to share the methodology or re-run against a
different corpus if a reviewer wants to check a figure.




---

### Update: the vocabulary now covers the ecosystem terms these pages
use (555ebda)

Running `vale doc/source/cluster/kubernetes/`, which this PR's
`.vale.ini` comment tells contributors to do, produced 215
`Vale.Spelling` alerts on correctly spelled terms. The accept list
covered API objects, the custom resources, and project names, but not
the wider ecosystem vocabulary the pages actually contain. Left as is, a
contributor following the instruction learns to ignore Vale on exactly
the paths this PR wants gated.

Added: the ecosystem projects (Istio, Kiali, gVisor, Kata, Krew,
Kustomize, Bottlerocket, Aliyun, GCSFuse, Promtail, Fluentd, Filebeat,
Alertmanager), the Gateway API `HTTPRoute`, and the Kubernetes and
infrastructure terms in use (cgroup, finalizer, kubeconfig, kubelet,
namespaced, namespaces, toleration, upscaling, downscaling, vCPU, FQDN,
AMI, subnet, syscall, hostname, cron, CA, autoscalers).

**Excluded on purpose, since an accept list shouldn't launder a
defect.** `CR` and `CRs`, 12 uses, because this PR's own guidance says
to write "custom resource" and to define CustomResourceDefinition then
use CRD. Real misspellings: `heterogenous`, `replicaset` for ReplicaSet,
`Deepseek` for DeepSeek, `nodepool` for node pool. `gsutil`, which
`gcloud storage` supersedes. Unbackticked code identifiers, which are a
formatting defect rather than a vocabulary gap: `podSpec`,
`podSelector`, `nodeSelector`, `jsonPointers`, `intervalSeconds`,
`workerGroup`, `ignoreDifferences`, `HTTPMode`, `args`, `yaml`. And
generic English that Vale's dictionary lacks, which belongs in the
General vocabulary rather than a KubeRay-specific one.

Three entries are case-tolerant (`[Tt]oleration(s)?`, `[Uu]pscaling`,
`[Dd]ownscaling`). A lowercase-only entry makes `Vale.Terms` flag the
legitimate sentence-start capitalization.

**Verification**, deterministic across repeated runs:

- `doc/source/cluster/kubernetes/`: 1329 alerts to 1178. `Vale.Spelling`
drops from 215 to 72. `KubeRay.Terms` is unchanged at 160, confirming no
swap got shadowed by a new accept entry, which is the trap the `Ray
Autoscaler` comment in `Terms.yml` documents.
- `doc/source/data/`, the only path the pre-commit hook gates: 173 to
170, with **no new alerts**. A `Vocab` is global, so it can only widen
what's accepted.
- One candidate entry was dropped for exactly that reason. A
`runtime(s)?` entry made `Vale.Terms` flag "Runtime" in
`doc/source/data/monitoring-your-workload.rst`, a new alert on the gated
path.

Four new `Vale.Terms` alerts do appear on the KubeRay paths, and all
four are genuine casing defects in existing pages rather than noise:
"Kubelet" twice in `configuring-ippr.md`, lowercase "istio" naming the
project in `rayservice-incremental-upgrade.md`, and "Cgroups" in the
`resource-isolation-with-writable-cgroups.md` H1, which is also title
case. Those are content fixes for a separate change, not this one.

AI assistance was used for this commit, including the Vale sweep and the
before-and-after verification above.

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@win5923
win5923 self-requested a review August 14, 2026 17:45
The style-guide PR settled the custom-resource split after this PR was
written, and the rule it landed is more specific than the form used here.
It says to use the resource name in the possessive: the operator creates
these Pods, sets their `ownerReferences` to the RayCluster, and labels
them `ray.io/cluster`, so ownership, selection, and lifecycle are facts
about the resource rather than about the Ray cluster it produces. Its
worked example is the exact sentence this PR introduced in six places:
"List the RayCluster's Pods" above `kubectl get pods
-l=ray.io/is-ray-node=yes`.

Changes all 16 possessives to "the RayCluster's Pods". Each one turns on
ownership, selection, or lifecycle:

- Six step comments above label-filtered `kubectl` commands, in
  rayservice.md, rayservice-quick-start.md, configuring-autoscaling.md,
  label-based-scheduling.md, and rayservice-no-ray-serve-replica.md
  (twice). Selection.
- prometheus-grafana.md, twice: the PodMonitor that selects them by
  label, and a `kubectl wait -l ray.io/cluster=`. Selection.
- network-policy.md: a `podSelector` matching the label KubeRay applies.
  Selection.
- scheduler-plugins.md, three times: the Pods the RayCluster owns and
  places in one PodGroup. Ownership.
- k8s-events.md: the Pods KubeRay injects environment variables into.
  Ownership.
- kuberay-serve-high-throughput.md and serve fault-tolerance.md, twice:
  which Pods carry the proxy, and which Pods to `exec` into. Membership.

Non-possessive uses of "Ray cluster" are unchanged and correct, since
they name the running thing. That includes "each Ray cluster consists of
a head Pod and a collection of worker Pods" on the landing page and "a
Ray cluster's head node is its head Pod" on the getting-started page,
both of which the style guide now carries verbatim as its own examples.

Signed-off-by: Douglas Strodtman <[email protected]>
@dstrodtman
dstrodtman merged commit c547b78 into ray-project:master Aug 14, 2026
6 checks passed
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…-project#65239)

## Why this change

Ray on Kubernetes docs describe Kubernetes API objects alongside Ray
concepts, and the two vocabularies collide. Deployment, Job, and Service
each name both a Kubernetes API object and a distinct Ray concept, so
capitalization is the only thing telling them apart, and the style guide
didn't say which form to use where. A contributor asking "RayCluster or
Ray cluster?" had to derive the answer from two guides and adjudicate
between them.

This adds a `Writing Ray on Kubernetes and KubeRay docs` section to the
style guide, scoped to the user-facing pages under
`doc/source/cluster/kubernetes/` and the contributor-facing pages in
[ray-project/kuberay](https://github.com/ray-project/kuberay).

The approach is to extend this guide with a Kubernetes deference section
rather than stand up a separate KubeRay style guide. The two guides
already overlap heavily, and a forked guide would drift within a release
or two.

## What the casing scan found

The term list isn't invented. It comes from a prose-only scan of three
corpora: 79 user-facing pages in this repo, 12 contributor pages in
`ray-project/kuberay`, and 128 pages of `kubernetes/website`
(`content/en/docs/concepts/`, commit `bb38117c0`). The scan strips front
matter, fenced code blocks, inline code, MyST roles, and link targets
before counting, so YAML field names and CLI output don't inflate the
figures.

Headline: **these docs already follow the Kubernetes casing rule.**
Upstream Kubernetes capitalizes "Pod" in 71% of prose uses; the Ray-side
KubeRay docs do so in 70%. So this PR documents a rule the docs mostly
already follow, and does not propose a capitalization sweep.

| Term | Ray-side KubeRay docs | Upstream Kubernetes | Read |
|---|---|---|---|
| Pod | 371/527 (70%) | 3712/5195 (71%) | Matches upstream almost
exactly. |
| ConfigMap | 20/21 (95%) | 119/130 (91%) | Healthy. |
| Ingress | 8/15 (53%) | 148/242 (61%) | Roughly aligned. |
| Service | 18/114 (15%) | 515/946 (54%) | Diverges by design. |
| Job | 17/143 (11%) | 522/610 (85%) | Diverges by design. |
| Deployment | 6/53 (11%) | 355/461 (77%) | Diverges by design. |

The three "diverges by design" rows are the reason this section exists.
Sampling shows the lowercase uses are Ray Serve deployments, Ray jobs,
and Ray services, not Kubernetes API objects. That's a naming collision,
not drift, so the fix is a disambiguation rule rather than a sweep.
Kubernetes's own rule expects a mix (UpperCamelCase for the API object,
sentence case for the general concept), which is why the upstream column
isn't 100% either.

The one genuine inconsistency the scan found is **"Ray Autoscaler" (44
uses) against "Ray autoscaler" (35)**, spread across at least eight
files. This guide already says to lowercase generic nouns even when they
name a Ray concept, so lowercase wins. Recording the rule here is the
prerequisite for a mechanical follow-up cleanup. I've left that out of
this PR to keep the rule change reviewable on its own.

## Open questions for reviewers

I've deliberately written only the rules I can support from the two
published guides plus the scan. These five are genuinely open, and I'd
rather resolve them in review than assert them:
All five are now resolved in review. Each entry keeps the original
question for context, since the reasoning behind the answer matters more
than the answer:
1. ~~**Confirm the custom-resource split.**~~ **Resolved** by @win5923:
the split is intentional and consistent with Kubernetes terminology.
Original question: The section documents `RayCluster` (the resource)
versus "Ray cluster" (the running thing it produces), currently 335
against 106 uses in this repo. I read it as intentional and matching the
Kubernetes API-object rule. Worth confirming rather than normalizing to
one form.
1. ~~**"head Pod" versus "head node."**~~ **Resolved** by @win5923: use
"head Pod" consistently when a Ray cluster runs on Kubernetes. Original
question: The section prefers "head Pod" for the Kubernetes-hosted case,
since a node is a machine on Kubernetes.
`doc/source/cluster/kubernetes/index.md` currently says "a head node pod
and a collection of worker node pods," which stacks both vocabularies.
Reasonable, or is "head node" worth keeping for continuity with Ray's
core architecture docs?
1. ~~**Feature graduation phases.**~~ **Resolved** by @win5923: keep the
existing convention, start case for Kubernetes feature stages and
lowercase for Ray and KubeRay stages. The corpus already works this way.
I've added the ownership test for the ambiguous case, a third-party
controller's feature gate, which makes `kueue.md:747` a defect rather
than an exception. No Vale rule, since a substitution can't tell which
project a stage name refers to. Original question: Kubernetes uses start
case ("DRA is Beta"); Ray docs lowercase feature stages. This bites on
pages discussing a Kubernetes feature's stage and a Ray feature's stage
in one paragraph. I left it out of the section rather than pick. Which
wins?
1. ~~**Field values.**~~ **Resolved** by @win5923, who writes values in
backticks: "set `upgradeStrategy.type` to
`NewClusterWithIncrementalUpgrade`." That's also what this guide already
says, so the section now states the divergence from Kubernetes
explicitly rather than leaving the two guides to contradict each other
silently. Original question: Kubernetes wants unquoted, unstyled values
("set `imagePullPolicy` to Always"); this guide says to use backticks
for configuration values and gives `num_replicas: 1`. These are closer
than they look, since one is a bare value and the other a key-value
pair, but the guidance should say which form applies where.
1. ~~**"Ray dashboard" versus "Ray Dashboard"**~~ **Resolved** by
@win5923: lowercase, on the grounds that "dashboard" is a generic noun
for the same reason "autoscaler" is, which makes the rule already in
this guide cover it. Applies to "KubeRay dashboard" too. This is the
largest defect the ruleset now surfaces, at 43 prose uses plus 1, and it
moves `KubeRay.Terms` on these pages from 160 to 204. A fair number sit
in headings, where the sentence-case rule makes them defects too. Sweep
folds into ray-project#65423. Original question: 43 title-case against 18
lowercase. This guide implies lowercase, but the dashboard is arguably a
named UI surface. Not addressed in the section pending a call.

Two further items are out of scope here but worth flagging:

- **Line wrapping in the `kuberay` repo.** This guide requires soft
wrap. The Kubernetes guide requires manual wrap, justified by
localization teams diffing per line, which KubeRay doesn't have. Nothing
in this PR changes that, since this guide already governs `doc/source/`.
But `kuberay`'s `.markdownlint.yaml` sets `MD013` to 120 characters via
pre-commit, which is a latent gate: 266 lines in its `docs/` already
exceed it, it isn't enforced in CI, and it isn't auto-fixable, so
contributors hit it unpredictably on whichever file they touch.
Disabling it there would align the two repos, but that's a call for
KubeRay maintainers in their own repo.
- **Turning Vale enforcement on.** This PR now adds the ruleset but
doesn't enforce it. See the section below.

## Staged Vale ruleset

A later commit adds a Vale ruleset for these pages, following the
pattern already used for the Ray Data docs. **Nothing is enforced yet.**
The Vale hook in `.pre-commit-config.yaml` stays scoped to
`^doc/source/data/.*`, so CI checks exactly what it checked before.

- `.vale/styles/config/vocabularies/KubeRay/accept.txt` — the KubeRay
custom resources, the Kubernetes and ecosystem API objects these pages
reference, and project names. Skips what the `General` vocabulary
already accepts (`Kubernetes`, `kubectl`, `CRD(s)?`, `namespace`).
- `.vale/styles/KubeRay/Terms.yml` — a `substitution` rule at `warning`
level covering only the casing forms the new style-guide section
settles, with `vocab: false` (see below). The open questions above are
deliberately absent.
- `.vale.ini` — registers the vocabulary and scopes the style to
`doc/source/cluster/kubernetes/`.

Registering a vocabulary that the hook doesn't exercise matches existing
practice here: `RLlib` and `Train` are already in `Vocab` while the hook
only runs on `doc/source/data/`.

Contributors can run it by hand today:

```
vale doc/source/cluster/kubernetes/
```

To enforce later, widen the `files` pattern on the `vale` hook. I'd
still hold that until the open questions land.

### What I verified

Vale 3.12.0 locally.

**Path scoping works.** The KubeRay rules fire on a file under
`doc/source/cluster/kubernetes/` and stay silent on identical content at
the repo root.

**Current state of these pages** — 146 `KubeRay.Terms` alerts, which
lines up with the casing scan:

| Alert | Count |
|---|---|
| Use 'Ray autoscaler' instead of 'Ray Autoscaler' | 42 |
| Use 'head Pod' instead of 'head pod' | 20 |
| Use 'worker Pod' instead of 'worker pod' | 7 |
| Use 'Ray job' instead of 'ray job' | 2 |
| Use 'Ray Serve' instead of 'Ray serve' | 1 |
| Use 'Ray cluster' instead of 'ray cluster' | 1 |
| Use 'KubeRay' instead of 'Kuberay' | 1 |
| Use 'GCS fault tolerance' instead of 'GCS FT' | 1 |

The 42 matches the scan's count for these pages exactly, which is a
useful cross-check on both. None of it is enforced, so nothing here has
to be fixed in this PR.

**No regression on the gated path.** Alert count on `doc/source/data/`
goes 174 → 173, deterministic across repeated runs in both states, with
no new alerts. A `Vocab` list is global, so it can only widen what's
accepted. The single alert that disappears is a `Google.Parens` hit in
`concurrent-dataset-execution.md`; no term in the new vocabulary appears
on that line, so I'm reporting that as observed rather than claiming I
understand the mechanism. It's a reduction either way, so it can't break
the gate.

### The vocabulary shadowing trap

Worth knowing if you write Vale rules here: a `Vocab` accept entry
shadows its token for **every** rule, case-insensitively. A substitution
whose target appears in an accept list silently never fires, and nothing
warns you.

This bit the `Ray Autoscaler` swap, because `autoscaler` is accepted in
`config/vocabularies/Data/accept.txt`. The fix is `vocab: false` on the
rule, which opts out of the filtering without touching the Data
vocabulary. The rule carries a comment saying so.

Credit to Bugbot for catching it. I'd first shipped that swap commented
out, having concluded the only way to enable it was dropping
`autoscaler` from the Data vocabulary and accepting new spelling alerts
on the gated path. That was wrong, and `vocab: false` avoids the
tradeoff entirely.

## Added after review

Two rules that review surfaced, both in the style-guide section plus the
Vale ruleset.

**Node stays lowercase.** Node is a Kubernetes API object, so
"capitalize Kubernetes API objects" read literally tells contributors to
write "Kubernetes Node." These pages almost always mean the machine, and
all 24 uses are correctly lowercase today, so a literal reading of the
rule would have someone "fix" working prose into wrongness. Kubernetes
applies the same two-part rule it applies elsewhere, capitalizing Node
only for the resource, and the section now says so.

**Don't write "Ray Pod."** This answers the casing question raised in
review, and the answer turned out to be neither casing. A Pod is a
Kubernetes host that contains a Ray node plus any sidecars, so naming it
after Ray overstates what it is. "TPU Pod" also already occupies the
qualified-Pod form in these pages and means a group of TPU chips rather
than a Kubernetes object. The term had no settled form to preserve
either: across the 55 prose lines using it, casing split four ways at
20, 16, 16, and 15.

Stating that alone would be a trap, because a bare "Pod" isn't always an
adequate replacement, so the section gives the test that separates the
cases:

- Qualify when the qualifier distinguishes two referents. That's why
"Ray node" against "Kubernetes node" is correct and should stay.
- Don't qualify when it relabels one thing.
- Keep the scope explicit where a page also describes Pods the
RayCluster doesn't own, such as the operator, Redis, or a `curl` Pod,
and where a nearby command filters by label. "List all Pods" and "List
the Ray cluster's Pods" describe different commands and shouldn't read
the same way.

The cleanup is ray-project#65423, which removes all 89 uses from the docs and is
reviewable on its own. This PR is the rule; that one is the sweep.

Vale picks up four swaps for the retired forms. Plurals get their own
entries, for the word-boundary reason @win5923 identified on the `head
pod` swaps. Verified that they don't fire on "Ray head Pod" or "Ray
worker Pods", and that the gated `doc/source/data/` path holds at 173
alerts.

## Not a duplicate

Checked open PRs for this area before starting:

```
gh pr list --repo ray-project/ray --state open --search "writing-style"
gh pr list --repo ray-project/ray --state open --search "style guide in:title"
gh pr list --repo ray-project/ray --state open --search "kuberay style"
```

No open PR touches `doc/source/ray-contribute/writing-style.md` or
proposes KubeRay style guidance. The `writing-style` matches were all
false positives on `write_delta`. This extends the guide added in
ray-project#64518.

## Testing

```
pre-commit run --files doc/source/ray-contribute/writing-style.md
```

Passes, but as a no-op on the Markdown: every hook reports "no files to
check," because no pre-commit hook applies to Markdown under
`doc/source/` and Vale is scoped to `doc/source/data/`. Stating that
plainly instead of claiming coverage it doesn't give.

The Vale config files do have hook coverage, and those checks ran for
real:

```
pre-commit run --files .vale.ini .vale/styles/KubeRay/Terms.yml .vale/styles/config/vocabularies/KubeRay/accept.txt
```

`trim trailing whitespace`, `fix end of files`, `check for added large
files`, and `semgrep` all pass.

Vale verification for the ruleset is in the section above: path scoping,
the 31-alert current state, and the 174 → 173 no-regression check on the
gated path.

Verified by hand: the new `(kubernetes-docs-style)=` anchor doesn't
collide with any existing target in `doc/source/`, and the section uses
the same MyST anchor form and Markdown pipe-table style already used
elsewhere in this file. Rendering is verified by the Read the Docs
preview build on this PR.

No code, no API, no behavior change. The prose is a contributor guide;
the Vale files add configuration without widening what CI enforces.

## AI assistance

Written with AI assistance (Claude). I've reviewed every changed line,
generated and inspected the casing counts myself, and can defend the
change end to end. The scan scripts that produced the numbers live
outside this repo; happy to share the methodology or re-run against a
different corpus if a reviewer wants to check a figure.

---

### Update: the vocabulary now covers the ecosystem terms these pages
use (555ebda)

Running `vale doc/source/cluster/kubernetes/`, which this PR's
`.vale.ini` comment tells contributors to do, produced 215
`Vale.Spelling` alerts on correctly spelled terms. The accept list
covered API objects, the custom resources, and project names, but not
the wider ecosystem vocabulary the pages actually contain. Left as is, a
contributor following the instruction learns to ignore Vale on exactly
the paths this PR wants gated.

Added: the ecosystem projects (Istio, Kiali, gVisor, Kata, Krew,
Kustomize, Bottlerocket, Aliyun, GCSFuse, Promtail, Fluentd, Filebeat,
Alertmanager), the Gateway API `HTTPRoute`, and the Kubernetes and
infrastructure terms in use (cgroup, finalizer, kubeconfig, kubelet,
namespaced, namespaces, toleration, upscaling, downscaling, vCPU, FQDN,
AMI, subnet, syscall, hostname, cron, CA, autoscalers).

**Excluded on purpose, since an accept list shouldn't launder a
defect.** `CR` and `CRs`, 12 uses, because this PR's own guidance says
to write "custom resource" and to define CustomResourceDefinition then
use CRD. Real misspellings: `heterogenous`, `replicaset` for ReplicaSet,
`Deepseek` for DeepSeek, `nodepool` for node pool. `gsutil`, which
`gcloud storage` supersedes. Unbackticked code identifiers, which are a
formatting defect rather than a vocabulary gap: `podSpec`,
`podSelector`, `nodeSelector`, `jsonPointers`, `intervalSeconds`,
`workerGroup`, `ignoreDifferences`, `HTTPMode`, `args`, `yaml`. And
generic English that Vale's dictionary lacks, which belongs in the
General vocabulary rather than a KubeRay-specific one.

Three entries are case-tolerant (`[Tt]oleration(s)?`, `[Uu]pscaling`,
`[Dd]ownscaling`). A lowercase-only entry makes `Vale.Terms` flag the
legitimate sentence-start capitalization.

**Verification**, deterministic across repeated runs:

- `doc/source/cluster/kubernetes/`: 1329 alerts to 1178. `Vale.Spelling`
drops from 215 to 72. `KubeRay.Terms` is unchanged at 160, confirming no
swap got shadowed by a new accept entry, which is the trap the `Ray
Autoscaler` comment in `Terms.yml` documents.
- `doc/source/data/`, the only path the pre-commit hook gates: 173 to
170, with **no new alerts**. A `Vocab` is global, so it can only widen
what's accepted.
- One candidate entry was dropped for exactly that reason. A
`runtime(s)?` entry made `Vale.Terms` flag "Runtime" in
`doc/source/data/monitoring-your-workload.rst`, a new alert on the gated
path.

Four new `Vale.Terms` alerts do appear on the KubeRay paths, and all
four are genuine casing defects in existing pages rather than noise:
"Kubelet" twice in `configuring-ippr.md`, lowercase "istio" naming the
project in `rayservice-incremental-upgrade.md`, and "Cgroups" in the
`resource-isolation-with-writable-cgroups.md` H1, which is also title
case. Those are content fixes for a separate change, not this one.

AI assistance was used for this commit, including the Vale sweep and the
before-and-after verification above.

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
Signed-off-by: 400Ping <[email protected]>
400Ping pushed a commit to 400Ping/ray that referenced this pull request Aug 18, 2026
…t#65423)

## Why this change

Ray on Kubernetes docs use "Ray Pod" 89 times, and this PR removes the
term. It's the concrete counterpart to the discussion in ray-project#65239, where a
reviewer asked whether the Kubernetes casing rule should capitalize Pod
in "Ray pod". Investigating that question produced a better answer than
either casing.

**A Pod isn't a Ray node, it's a host that contains one.** Kubernetes
defines a Pod as an "application-specific logical host" holding one or
more containers. KubeRay indexes exactly one Ray container per Pod
through `utils.RayContainerIndex`, and routinely places non-Ray
containers alongside it: the autoscaler sidecar, the history-server
collector, the RayJob submitter in `SidecarMode`, and the Fluent Bit
sidecars that `persist-kuberay-custom-resource-logs.md` documents. The
Pod is a strict superset of the Ray node, so naming it after Ray
overstates what it is. It's the same category error as "head node pod",
one level up.

**"Pod" is already taken in these docs, by something that isn't a
Kubernetes object.** A TPU Pod is a group of interconnected TPU chips.
`user-guides/tpu.md` writes "The name of the TPU Pod or slice" and "The
TPU pod type" three lines apart, and
`ray.util.tpu.get_current_pod_name()` is a public API whose docstring
reads "Return the name of the TPU pod that the worker is a part of".
Standardizing on a capitalized `Ray Pod` would put it beside a
capitalized `TPU Pod` on the same pages, distinguished only by the
preceding word.

**The mapping is already documented.** `user-guides/k8s-autoscaler.md`
says "each Ray node is run as a Kubernetes Pod", so two defined terms
already cover what the compound names.

**There was no convention to preserve.** Across the 55 prose lines using
the term, casing split four ways:

| Form | Occurrences |
|---|---|
| Ray Pods | 20 |
| Ray pods | 16 |
| Ray pod | 16 |
| Ray Pod | 15 |

Meanwhile "head Pod" and "worker Pod" already outnumber it 284 to 86
under `doc/source/cluster/kubernetes/`, so the replacement vocabulary is
the one these docs mostly use.

## What changed

83 lines across 31 files. The term becomes "Pod" where context is
unambiguous, which is most of them. Where a bare "Pod" would lose
meaning I used an explicit form instead:

- Headings, which have no surrounding context: "Check logs of the head
and worker Pods", "Verify the Ray cluster's Pods and PodGroup",
"Configuring Kubernetes Pods for TPU usage".
- Pages where other kinds of Pod are in scope: "the Ray cluster's Pods"
in `network-policy.md`, `prometheus-grafana.md`, `k8s-events.md`, and
`scheduler-plugins.md`.
- `rayservice-high-availability.md` listed "Ray Pod: This Pod sends
requests to the RayService". That Pod is a client that isn't part of the
RayCluster, and it's named `ray-pod` in the sample manifest, so it's now
listed by its actual object name.

## What replaces it on the orientation pages

Removing the compound takes away the handle a Ray-first reader was using
for the node-and-Pod relationship, so the relationship now gets stated
where readers form their mental model. It was only in
`user-guides/k8s-autoscaler.md`, whose title begins "(Advanced)", and
absent from `index.md`, `getting-started.md`, and
`user-guides/config.md`.

One sentence each on the two orientation pages:

- `index.md`: "KubeRay runs each Ray node as a Kubernetes Pod, so each
Ray cluster consists of a head Pod and a collection of worker Pods."
- `getting-started.md`: "It runs each Ray node as a Kubernetes Pod, so a
Ray cluster's head node is its head Pod and its worker nodes are its
worker Pods."

`getting-started/raycluster-quick-start.md` is the natural third
location, since line 53 is where the two vocabularies genuinely first
meet for a reader following the quickstart. It's left alone
deliberately: that paragraph writes "pods" lowercase throughout, and
adding a capitalized sentence into it would either read inconsistently
or drag the casing sweep into this PR. It belongs to whoever runs that
pass.

The rules behind both changes are in ray-project#65239, which now carries a "State
the node-to-Pod mapping once, early" section and a "Keep Pods out of
Ray-general pages" section. The second one is why this PR touches
`ray-core/scheduling/placement-group.rst` and
`serve/production-guide/fault-tolerance.md`.

## What this deliberately doesn't touch

- **`Ray head Pod` and `Ray worker Pod` stay.** Those qualify by role,
which is the form these docs already prefer and the one Google's Ray on
GKE docs use. Only the unqualified compound goes.
- **No casing sweep.** Lowercase "head pod" occurrences are left alone.
That's the Vale rule in ray-project#65239, not this PR.
- **`python/` code comments and docstrings keep the term.** About 10
occurrences under `python/ray/autoscaler`, `python/ray/dashboard`, and
the KubeRay tests identify which Pods the operator manages, which is
reasonable for a code comment. This PR is scoped to documentation prose.
- **The `kuberay` repo is out of scope.** Its authored prose has a
handful of uses and its `docs/reference/api.md` is generated from Go doc
comments. That's a maintainer call for that repo, and I'll raise it
there separately rather than assume the same decision carries.

## Two fixes on lines this change already rewrites

- `k8s-autoscaler.md` linked to `.../horizontal-Pod-autoscale/`, which
returns **404**. The correct URL is all-lowercase and returns 200. An
earlier Pod-casing sweep appears to have capitalized inside the URL.
- `index.md` described a Ray cluster as "a head node pod and a
collection of worker node pods", stacking both vocabularies in one
phrase. Now "a head Pod and a collection of worker Pods".
- `index.md` also wrote "heterogenous compute nodes" on that same line.
Now "heterogeneous".

## One casing fix folded in

`k8s-ecosystem/kai-scheduler.md` wrote "KAI scheduler deployment" in one
place and "KAI Scheduler" everywhere else. The KubeRay Vale vocabulary
proposed in ray-project#65239 surfaced it, and @win5923 confirmed the two-word
title-case form on that PR. Folded in here rather than opened as a
one-line PR, per the guidance in `AGENTS.md` about standalone trivial
changes.

The other hyphenated spellings in that file stay as they are. They sit
inside links to `NVIDIA/KAI-Scheduler`, the Helm release name, and the
`<KAI_SCHEDULER_VERSION>` placeholder, so none of them are prose.

## Testing

```
pre-commit run --files $(git diff --name-only)
```

Every hook reports "no files to check". Stating that plainly rather than
implying coverage it doesn't give: no pre-commit hook applies to
Markdown or reStructuredText under `doc/source/`, and the `vale` hook is
scoped to `^doc/source/data/.*`, so none of these files are linted in CI
today.

What I verified by hand instead:

- **No residual term.** `grep -rIniE '\bray [*_`]* ?pods?\b' .` over the
whole repo returns only the `python/` code comments listed above as
intentionally out of scope. This includes a markup-split case, "Ray
\*\*Pod quantities\*\*", that a naive search misses.
- **reStructuredText heading integrity.** `gpu.rst` has a section whose
title shortened, so its underline was resized to match. Title and
underline are both 30 characters.
- **No broken anchors.** Four headings changed text. Searched for
inbound references to their generated anchors and found none, and none
carries an explicit MyST anchor.
- **The URL fix.** `curl` returns 404 for the old casing and 200 for the
new one.
- **Config comments included.** `configs/static-ray-cluster.tls.yaml`
carried the term in two YAML comments mirroring `config.md` prose, so
the removal is complete rather than Markdown-only.

Rendering is verified by the Read the Docs preview build on this PR.

No code, no API, no behavior change.

## Not a duplicate

```
gh pr list --repo ray-project/ray --state open --search "Ray Pod"
gh pr list --repo ray-project/ray --state open --search "pod terminology"
```

No open PR proposes this change. ray-project#65239 is the style-guide PR where the
question came up and is the discussion surface for the rule; this PR is
the cleanup and stands on its own against master. Two of my open PRs
touch nearby files: ray-project#65287 rewrites lines in `jax-tpu-profiling.md`,
which this PR doesn't touch, and ray-project#65263 is a draft adding
`scheduling.md`, which introduces one new use of the term that I'll fix
there rather than here.

Per `AGENTS.md`, mechanical cleanups need maintainer coordination.
That's the thread on ray-project#65239 with @win5923, who reviewed and approved the
style-guide change and raised the question this PR answers.

## AI assistance

Written with AI assistance (Claude). I've reviewed every changed line,
generated and inspected the counts myself, and can defend the change end
to end.

---

### Update: four casing defects folded in (f9fc8ea)

Extending the KubeRay Vale vocabulary in ray-project#65239 turned four latent
casing errors into alerts. They belong with the rest of the terminology
cleanup rather than in a PR of their own.

- `configuring-ippr.md`, two uses: "Kubelet" to "kubelet". Kubernetes
writes the component lowercase in prose.
- `rayservice-incremental-upgrade.md`: "Install istio" to "Install
Istio" in a step label, where the word names the project. The lowercase
`istio` elsewhere on that page is correct and stays, since it's a
GatewayClass `metadata.name` and a `controllerName` value rather than
the project name.
- `resource-isolation-with-writable-cgroups.md`: the H1 read "Resource
Isolation with Writable Cgroups on Google Kubernetes Engine (GKE)".
Lowercasing only "Cgroups" would leave a title-case heading with one
lowercase word, so the whole heading moves to sentence case, which the
style guide requires anyway.

**One coupling worth flagging for review.** The explicit MyST label
above that H1 is unchanged, so every `{ref}` to the page still resolves,
and the bare `{ref}` in `cluster/kubernetes/user-guides.md` picks up the
new title automatically. But
`ray-core/resource-isolation-with-cgroupv2.rst` passes custom link text
that mirrored the old title case, so that text moves to sentence case
too. That's the one file this PR touches outside
`doc/source/cluster/kubernetes/`, and it's a one-line consistency fix
caused directly by the heading change.

Verified against the ray-project#65239 ruleset by diffing the alert set for these
files before and after the change: the four alerts clear and no new
alert appears. AI assistance was used for this commit and for that
verification.

### Update: a bad replacement in this PR, plus three defects in the same
files (89b0e49)

**This PR had a bug.** The term replacement turned "KubeRay pods" into
"KubePods" in `tpu.md`: the pattern matched "Ray pods" inside "KubeRay
pods" and left the "Kube" prefix glued to the replacement. `git log -S`
traces it to the retirement commit, so it isn't pre-existing. It's now
"Pods", which is what the rule asks for when the qualifier only names
the framework.

I swept every added line in this PR for the same signature, a lowercase
letter glued to "Pod" or "Pods", and this was the only instance. The
other repo-wide matches are Kubernetes event reasons such as
`CreatedHeadPod`, correct as literal strings.

Three more defects, in files this PR already edits:

- `tpu.md`: "GKE nodepool" to "GKE node pool" in prose. The `az aks
nodepool` spelling elsewhere in the docs is a CLI subcommand and stays.
- `prometheus-grafana.md`: "spawned by replicaset controller" to
"spawned by a ReplicaSet controller", fixing the API object casing and a
missing article.
- `rayservice-incremental-upgrade.md`: "utilizing" to "using", "like" to
"such as" for an example, and "(e.g. `istio`)" to "for example `istio`",
plus the imperative in place of "You will need to".

Verified against the ray-project#65239 ruleset with a column-independent diff of
the alert set for these files: five alerts clear, no new finding. The
two passive-voice alerts that change column position are pre-existing
and unchanged in substance.

**Deliberately not in this PR.** These sit in files this PR doesn't
otherwise touch, so folding them in would widen its file scope for
unrelated reasons: "Deepseek" for DeepSeek in
`examples/rayserve-deepseek-example.md` (an H1) and
`serve/llm/architecture/overview.md`; `gsutil` in
`examples/distributed-checkpointing-with-gcsfuse.md`, where `gcloud
storage` supersedes it and swapping a documented command needs someone
who can verify the equivalent invocation; and "nodepool" in the prose of
`user-guides/azure-aks-gpu-cluster.md`.

AI assistance was used for this commit and for the verification above.

### Update: adopt the RayCluster possessive the style guide settled on
(68041df)

ray-project#65239 merged after this PR was written, and the rule it landed is more
specific than the form used here. It says to use the resource name in
the possessive: the operator creates these Pods, sets their
`ownerReferences` to the RayCluster, and labels them `ray.io/cluster`,
so ownership, selection, and lifecycle are facts about the resource
rather than about the Ray cluster it produces. Its worked example is the
exact sentence this PR introduced in six places: "List the RayCluster's
Pods" above `kubectl get pods -l=ray.io/is-ray-node=yes`.

All 16 possessives become "the RayCluster's Pods". Each turns on one of
the three:

- **Selection**, nine uses. Six step comments above label-filtered
`kubectl` commands in `rayservice.md`, `rayservice-quick-start.md`,
`configuring-autoscaling.md`, `label-based-scheduling.md`, and
`rayservice-no-ray-serve-replica.md` (twice); the PodMonitor and the
`kubectl wait -l ray.io/cluster=` in `prometheus-grafana.md`; and the
`podSelector` in `network-policy.md`.
- **Ownership**, four uses. The Pods the RayCluster owns and places in
one PodGroup in `scheduler-plugins.md` (three), and the Pods KubeRay
injects environment variables into in `k8s-events.md`.
- **Membership**, three uses. Which Pods carry the proxy in
`kuberay-serve-high-throughput.md`, and which Pods to `exec` into in
`serve/production-guide/fault-tolerance.md` (twice).

Non-possessive uses of "Ray cluster" are unchanged, since they name the
running thing. Two of them the style guide now carries verbatim as its
own `Use:` examples: "Each Ray cluster consists of a head Pod and a
collection of worker Pods" on the landing page, and "a Ray cluster's
head node is its head Pod" on the getting-started page. That's a check
on the earlier commits rather than a change to them.

One thing left alone. `config.md` reads "manages Pods in order to match
the `RayCluster`'s spec", with the resource name in backticks. The
backticks predate this PR and code-formatting the resource name is a
separate question from the possessive, so it stays as it is.

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Signed-off-by: 400Ping <[email protected]>
dstrodtman added a commit that referenced this pull request Aug 28, 2026
## Why

The [KubeRay v1.7 blog](https://www.anyscale.com/blog/kuberay-v1-7)
highlights several features whose docs currently live only on `master`.
The corresponding pages are missing (404) or incomplete on the `latest`
(2.58.0) docs build, and several blog links point at `/master` as a
result. This backports the doc pages so the 2.58.0 `latest` docs cover
the released KubeRay v1.7 surface.

## What (cherry-picks onto `releases/2.58.0`)

| Commit | Blog feature | Gap on `latest` |
|---|---|---|
| #64303 | RayJob `SidecarMode` retry | new page was missing |
| #65249 | RayService incremental upgrade rollback (beta) | `#rollback`
section missing |
| #65074 | NetworkPolicy support (alpha) | new page was missing |
| #65429 | Embedded RocksDB GCS backend | example version pin missing |
| #65513 | Fix docs for KubeRay v1.7 | wrong NetworkPolicy field names +
incorrect `kubernetes` pip guidance |
| #65483 | Customizable Ingress options | `ingressOptions` undocumented
|

Each commit is applied with `cherry-pick -x` (provenance preserved) and
DCO sign-off.

## Not duplicating

- No open PR cherry-picks these into `releases/2.58.0` (checked by PR
number and by `--base releases/2.58.0`).
- The two History Server refinements (#65441, #65505) are intentionally
**excluded** — they already landed on `releases/2.58.0` (`c6061c10b97`,
`d8277b53b0d`) and that page is already identical to `master`.
- Broad, non-feature changes touching these files on `master` (llms.txt
page descriptions #65115, the "Ray Pod" terminology rename #65423, the
vendored CRD API reference #65428) are deliberately left out to keep
this a tight, low-risk release-branch backport.

## Testing

- Verified every new/changed page's `{ref}`/`{doc}` cross-reference
target resolves on this branch (`fail_on_warning: true` build safety).
- Verified both new toctree entries (`network-policy`,
`rayjob-sidecar-submitter-restart`) point at files that exist on the
branch.
- Confirmed each touched file matches `master` except for the
intentionally-excluded frontmatter/rename hunks above.
- A full local Sphinx docs build is recommended before marking ready for
review.

AI assistance (Claude Code) was used to prepare this backport.

---------

Signed-off-by: justinyeh1995 <[email protected]>
Signed-off-by: Justin Yeh <[email protected]>
Signed-off-by: JustinYeh <[email protected]>
Signed-off-by: Douglas Strodtman <[email protected]>
Signed-off-by: win5923 <[email protected]>
Signed-off-by: Paul Nolan <[email protected]>
Signed-off-by: machichima <[email protected]>
Signed-off-by: wuallen57730 <[email protected]>
Co-authored-by: JustinYeh <[email protected]>
Co-authored-by: Jun-Hao Wan <[email protected]>
Co-authored-by: Pat O'Connor <[email protected]>
Co-authored-by: David Adamache <[email protected]>
Co-authored-by: Paul Nolan <[email protected]>
Co-authored-by: Nary Yeh <[email protected]>
Co-authored-by: Lima <[email protected]>
dstrodtman added a commit that referenced this pull request Sep 2, 2026
## Why this change

"Dashboard" is a generic noun, so it stays lowercase next to a product
name for the same reason "autoscaler" does. That's the convention #65239
settles, on @win5923's reasoning in [this review
comment](#65239 (comment)).
This PR applies it across the docs.

Splitting it out from the rule change keeps each one reviewable on its
own: #65239 is the rule and the tooling, this is the mechanical sweep,
and the diff here is casing with no prose rewrites. Same split as
#65423, which retires "Ray Pod."

**This depends on #65239 landing first.** If the convention changes in
that review, this sweep changes with it.

## Scope

All of `doc/source`, `.md` and `.rst`. 215 replacements across 53 pages,
in prose: body text, headings, front matter and `.. meta::`
descriptions, a glossary term, table cells, image alt text, and link and
cross-reference text.

Three commits, each reviewable on its own: the Kubernetes pages, the
same term across the rest of the docs, and then the bare "Dashboard"
that the first two left behind.

The first commit covers `cluster/kubernetes/`, which is where #65239
scopes its Vale ruleset. The second extends the same convention to the
rest, so it holds on every surface rather than only where the tooling
happens to point: `ray-observability/`, `serve/`, `ray-core/`, `train/`,
`ray-security/`, `ray-overview/`, the non-Kubernetes `cluster/` pages,
`data/`, `rllib/`, and `ray-references/`.

Headings are included deliberately. This guide requires sentence case
for every heading, so "## Step 5: Access the Ray Dashboard" was already
a defect on two counts.

**The `ray-observability/getting-started` page title changes**, from
"Ray Dashboard" to "Ray dashboard." That's the canonical dashboard page,
so it's the most visible line in the diff and worth a deliberate look.
Cross-references to it that don't set their own text pick the new title
up automatically.

## Applied by script, reviewed by hand

The sweep ran from a fence-aware script rather than find-and-replace,
because a blind pass would have hit literal blocks and rewritten CLI
output. It tracks Markdown code fences, treats MyST directive fences
such as ```` ```{admonition} ```` as the prose they contain, and tracks
rST literal blocks introduced by both `.. code-block::` and a trailing
`::`. I reviewed all 162 replacements and each of the 9 exclusions
individually.

## Deliberately not changed

**Nine uses inside literal blocks**, because the rule governs prose.
Eight are shell comments, five of them `# Step 7: Check Ray
Dashboard...` in `k8s-ecosystem/ingress.md`. The ninth is literal CLI
output in `user-guides/kubectl-plugin.md` (`Ray Dashboard:
http://localhost:8265`), where changing it would misreport what the
command prints.

That leaves a page or two with a lowercase heading above a capitalized
shell comment. I'd rather flag that than quietly edit code blocks in a
prose sweep. Happy to include the eight comments if a reviewer prefers
consistency within the page.

**One use in `cluster/kubernetes/configs/static-ray-cluster.tls.yaml`**,
a comment in a sample manifest rather than a docs page.

**Nothing, as it turns out.** An earlier revision of this description
claimed 217 bare capitalized "Dashboard" uses were being left alone.
That number was wrong: the command behind it piped `grep -o` output into
a `grep -v` filter that could never match, so it counted every
occurrence of the word including the ones inside "Ray Dashboard". The
real figure was 93, and the third commit sweeps the 54 of those that are
the generic noun. What stays capitalized is listed above.

**`README.rst` and the `python/` docstrings.** Eight files outside
`doc/` use the term, mostly in docstrings that render into the API
reference. Different surface, different owners.

## Bare "Dashboard"

The third commit covers the 54 uses of a bare capitalized "Dashboard"
that the term sweep left behind, which otherwise put "the Dashboard"
next to "the Ray dashboard" on the same page. Most are a pure case
change. Fifteen needed an article, because the prose used the word as a
bare proper noun: "expose Dashboard outside the Cluster" becomes "expose
the dashboard outside the Cluster", and three sentences opening
"Dashboard is..." become "The dashboard is...".

The installation extras table is the one place where a bare lowercase
"dashboard" would have read badly, sitting in a list of Ray library
names ("Core, Dashboard, Cluster Launcher"). Those rows and the tip
below them now say "Ray dashboard".

Left capitalized, because these aren't the generic noun:

- CloudWatch's Agent, Dashboard, and Alarm config files, plus Grafana's
Dashboard and Default Dashboard.
- The literal **Open Dashboard** button label in the History Server UI.
- Title and label positions where any word would capitalize: the
"Dashboard (Web UI)" section title, a `Dashboard` tab label, and a
`**Dashboard**` list label.
- Twelve uses inside literal blocks, one of which is dashboard log
output.

## Six adjacent lines

Lowercasing one word of an otherwise title-case heading reads as a
botched edit, so where that happened the whole heading goes sentence
case:

- `cluster/configure-manage-dashboard.md`: "Configuring and Managing Ray
Dashboard" to "Configuring and managing Ray dashboard," plus the two
link texts and one `:ref:` text that mirror that page title.
- `ray-observability/user-guides/profiling.md`: "Ray Dashboard View" to
"Ray dashboard view."
- `ray-core/internals/token-authentication.rst`: "Ray Dashboard Flow" to
"Ray dashboard flow."

One more of the same kind in the first commit: alt text in
`user-guides/kuberay-dashboard.md` read "KubeRay dashboard List of
RayJobs" after the swap, so "List" lowercases too.

## Known cosmetic wart

`user-guides/kuberay-history-server.md:13` now reads "see [Ray
dashboard](https://docs.ray.io/en/latest/ray-observability/getting-started.html)"
against a target whose published title is still title case. This PR
retitles that page, so the two converge once it lands. The sentence is
redundant as written either way.

## Testing

No code, no API, no behavior change.

Most replacements are identical in length. The ones that aren't are the
fifteen that gained an article and the installation table rows, so rST
title underlines needed checking rather than assuming: one title, "Set
up Dashboard" becoming "Set up the dashboard", grew past its underline
and is fixed. Verified against `master` that the change introduces no
other short underline anywhere in `doc/source`.

Verified with Vale 3.12.0, running the ruleset from #65239 against this
branch: the `Ray Dashboard` and `KubeRay Dashboard` swaps go from 44
alerts to **0** on the paths that ruleset scopes, and `doc/source/data/`
holds at 170 with no new alerts. Vale doesn't cover the other paths in
this PR, and it has no rule for the bare noun at all, so the rest was
verified by hand against a categorized list of every occurrence.

Verified by hand that nothing in the repo references any of the changed
heading strings, so no cross-reference or link text goes stale.

Nothing here is enforced in CI. The Vale pre-commit hook remains scoped
to `doc/source/data/`.

## AI assistance

Written with AI assistance (Claude). The script is mine, I've reviewed
every replacement and exclusion individually, and I can defend the
change end to end.

---------

Signed-off-by: Douglas Strodtman <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…-project#65239)

## Why this change

Ray on Kubernetes docs describe Kubernetes API objects alongside Ray
concepts, and the two vocabularies collide. Deployment, Job, and Service
each name both a Kubernetes API object and a distinct Ray concept, so
capitalization is the only thing telling them apart, and the style guide
didn't say which form to use where. A contributor asking "RayCluster or
Ray cluster?" had to derive the answer from two guides and adjudicate
between them.

This adds a `Writing Ray on Kubernetes and KubeRay docs` section to the
style guide, scoped to the user-facing pages under
`doc/source/cluster/kubernetes/` and the contributor-facing pages in
[ray-project/kuberay](https://github.com/ray-project/kuberay).

The approach is to extend this guide with a Kubernetes deference section
rather than stand up a separate KubeRay style guide. The two guides
already overlap heavily, and a forked guide would drift within a release
or two.

## What the casing scan found

The term list isn't invented. It comes from a prose-only scan of three
corpora: 79 user-facing pages in this repo, 12 contributor pages in
`ray-project/kuberay`, and 128 pages of `kubernetes/website`
(`content/en/docs/concepts/`, commit `bb38117c0`). The scan strips front
matter, fenced code blocks, inline code, MyST roles, and link targets
before counting, so YAML field names and CLI output don't inflate the
figures.

Headline: **these docs already follow the Kubernetes casing rule.**
Upstream Kubernetes capitalizes "Pod" in 71% of prose uses; the Ray-side
KubeRay docs do so in 70%. So this PR documents a rule the docs mostly
already follow, and does not propose a capitalization sweep.

| Term | Ray-side KubeRay docs | Upstream Kubernetes | Read |
|---|---|---|---|
| Pod | 371/527 (70%) | 3712/5195 (71%) | Matches upstream almost
exactly. |
| ConfigMap | 20/21 (95%) | 119/130 (91%) | Healthy. |
| Ingress | 8/15 (53%) | 148/242 (61%) | Roughly aligned. |
| Service | 18/114 (15%) | 515/946 (54%) | Diverges by design. |
| Job | 17/143 (11%) | 522/610 (85%) | Diverges by design. |
| Deployment | 6/53 (11%) | 355/461 (77%) | Diverges by design. |

The three "diverges by design" rows are the reason this section exists.
Sampling shows the lowercase uses are Ray Serve deployments, Ray jobs,
and Ray services, not Kubernetes API objects. That's a naming collision,
not drift, so the fix is a disambiguation rule rather than a sweep.
Kubernetes's own rule expects a mix (UpperCamelCase for the API object,
sentence case for the general concept), which is why the upstream column
isn't 100% either.

The one genuine inconsistency the scan found is **"Ray Autoscaler" (44
uses) against "Ray autoscaler" (35)**, spread across at least eight
files. This guide already says to lowercase generic nouns even when they
name a Ray concept, so lowercase wins. Recording the rule here is the
prerequisite for a mechanical follow-up cleanup. I've left that out of
this PR to keep the rule change reviewable on its own.

## Open questions for reviewers

I've deliberately written only the rules I can support from the two
published guides plus the scan. These five are genuinely open, and I'd
rather resolve them in review than assert them:
All five are now resolved in review. Each entry keeps the original
question for context, since the reasoning behind the answer matters more
than the answer:
1. ~~**Confirm the custom-resource split.**~~ **Resolved** by @win5923:
the split is intentional and consistent with Kubernetes terminology.
Original question: The section documents `RayCluster` (the resource)
versus "Ray cluster" (the running thing it produces), currently 335
against 106 uses in this repo. I read it as intentional and matching the
Kubernetes API-object rule. Worth confirming rather than normalizing to
one form.
1. ~~**"head Pod" versus "head node."**~~ **Resolved** by @win5923: use
"head Pod" consistently when a Ray cluster runs on Kubernetes. Original
question: The section prefers "head Pod" for the Kubernetes-hosted case,
since a node is a machine on Kubernetes.
`doc/source/cluster/kubernetes/index.md` currently says "a head node pod
and a collection of worker node pods," which stacks both vocabularies.
Reasonable, or is "head node" worth keeping for continuity with Ray's
core architecture docs?
1. ~~**Feature graduation phases.**~~ **Resolved** by @win5923: keep the
existing convention, start case for Kubernetes feature stages and
lowercase for Ray and KubeRay stages. The corpus already works this way.
I've added the ownership test for the ambiguous case, a third-party
controller's feature gate, which makes `kueue.md:747` a defect rather
than an exception. No Vale rule, since a substitution can't tell which
project a stage name refers to. Original question: Kubernetes uses start
case ("DRA is Beta"); Ray docs lowercase feature stages. This bites on
pages discussing a Kubernetes feature's stage and a Ray feature's stage
in one paragraph. I left it out of the section rather than pick. Which
wins?
1. ~~**Field values.**~~ **Resolved** by @win5923, who writes values in
backticks: "set `upgradeStrategy.type` to
`NewClusterWithIncrementalUpgrade`." That's also what this guide already
says, so the section now states the divergence from Kubernetes
explicitly rather than leaving the two guides to contradict each other
silently. Original question: Kubernetes wants unquoted, unstyled values
("set `imagePullPolicy` to Always"); this guide says to use backticks
for configuration values and gives `num_replicas: 1`. These are closer
than they look, since one is a bare value and the other a key-value
pair, but the guidance should say which form applies where.
1. ~~**"Ray dashboard" versus "Ray Dashboard"**~~ **Resolved** by
@win5923: lowercase, on the grounds that "dashboard" is a generic noun
for the same reason "autoscaler" is, which makes the rule already in
this guide cover it. Applies to "KubeRay dashboard" too. This is the
largest defect the ruleset now surfaces, at 43 prose uses plus 1, and it
moves `KubeRay.Terms` on these pages from 160 to 204. A fair number sit
in headings, where the sentence-case rule makes them defects too. Sweep
folds into ray-project#65423. Original question: 43 title-case against 18
lowercase. This guide implies lowercase, but the dashboard is arguably a
named UI surface. Not addressed in the section pending a call.

Two further items are out of scope here but worth flagging:

- **Line wrapping in the `kuberay` repo.** This guide requires soft
wrap. The Kubernetes guide requires manual wrap, justified by
localization teams diffing per line, which KubeRay doesn't have. Nothing
in this PR changes that, since this guide already governs `doc/source/`.
But `kuberay`'s `.markdownlint.yaml` sets `MD013` to 120 characters via
pre-commit, which is a latent gate: 266 lines in its `docs/` already
exceed it, it isn't enforced in CI, and it isn't auto-fixable, so
contributors hit it unpredictably on whichever file they touch.
Disabling it there would align the two repos, but that's a call for
KubeRay maintainers in their own repo.
- **Turning Vale enforcement on.** This PR now adds the ruleset but
doesn't enforce it. See the section below.

## Staged Vale ruleset

A later commit adds a Vale ruleset for these pages, following the
pattern already used for the Ray Data docs. **Nothing is enforced yet.**
The Vale hook in `.pre-commit-config.yaml` stays scoped to
`^doc/source/data/.*`, so CI checks exactly what it checked before.

- `.vale/styles/config/vocabularies/KubeRay/accept.txt` — the KubeRay
custom resources, the Kubernetes and ecosystem API objects these pages
reference, and project names. Skips what the `General` vocabulary
already accepts (`Kubernetes`, `kubectl`, `CRD(s)?`, `namespace`).
- `.vale/styles/KubeRay/Terms.yml` — a `substitution` rule at `warning`
level covering only the casing forms the new style-guide section
settles, with `vocab: false` (see below). The open questions above are
deliberately absent.
- `.vale.ini` — registers the vocabulary and scopes the style to
`doc/source/cluster/kubernetes/`.

Registering a vocabulary that the hook doesn't exercise matches existing
practice here: `RLlib` and `Train` are already in `Vocab` while the hook
only runs on `doc/source/data/`.

Contributors can run it by hand today:

```
vale doc/source/cluster/kubernetes/
```

To enforce later, widen the `files` pattern on the `vale` hook. I'd
still hold that until the open questions land.

### What I verified

Vale 3.12.0 locally.

**Path scoping works.** The KubeRay rules fire on a file under
`doc/source/cluster/kubernetes/` and stay silent on identical content at
the repo root.

**Current state of these pages** — 146 `KubeRay.Terms` alerts, which
lines up with the casing scan:

| Alert | Count |
|---|---|
| Use 'Ray autoscaler' instead of 'Ray Autoscaler' | 42 |
| Use 'head Pod' instead of 'head pod' | 20 |
| Use 'worker Pod' instead of 'worker pod' | 7 |
| Use 'Ray job' instead of 'ray job' | 2 |
| Use 'Ray Serve' instead of 'Ray serve' | 1 |
| Use 'Ray cluster' instead of 'ray cluster' | 1 |
| Use 'KubeRay' instead of 'Kuberay' | 1 |
| Use 'GCS fault tolerance' instead of 'GCS FT' | 1 |

The 42 matches the scan's count for these pages exactly, which is a
useful cross-check on both. None of it is enforced, so nothing here has
to be fixed in this PR.

**No regression on the gated path.** Alert count on `doc/source/data/`
goes 174 → 173, deterministic across repeated runs in both states, with
no new alerts. A `Vocab` list is global, so it can only widen what's
accepted. The single alert that disappears is a `Google.Parens` hit in
`concurrent-dataset-execution.md`; no term in the new vocabulary appears
on that line, so I'm reporting that as observed rather than claiming I
understand the mechanism. It's a reduction either way, so it can't break
the gate.

### The vocabulary shadowing trap

Worth knowing if you write Vale rules here: a `Vocab` accept entry
shadows its token for **every** rule, case-insensitively. A substitution
whose target appears in an accept list silently never fires, and nothing
warns you.

This bit the `Ray Autoscaler` swap, because `autoscaler` is accepted in
`config/vocabularies/Data/accept.txt`. The fix is `vocab: false` on the
rule, which opts out of the filtering without touching the Data
vocabulary. The rule carries a comment saying so.

Credit to Bugbot for catching it. I'd first shipped that swap commented
out, having concluded the only way to enable it was dropping
`autoscaler` from the Data vocabulary and accepting new spelling alerts
on the gated path. That was wrong, and `vocab: false` avoids the
tradeoff entirely.

## Added after review

Two rules that review surfaced, both in the style-guide section plus the
Vale ruleset.

**Node stays lowercase.** Node is a Kubernetes API object, so
"capitalize Kubernetes API objects" read literally tells contributors to
write "Kubernetes Node." These pages almost always mean the machine, and
all 24 uses are correctly lowercase today, so a literal reading of the
rule would have someone "fix" working prose into wrongness. Kubernetes
applies the same two-part rule it applies elsewhere, capitalizing Node
only for the resource, and the section now says so.

**Don't write "Ray Pod."** This answers the casing question raised in
review, and the answer turned out to be neither casing. A Pod is a
Kubernetes host that contains a Ray node plus any sidecars, so naming it
after Ray overstates what it is. "TPU Pod" also already occupies the
qualified-Pod form in these pages and means a group of TPU chips rather
than a Kubernetes object. The term had no settled form to preserve
either: across the 55 prose lines using it, casing split four ways at
20, 16, 16, and 15.

Stating that alone would be a trap, because a bare "Pod" isn't always an
adequate replacement, so the section gives the test that separates the
cases:

- Qualify when the qualifier distinguishes two referents. That's why
"Ray node" against "Kubernetes node" is correct and should stay.
- Don't qualify when it relabels one thing.
- Keep the scope explicit where a page also describes Pods the
RayCluster doesn't own, such as the operator, Redis, or a `curl` Pod,
and where a nearby command filters by label. "List all Pods" and "List
the Ray cluster's Pods" describe different commands and shouldn't read
the same way.

The cleanup is ray-project#65423, which removes all 89 uses from the docs and is
reviewable on its own. This PR is the rule; that one is the sweep.

Vale picks up four swaps for the retired forms. Plurals get their own
entries, for the word-boundary reason @win5923 identified on the `head
pod` swaps. Verified that they don't fire on "Ray head Pod" or "Ray
worker Pods", and that the gated `doc/source/data/` path holds at 173
alerts.

## Not a duplicate

Checked open PRs for this area before starting:

```
gh pr list --repo ray-project/ray --state open --search "writing-style"
gh pr list --repo ray-project/ray --state open --search "style guide in:title"
gh pr list --repo ray-project/ray --state open --search "kuberay style"
```

No open PR touches `doc/source/ray-contribute/writing-style.md` or
proposes KubeRay style guidance. The `writing-style` matches were all
false positives on `write_delta`. This extends the guide added in
ray-project#64518.

## Testing

```
pre-commit run --files doc/source/ray-contribute/writing-style.md
```

Passes, but as a no-op on the Markdown: every hook reports "no files to
check," because no pre-commit hook applies to Markdown under
`doc/source/` and Vale is scoped to `doc/source/data/`. Stating that
plainly instead of claiming coverage it doesn't give.

The Vale config files do have hook coverage, and those checks ran for
real:

```
pre-commit run --files .vale.ini .vale/styles/KubeRay/Terms.yml .vale/styles/config/vocabularies/KubeRay/accept.txt
```

`trim trailing whitespace`, `fix end of files`, `check for added large
files`, and `semgrep` all pass.

Vale verification for the ruleset is in the section above: path scoping,
the 31-alert current state, and the 174 → 173 no-regression check on the
gated path.

Verified by hand: the new `(kubernetes-docs-style)=` anchor doesn't
collide with any existing target in `doc/source/`, and the section uses
the same MyST anchor form and Markdown pipe-table style already used
elsewhere in this file. Rendering is verified by the Read the Docs
preview build on this PR.

No code, no API, no behavior change. The prose is a contributor guide;
the Vale files add configuration without widening what CI enforces.

## AI assistance

Written with AI assistance (Claude). I've reviewed every changed line,
generated and inspected the casing counts myself, and can defend the
change end to end. The scan scripts that produced the numbers live
outside this repo; happy to share the methodology or re-run against a
different corpus if a reviewer wants to check a figure.




---

### Update: the vocabulary now covers the ecosystem terms these pages
use (555ebda)

Running `vale doc/source/cluster/kubernetes/`, which this PR's
`.vale.ini` comment tells contributors to do, produced 215
`Vale.Spelling` alerts on correctly spelled terms. The accept list
covered API objects, the custom resources, and project names, but not
the wider ecosystem vocabulary the pages actually contain. Left as is, a
contributor following the instruction learns to ignore Vale on exactly
the paths this PR wants gated.

Added: the ecosystem projects (Istio, Kiali, gVisor, Kata, Krew,
Kustomize, Bottlerocket, Aliyun, GCSFuse, Promtail, Fluentd, Filebeat,
Alertmanager), the Gateway API `HTTPRoute`, and the Kubernetes and
infrastructure terms in use (cgroup, finalizer, kubeconfig, kubelet,
namespaced, namespaces, toleration, upscaling, downscaling, vCPU, FQDN,
AMI, subnet, syscall, hostname, cron, CA, autoscalers).

**Excluded on purpose, since an accept list shouldn't launder a
defect.** `CR` and `CRs`, 12 uses, because this PR's own guidance says
to write "custom resource" and to define CustomResourceDefinition then
use CRD. Real misspellings: `heterogenous`, `replicaset` for ReplicaSet,
`Deepseek` for DeepSeek, `nodepool` for node pool. `gsutil`, which
`gcloud storage` supersedes. Unbackticked code identifiers, which are a
formatting defect rather than a vocabulary gap: `podSpec`,
`podSelector`, `nodeSelector`, `jsonPointers`, `intervalSeconds`,
`workerGroup`, `ignoreDifferences`, `HTTPMode`, `args`, `yaml`. And
generic English that Vale's dictionary lacks, which belongs in the
General vocabulary rather than a KubeRay-specific one.

Three entries are case-tolerant (`[Tt]oleration(s)?`, `[Uu]pscaling`,
`[Dd]ownscaling`). A lowercase-only entry makes `Vale.Terms` flag the
legitimate sentence-start capitalization.

**Verification**, deterministic across repeated runs:

- `doc/source/cluster/kubernetes/`: 1329 alerts to 1178. `Vale.Spelling`
drops from 215 to 72. `KubeRay.Terms` is unchanged at 160, confirming no
swap got shadowed by a new accept entry, which is the trap the `Ray
Autoscaler` comment in `Terms.yml` documents.
- `doc/source/data/`, the only path the pre-commit hook gates: 173 to
170, with **no new alerts**. A `Vocab` is global, so it can only widen
what's accepted.
- One candidate entry was dropped for exactly that reason. A
`runtime(s)?` entry made `Vale.Terms` flag "Runtime" in
`doc/source/data/monitoring-your-workload.rst`, a new alert on the gated
path.

Four new `Vale.Terms` alerts do appear on the KubeRay paths, and all
four are genuine casing defects in existing pages rather than noise:
"Kubelet" twice in `configuring-ippr.md`, lowercase "istio" naming the
project in `rayservice-incremental-upgrade.md`, and "Cgroups" in the
`resource-isolation-with-writable-cgroups.md` H1, which is also title
case. Those are content fixes for a separate change, not this one.

AI assistance was used for this commit, including the Vale sweep and the
before-and-after verification above.

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
…t#65423)

## Why this change

Ray on Kubernetes docs use "Ray Pod" 89 times, and this PR removes the
term. It's the concrete counterpart to the discussion in ray-project#65239, where a
reviewer asked whether the Kubernetes casing rule should capitalize Pod
in "Ray pod". Investigating that question produced a better answer than
either casing.

**A Pod isn't a Ray node, it's a host that contains one.** Kubernetes
defines a Pod as an "application-specific logical host" holding one or
more containers. KubeRay indexes exactly one Ray container per Pod
through `utils.RayContainerIndex`, and routinely places non-Ray
containers alongside it: the autoscaler sidecar, the history-server
collector, the RayJob submitter in `SidecarMode`, and the Fluent Bit
sidecars that `persist-kuberay-custom-resource-logs.md` documents. The
Pod is a strict superset of the Ray node, so naming it after Ray
overstates what it is. It's the same category error as "head node pod",
one level up.

**"Pod" is already taken in these docs, by something that isn't a
Kubernetes object.** A TPU Pod is a group of interconnected TPU chips.
`user-guides/tpu.md` writes "The name of the TPU Pod or slice" and "The
TPU pod type" three lines apart, and
`ray.util.tpu.get_current_pod_name()` is a public API whose docstring
reads "Return the name of the TPU pod that the worker is a part of".
Standardizing on a capitalized `Ray Pod` would put it beside a
capitalized `TPU Pod` on the same pages, distinguished only by the
preceding word.

**The mapping is already documented.** `user-guides/k8s-autoscaler.md`
says "each Ray node is run as a Kubernetes Pod", so two defined terms
already cover what the compound names.

**There was no convention to preserve.** Across the 55 prose lines using
the term, casing split four ways:

| Form | Occurrences |
|---|---|
| Ray Pods | 20 |
| Ray pods | 16 |
| Ray pod | 16 |
| Ray Pod | 15 |

Meanwhile "head Pod" and "worker Pod" already outnumber it 284 to 86
under `doc/source/cluster/kubernetes/`, so the replacement vocabulary is
the one these docs mostly use.

## What changed

83 lines across 31 files. The term becomes "Pod" where context is
unambiguous, which is most of them. Where a bare "Pod" would lose
meaning I used an explicit form instead:

- Headings, which have no surrounding context: "Check logs of the head
and worker Pods", "Verify the Ray cluster's Pods and PodGroup",
"Configuring Kubernetes Pods for TPU usage".
- Pages where other kinds of Pod are in scope: "the Ray cluster's Pods"
in `network-policy.md`, `prometheus-grafana.md`, `k8s-events.md`, and
`scheduler-plugins.md`.
- `rayservice-high-availability.md` listed "Ray Pod: This Pod sends
requests to the RayService". That Pod is a client that isn't part of the
RayCluster, and it's named `ray-pod` in the sample manifest, so it's now
listed by its actual object name.

## What replaces it on the orientation pages

Removing the compound takes away the handle a Ray-first reader was using
for the node-and-Pod relationship, so the relationship now gets stated
where readers form their mental model. It was only in
`user-guides/k8s-autoscaler.md`, whose title begins "(Advanced)", and
absent from `index.md`, `getting-started.md`, and
`user-guides/config.md`.

One sentence each on the two orientation pages:

- `index.md`: "KubeRay runs each Ray node as a Kubernetes Pod, so each
Ray cluster consists of a head Pod and a collection of worker Pods."
- `getting-started.md`: "It runs each Ray node as a Kubernetes Pod, so a
Ray cluster's head node is its head Pod and its worker nodes are its
worker Pods."

`getting-started/raycluster-quick-start.md` is the natural third
location, since line 53 is where the two vocabularies genuinely first
meet for a reader following the quickstart. It's left alone
deliberately: that paragraph writes "pods" lowercase throughout, and
adding a capitalized sentence into it would either read inconsistently
or drag the casing sweep into this PR. It belongs to whoever runs that
pass.

The rules behind both changes are in ray-project#65239, which now carries a "State
the node-to-Pod mapping once, early" section and a "Keep Pods out of
Ray-general pages" section. The second one is why this PR touches
`ray-core/scheduling/placement-group.rst` and
`serve/production-guide/fault-tolerance.md`.

## What this deliberately doesn't touch

- **`Ray head Pod` and `Ray worker Pod` stay.** Those qualify by role,
which is the form these docs already prefer and the one Google's Ray on
GKE docs use. Only the unqualified compound goes.
- **No casing sweep.** Lowercase "head pod" occurrences are left alone.
That's the Vale rule in ray-project#65239, not this PR.
- **`python/` code comments and docstrings keep the term.** About 10
occurrences under `python/ray/autoscaler`, `python/ray/dashboard`, and
the KubeRay tests identify which Pods the operator manages, which is
reasonable for a code comment. This PR is scoped to documentation prose.
- **The `kuberay` repo is out of scope.** Its authored prose has a
handful of uses and its `docs/reference/api.md` is generated from Go doc
comments. That's a maintainer call for that repo, and I'll raise it
there separately rather than assume the same decision carries.

## Two fixes on lines this change already rewrites

- `k8s-autoscaler.md` linked to `.../horizontal-Pod-autoscale/`, which
returns **404**. The correct URL is all-lowercase and returns 200. An
earlier Pod-casing sweep appears to have capitalized inside the URL.
- `index.md` described a Ray cluster as "a head node pod and a
collection of worker node pods", stacking both vocabularies in one
phrase. Now "a head Pod and a collection of worker Pods".
- `index.md` also wrote "heterogenous compute nodes" on that same line.
Now "heterogeneous".

## One casing fix folded in

`k8s-ecosystem/kai-scheduler.md` wrote "KAI scheduler deployment" in one
place and "KAI Scheduler" everywhere else. The KubeRay Vale vocabulary
proposed in ray-project#65239 surfaced it, and @win5923 confirmed the two-word
title-case form on that PR. Folded in here rather than opened as a
one-line PR, per the guidance in `AGENTS.md` about standalone trivial
changes.

The other hyphenated spellings in that file stay as they are. They sit
inside links to `NVIDIA/KAI-Scheduler`, the Helm release name, and the
`<KAI_SCHEDULER_VERSION>` placeholder, so none of them are prose.

## Testing

```
pre-commit run --files $(git diff --name-only)
```

Every hook reports "no files to check". Stating that plainly rather than
implying coverage it doesn't give: no pre-commit hook applies to
Markdown or reStructuredText under `doc/source/`, and the `vale` hook is
scoped to `^doc/source/data/.*`, so none of these files are linted in CI
today.

What I verified by hand instead:

- **No residual term.** `grep -rIniE '\bray [*_`]* ?pods?\b' .` over the
whole repo returns only the `python/` code comments listed above as
intentionally out of scope. This includes a markup-split case, "Ray
\*\*Pod quantities\*\*", that a naive search misses.
- **reStructuredText heading integrity.** `gpu.rst` has a section whose
title shortened, so its underline was resized to match. Title and
underline are both 30 characters.
- **No broken anchors.** Four headings changed text. Searched for
inbound references to their generated anchors and found none, and none
carries an explicit MyST anchor.
- **The URL fix.** `curl` returns 404 for the old casing and 200 for the
new one.
- **Config comments included.** `configs/static-ray-cluster.tls.yaml`
carried the term in two YAML comments mirroring `config.md` prose, so
the removal is complete rather than Markdown-only.

Rendering is verified by the Read the Docs preview build on this PR.

No code, no API, no behavior change.

## Not a duplicate

```
gh pr list --repo ray-project/ray --state open --search "Ray Pod"
gh pr list --repo ray-project/ray --state open --search "pod terminology"
```

No open PR proposes this change. ray-project#65239 is the style-guide PR where the
question came up and is the discussion surface for the rule; this PR is
the cleanup and stands on its own against master. Two of my open PRs
touch nearby files: ray-project#65287 rewrites lines in `jax-tpu-profiling.md`,
which this PR doesn't touch, and ray-project#65263 is a draft adding
`scheduling.md`, which introduces one new use of the term that I'll fix
there rather than here.

Per `AGENTS.md`, mechanical cleanups need maintainer coordination.
That's the thread on ray-project#65239 with @win5923, who reviewed and approved the
style-guide change and raised the question this PR answers.

## AI assistance

Written with AI assistance (Claude). I've reviewed every changed line,
generated and inspected the counts myself, and can defend the change end
to end.




---

### Update: four casing defects folded in (f9fc8ea)

Extending the KubeRay Vale vocabulary in ray-project#65239 turned four latent
casing errors into alerts. They belong with the rest of the terminology
cleanup rather than in a PR of their own.

- `configuring-ippr.md`, two uses: "Kubelet" to "kubelet". Kubernetes
writes the component lowercase in prose.
- `rayservice-incremental-upgrade.md`: "Install istio" to "Install
Istio" in a step label, where the word names the project. The lowercase
`istio` elsewhere on that page is correct and stays, since it's a
GatewayClass `metadata.name` and a `controllerName` value rather than
the project name.
- `resource-isolation-with-writable-cgroups.md`: the H1 read "Resource
Isolation with Writable Cgroups on Google Kubernetes Engine (GKE)".
Lowercasing only "Cgroups" would leave a title-case heading with one
lowercase word, so the whole heading moves to sentence case, which the
style guide requires anyway.

**One coupling worth flagging for review.** The explicit MyST label
above that H1 is unchanged, so every `{ref}` to the page still resolves,
and the bare `{ref}` in `cluster/kubernetes/user-guides.md` picks up the
new title automatically. But
`ray-core/resource-isolation-with-cgroupv2.rst` passes custom link text
that mirrored the old title case, so that text moves to sentence case
too. That's the one file this PR touches outside
`doc/source/cluster/kubernetes/`, and it's a one-line consistency fix
caused directly by the heading change.

Verified against the ray-project#65239 ruleset by diffing the alert set for these
files before and after the change: the four alerts clear and no new
alert appears. AI assistance was used for this commit and for that
verification.


### Update: a bad replacement in this PR, plus three defects in the same
files (89b0e49)

**This PR had a bug.** The term replacement turned "KubeRay pods" into
"KubePods" in `tpu.md`: the pattern matched "Ray pods" inside "KubeRay
pods" and left the "Kube" prefix glued to the replacement. `git log -S`
traces it to the retirement commit, so it isn't pre-existing. It's now
"Pods", which is what the rule asks for when the qualifier only names
the framework.

I swept every added line in this PR for the same signature, a lowercase
letter glued to "Pod" or "Pods", and this was the only instance. The
other repo-wide matches are Kubernetes event reasons such as
`CreatedHeadPod`, correct as literal strings.

Three more defects, in files this PR already edits:

- `tpu.md`: "GKE nodepool" to "GKE node pool" in prose. The `az aks
nodepool` spelling elsewhere in the docs is a CLI subcommand and stays.
- `prometheus-grafana.md`: "spawned by replicaset controller" to
"spawned by a ReplicaSet controller", fixing the API object casing and a
missing article.
- `rayservice-incremental-upgrade.md`: "utilizing" to "using", "like" to
"such as" for an example, and "(e.g. `istio`)" to "for example `istio`",
plus the imperative in place of "You will need to".

Verified against the ray-project#65239 ruleset with a column-independent diff of
the alert set for these files: five alerts clear, no new finding. The
two passive-voice alerts that change column position are pre-existing
and unchanged in substance.

**Deliberately not in this PR.** These sit in files this PR doesn't
otherwise touch, so folding them in would widen its file scope for
unrelated reasons: "Deepseek" for DeepSeek in
`examples/rayserve-deepseek-example.md` (an H1) and
`serve/llm/architecture/overview.md`; `gsutil` in
`examples/distributed-checkpointing-with-gcsfuse.md`, where `gcloud
storage` supersedes it and swapping a documented command needs someone
who can verify the equivalent invocation; and "nodepool" in the prose of
`user-guides/azure-aks-gpu-cluster.md`.

AI assistance was used for this commit and for the verification above.


### Update: adopt the RayCluster possessive the style guide settled on
(68041df)

ray-project#65239 merged after this PR was written, and the rule it landed is more
specific than the form used here. It says to use the resource name in
the possessive: the operator creates these Pods, sets their
`ownerReferences` to the RayCluster, and labels them `ray.io/cluster`,
so ownership, selection, and lifecycle are facts about the resource
rather than about the Ray cluster it produces. Its worked example is the
exact sentence this PR introduced in six places: "List the RayCluster's
Pods" above `kubectl get pods -l=ray.io/is-ray-node=yes`.

All 16 possessives become "the RayCluster's Pods". Each turns on one of
the three:

- **Selection**, nine uses. Six step comments above label-filtered
`kubectl` commands in `rayservice.md`, `rayservice-quick-start.md`,
`configuring-autoscaling.md`, `label-based-scheduling.md`, and
`rayservice-no-ray-serve-replica.md` (twice); the PodMonitor and the
`kubectl wait -l ray.io/cluster=` in `prometheus-grafana.md`; and the
`podSelector` in `network-policy.md`.
- **Ownership**, four uses. The Pods the RayCluster owns and places in
one PodGroup in `scheduler-plugins.md` (three), and the Pods KubeRay
injects environment variables into in `k8s-events.md`.
- **Membership**, three uses. Which Pods carry the proxy in
`kuberay-serve-high-throughput.md`, and which Pods to `exec` into in
`serve/production-guide/fault-tolerance.md` (twice).

Non-possessive uses of "Ray cluster" are unchanged, since they name the
running thing. Two of them the style guide now carries verbatim as its
own `Use:` examples: "Each Ray cluster consists of a head Pod and a
collection of worker Pods" on the landing page, and "a Ray cluster's
head node is its head Pod" on the getting-started page. That's a check
on the earlier commits rather than a change to them.

One thing left alone. `config.md` reads "manages Pods in order to match
the `RayCluster`'s spec", with the resource name in backticks. The
backticks predate this PR and code-formatting the resource name is a
separate question from the possessive, so it stays as it is.

---------

Signed-off-by: Douglas Strodtman <[email protected]>
nadongjun pushed a commit to nadongjun/ray that referenced this pull request Oct 6, 2026
## Why this change

"Dashboard" is a generic noun, so it stays lowercase next to a product
name for the same reason "autoscaler" does. That's the convention ray-project#65239
settles, on @win5923's reasoning in [this review
comment](ray-project#65239 (comment)).
This PR applies it across the docs.

Splitting it out from the rule change keeps each one reviewable on its
own: ray-project#65239 is the rule and the tooling, this is the mechanical sweep,
and the diff here is casing with no prose rewrites. Same split as
ray-project#65423, which retires "Ray Pod."

**This depends on ray-project#65239 landing first.** If the convention changes in
that review, this sweep changes with it.

## Scope

All of `doc/source`, `.md` and `.rst`. 215 replacements across 53 pages,
in prose: body text, headings, front matter and `.. meta::`
descriptions, a glossary term, table cells, image alt text, and link and
cross-reference text.

Three commits, each reviewable on its own: the Kubernetes pages, the
same term across the rest of the docs, and then the bare "Dashboard"
that the first two left behind.

The first commit covers `cluster/kubernetes/`, which is where ray-project#65239
scopes its Vale ruleset. The second extends the same convention to the
rest, so it holds on every surface rather than only where the tooling
happens to point: `ray-observability/`, `serve/`, `ray-core/`, `train/`,
`ray-security/`, `ray-overview/`, the non-Kubernetes `cluster/` pages,
`data/`, `rllib/`, and `ray-references/`.

Headings are included deliberately. This guide requires sentence case
for every heading, so "## Step 5: Access the Ray Dashboard" was already
a defect on two counts.

**The `ray-observability/getting-started` page title changes**, from
"Ray Dashboard" to "Ray dashboard." That's the canonical dashboard page,
so it's the most visible line in the diff and worth a deliberate look.
Cross-references to it that don't set their own text pick the new title
up automatically.

## Applied by script, reviewed by hand

The sweep ran from a fence-aware script rather than find-and-replace,
because a blind pass would have hit literal blocks and rewritten CLI
output. It tracks Markdown code fences, treats MyST directive fences
such as ```` ```{admonition} ```` as the prose they contain, and tracks
rST literal blocks introduced by both `.. code-block::` and a trailing
`::`. I reviewed all 162 replacements and each of the 9 exclusions
individually.

## Deliberately not changed

**Nine uses inside literal blocks**, because the rule governs prose.
Eight are shell comments, five of them `# Step 7: Check Ray
Dashboard...` in `k8s-ecosystem/ingress.md`. The ninth is literal CLI
output in `user-guides/kubectl-plugin.md` (`Ray Dashboard:
http://localhost:8265`), where changing it would misreport what the
command prints.

That leaves a page or two with a lowercase heading above a capitalized
shell comment. I'd rather flag that than quietly edit code blocks in a
prose sweep. Happy to include the eight comments if a reviewer prefers
consistency within the page.

**One use in `cluster/kubernetes/configs/static-ray-cluster.tls.yaml`**,
a comment in a sample manifest rather than a docs page.

**Nothing, as it turns out.** An earlier revision of this description
claimed 217 bare capitalized "Dashboard" uses were being left alone.
That number was wrong: the command behind it piped `grep -o` output into
a `grep -v` filter that could never match, so it counted every
occurrence of the word including the ones inside "Ray Dashboard". The
real figure was 93, and the third commit sweeps the 54 of those that are
the generic noun. What stays capitalized is listed above.

**`README.rst` and the `python/` docstrings.** Eight files outside
`doc/` use the term, mostly in docstrings that render into the API
reference. Different surface, different owners.

## Bare "Dashboard"

The third commit covers the 54 uses of a bare capitalized "Dashboard"
that the term sweep left behind, which otherwise put "the Dashboard"
next to "the Ray dashboard" on the same page. Most are a pure case
change. Fifteen needed an article, because the prose used the word as a
bare proper noun: "expose Dashboard outside the Cluster" becomes "expose
the dashboard outside the Cluster", and three sentences opening
"Dashboard is..." become "The dashboard is...".

The installation extras table is the one place where a bare lowercase
"dashboard" would have read badly, sitting in a list of Ray library
names ("Core, Dashboard, Cluster Launcher"). Those rows and the tip
below them now say "Ray dashboard".

Left capitalized, because these aren't the generic noun:

- CloudWatch's Agent, Dashboard, and Alarm config files, plus Grafana's
Dashboard and Default Dashboard.
- The literal **Open Dashboard** button label in the History Server UI.
- Title and label positions where any word would capitalize: the
"Dashboard (Web UI)" section title, a `Dashboard` tab label, and a
`**Dashboard**` list label.
- Twelve uses inside literal blocks, one of which is dashboard log
output.

## Six adjacent lines

Lowercasing one word of an otherwise title-case heading reads as a
botched edit, so where that happened the whole heading goes sentence
case:

- `cluster/configure-manage-dashboard.md`: "Configuring and Managing Ray
Dashboard" to "Configuring and managing Ray dashboard," plus the two
link texts and one `:ref:` text that mirror that page title.
- `ray-observability/user-guides/profiling.md`: "Ray Dashboard View" to
"Ray dashboard view."
- `ray-core/internals/token-authentication.rst`: "Ray Dashboard Flow" to
"Ray dashboard flow."

One more of the same kind in the first commit: alt text in
`user-guides/kuberay-dashboard.md` read "KubeRay dashboard List of
RayJobs" after the swap, so "List" lowercases too.

## Known cosmetic wart

`user-guides/kuberay-history-server.md:13` now reads "see [Ray
dashboard](https://docs.ray.io/en/latest/ray-observability/getting-started.html)"
against a target whose published title is still title case. This PR
retitles that page, so the two converge once it lands. The sentence is
redundant as written either way.

## Testing

No code, no API, no behavior change.

Most replacements are identical in length. The ones that aren't are the
fifteen that gained an article and the installation table rows, so rST
title underlines needed checking rather than assuming: one title, "Set
up Dashboard" becoming "Set up the dashboard", grew past its underline
and is fixed. Verified against `master` that the change introduces no
other short underline anywhere in `doc/source`.

Verified with Vale 3.12.0, running the ruleset from ray-project#65239 against this
branch: the `Ray Dashboard` and `KubeRay Dashboard` swaps go from 44
alerts to **0** on the paths that ruleset scopes, and `doc/source/data/`
holds at 170 with no new alerts. Vale doesn't cover the other paths in
this PR, and it has no rule for the bare noun at all, so the rest was
verified by hand against a categorized list of every occurrence.

Verified by hand that nothing in the repo references any of the changed
heading strings, so no cross-reference or link text goes stale.

Nothing here is enforced in CI. The Vale pre-commit hook remains scoped
to `doc/source/data/`.

## AI assistance

Written with AI assistance (Claude). The script is mine, I've reviewed
every replacement and exclusion individually, and I can defend the
change end to end.

---------

Signed-off-by: Douglas Strodtman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Issues that should be addressed in Ray Core docs An issue or change related to documentation docs-go RtD-only checks for docs-only changes. Doesn't run full library doc-test suites. go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants