Skip to content

Commit

Permalink
Merge pull request #45683 from alculquicondor/nodename-warning
Browse files Browse the repository at this point in the history
Upgrade note about nodeName to warning
  • Loading branch information
k8s-ci-robot committed Mar 27, 2024
2 parents a204996 + 0b15ecc commit 801eefb
Showing 1 changed file with 4 additions and 3 deletions.
Expand Up @@ -586,11 +586,12 @@ Some of the limitations of using `nodeName` to select nodes are:
for example OutOfmemory or OutOfcpu.
- Node names in cloud environments are not always predictable or stable.

{{< note >}}
{{< warning >}}
`nodeName` is intended for use by custom schedulers or advanced use cases where
you need to bypass any configured schedulers. Bypassing the schedulers might lead to
failed Pods if the assigned Nodes get oversubscribed. You can use the [node affinity](#node-affinity) or the [`nodeselector` field](#nodeselector) to assign a Pod to a specific Node without bypassing the schedulers.
{{</ note >}}
failed Pods if the assigned Nodes get oversubscribed. You can use [node affinity](#node-affinity)
or the [`nodeSelector` field](#nodeselector) to assign a Pod to a specific Node without bypassing the schedulers.
{{</ warning >}}

Here is an example of a Pod spec using the `nodeName` field:

Expand Down

0 comments on commit 801eefb

Please sign in to comment.