Skip to content

Commit 2d31364

Browse files
authored
Merge pull request #26920 from SergeyKanzhelev/nameAsIdentifier
added note about the name being an identifier
2 parents 2c530c2 + 607e086 commit 2d31364

File tree

2 files changed

+14
-2
lines changed
  • content/en/docs/concepts

2 files changed

+14
-2
lines changed

content/en/docs/concepts/architecture/nodes.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,16 @@ delete the Node object to stop that health checking.
6767
The name of a Node object must be a valid
6868
[DNS subdomain name](/docs/concepts/overview/working-with-objects/names#dns-subdomain-names).
6969

70+
### Node name uniqueness
71+
72+
The [name](/docs/concepts/overview/working-with-objects/names#names) identifies a Node. Two Nodes
73+
cannot have the same name at the same time. Kubernetes also assumes that a resource with the same
74+
name is the same object. In case of a Node, it is implicitly assumed that an instance using the
75+
same name will have the same state (e.g. network settings, root disk contents). This may lead to
76+
inconsistencies if an instance was modified without changing its name. If the Node needs to be
77+
replaced or updated significantly, the existing Node object needs to be removed from API server
78+
first and re-added after the update.
79+
7080
### Self-registration of Nodes
7181

7282
When the kubelet flag `--register-node` is true (the default), the kubelet will attempt to
@@ -364,4 +374,3 @@ For example, if `ShutdownGracePeriod=30s`, and `ShutdownGracePeriodCriticalPods=
364374
* Read the [Node](https://git.k8s.io/community/contributors/design-proposals/architecture/architecture.md#the-kubernetes-node)
365375
section of the architecture design document.
366376
* Read about [taints and tolerations](/docs/concepts/scheduling-eviction/taint-and-toleration/).
367-

content/en/docs/concepts/overview/working-with-objects/names.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ For non-unique user-provided attributes, Kubernetes provides [labels](/docs/conc
2424

2525
{{< glossary_definition term_id="name" length="all" >}}
2626

27+
{{< note >}}
28+
In cases when objects represent a physical entity, like a Node representing a physical host, when the host is re-created under the same name without deleting and re-creating the Node, Kubernetes treats the new host as the old one, which may lead to inconsistencies.
29+
{{< /note >}}
30+
2731
Below are three types of commonly used name constraints for resources.
2832

2933
### DNS Subdomain Names
@@ -86,4 +90,3 @@ UUIDs are standardized as ISO/IEC 9834-8 and as ITU-T X.667.
8690
8791
* Read about [labels](/docs/concepts/overview/working-with-objects/labels/) in Kubernetes.
8892
* See the [Identifiers and Names in Kubernetes](https://git.k8s.io/community/contributors/design-proposals/architecture/identifiers.md) design document.
89-

0 commit comments

Comments
 (0)