Skip to content

Commit d5cf942

Browse files
committed
Align KEPs with implemented PRs and documentation
1 parent 9177d4a commit d5cf942

File tree

1 file changed

+3
-2
lines changed
  • keps/sig-network/4762-allow-arbitrary-fqdn-as-pod-hostname

1 file changed

+3
-2
lines changed

keps/sig-network/4762-allow-arbitrary-fqdn-as-pod-hostname/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ Items marked with (R) are required *prior to targeting to a milestone / release*
156156

157157
## Summary
158158

159-
This proposal allows users to set arbitrary Fully Qualified Domain Name (FQDN) as the hostname of a pod, introduces a new field `hostnameOverride` for the podSpec, which, if set, once the API is GA will always be respected by the Kubelet (otherwise it will fall back to legacy behavior), and no longer cares about the `hostname` as well as the `subdomain` values. Unless the user sets the `hostNetwork` field of `podSpec` to true, if the `hostNetwork` field is true, it will always use the hostname of the host where the pod is located as the pod's name.
159+
This proposal allows users to set arbitrary Fully Qualified Domain Name (FQDN) as the hostname of a pod, introduces a new field `hostnameOverride` for the podSpec, which, if set, once the API is GA will always be respected by the Kubelet (otherwise it will fall back to legacy behavior), and no longer cares about the `hostname` as well as the `subdomain` values.
160160

161161
## Motivation
162162

@@ -203,7 +203,7 @@ Additionally, in the `generatePodSandboxConfig` method of kubelet, the pod's hos
203203

204204
For Windows containers, we only set the container's hostname and do not create an `/etc/hosts` file for it (as we have previously made it clear that we do not create an `/etc/hosts` file for Windows containers).
205205

206-
If both `setHostnameAsFQDN` and hostnameOverride fields are set simultaneously, we will reject the resource creation with an error stating these fields are mutually exclusive.
206+
If both `setHostnameAsFQDN` and `hostnameOverride` fields are set, or if both `hostNetwork` and `hostnameOverride` fields are set, we will reject the creation of the resource and return an error indicating that these fields are mutually exclusive with the `hostnameOverride` field.
207207

208208
Based on the above design, after the KEP is implemented, we can achieve the following results.
209209

@@ -572,6 +572,7 @@ For each of them, fill in the following information by copying the below templat
572572
## Implementation History
573573

574574
- 2024-07-18: Initial draft KEP
575+
- 2025-08-13: Align KEPs with implemented PRs and documentation.
575576

576577
## Drawbacks
577578

0 commit comments

Comments
 (0)