Skip to content
KEP Brain

KEP-1797keps/sig-node/1797-configure-fqdn-as-hostname-for-pods

Configure FQDN as Hostname for Pods

implementedstablesig-nodelatest v1.221 open finding
<!-- This section is incredibly important for producing high quality user-focused documentation such as release notes or a development roadmap. It should be possible to collect this information before implementation begins in order to avoid requiring implementors to split their attention between writing release notes and implementing the feature itself. KE… Full summary

<!-- This section is incredibly important for producing high quality user-focused documentation such as release notes or a development roadmap. It should be possible to collect this information before implementation begins in order to avoid requiring implementors to split their attention between writing release notes and implementing the feature itself. KEP editors, SIG Docs, and SIG PM should help to ensure that the tone and content of the Summary section is useful for a wide audience. A good summary is probably at least a paragraph in length. --> This proposal gives users the ability to set a pod’s hostname to its Fully Qualified Domain Name (FQDN). A new PodSpec field setHostnameAsFQDN will be introduced. When a user sets this field to true, its Linux kernel hostname field (the nodename field of struct utsname) will be set to its fully qualified domain name (FQDN). Hence, both uname -n and hostname --fqdn will return the pod’s FQDN. The new PodSpec field setHostnameAsFQDN will default to false to preserve current behavior, i.e., setting the hostname field of the kernel to the pod's shortname. Related Kubernetes issue #1791.

Facts

Approvers
@dchen1107
PRR approvers
@wojtek-tbeta@wojtek-tstable
Tracking issue
#1797(opens GitHub in a new tab) closedcompletedclosed 2021-09-01 17:09 UTCmilestone v1.25sig/networksig/nodestage/stable
Milestones
alpha v1.19beta v1.20stable v1.22
Participating SIGs
sig-network
Feature gates
setHostnameAsFQDN
Created / last updated
2020-05-18 / none
Loading decisions and status history

Keyboard shortcuts

Everywhere

?
Show or hide this list
/
Focus the question box on Ask, otherwise the page search
Ctrl Kor⌘ K
Focus the KEP search in the top bar
t
Switch the theme (system, light, dark)
Esc
Close a dialog, a search list or a menu

Go to a page

Press g, then the letter

g h
Home
g a
Ask
g e
Explore
g u
Audit
g m
Memory
g b
About

Ask

Enter
Send the question
Shift Enter
New line in the question
Esc
Cancel the running question

Search lists

KEP search and Explore search

↓or↑
Move through the results
HomeorEnd
First or last result (Explore)
Enter
Open the highlighted result, or KEP-n when the query is a number

KEP page

o
Open the KEP on GitHub
y
Open kep.yaml on GitHub
a
Ask about this KEP
←or→
Previous or next tab, when a tab is focused

Findings table

With a finding row focused (Tab into the table or click a row)

jork
Next or previous finding
EnterorSpace
Expand or collapse the finding
o
Open the finding's KEP page
d
Draft the fix as an issue text (nothing is posted)
]or[
Next or previous page of findings

Shortcuts pause while you type in a field. Press ? or Esc to close.