Skip to content

Commit 70f3bf8

Browse files
authored
Merge pull request #51823 from HirazawaUi/follow-51414
Follow up comments in PR 51414
2 parents 5b222e1 + 1e994aa commit 70f3bf8

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

content/en/docs/concepts/workloads/pods/pod-hostname.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ potential side effects after configuration, and the underlying mechanics.
1111

1212
<!-- body -->
1313

14-
## Default Pod Hostname
14+
## Default Pod hostname
1515

1616
When a Pod is created, its hostname (as observed from within the Pod)
1717
is derived from the Pod's metadata.name value.
@@ -88,7 +88,7 @@ Setting a value for `hostnameOverride` in the Pod spec causes the kubelet
8888
to unconditionally set both the Pod's hostname and fully qualified domain name (FQDN)
8989
to the `hostnameOverride` value.
9090

91-
The hostnameOverride field has a length limitation of 64 characters
91+
The `hostnameOverride` field has a length limitation of 64 characters
9292
and must adhere to the DNS subdomain names standard defined in [RFC 1123](https://datatracker.ietf.org/doc/html/rfc1123).
9393

9494
Example:
@@ -110,9 +110,10 @@ spec:
110110
This only affects the hostname within the Pod; it does not affect the Pod's A or AAAA records in the cluster DNS server.
111111
{{< /note >}}
112112

113-
If hostnameOverride is set alongside hostname and subdomain fields:
114-
* The hostname inside the Pod is overridden to the hostnameOverride value.
115-
* The Pod's A and/or AAAA records in the cluster DNS server are still generated based on the hostname and subdomain fields.
113+
If `hostnameOverride` is set alongside `hostname` and `subdomain` fields:
114+
* The hostname inside the Pod is overridden to the `hostnameOverride` value.
115+
116+
* The Pod's A and/or AAAA records in the cluster DNS server are still generated based on the `hostname` and `subdomain` fields.
116117

117118
Note: If `hostnameOverride` is set, you cannot simultaneously set the `hostNetwork` and `setHostnameAsFQDN` fields.
118119
The API server will explicitly reject any create request attempting this combination.

0 commit comments

Comments
 (0)