Skip to content

Commit e5374e2

Browse files
committed
Graduating feature to GA and fixing typo in metadata kep number
1 parent d4aa2b4 commit e5374e2

File tree

3 files changed

+23
-11
lines changed

3 files changed

+23
-11
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
kep-number: 1797
2+
beta:
3+
approver: "@wojtek-t"
4+
stable:
5+
approver: "@wojtek-t"

keps/sig-node/1797-configure-fqdn-as-hostname-for-pods/README.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ should be approved by the remaining approvers and/or the owning SIG (or
5959
SIG Architecture for cross cutting KEPs).
6060
-->
6161

62-
# KEP-1792: Configure FQDN as Hostname for Pods
62+
# KEP-1797: Configure FQDN as Hostname for Pods
6363

6464
<!--
6565
This is the title of your KEP. Keep it short, simple, and descriptive. A good
@@ -614,10 +614,12 @@ _This section must be completed when targeting beta graduation to a release._
614614
Abnormal increase in `run_podsandbox_errors_total` count could be related to this feature. We should filter those pods having issues to create sandbox and check whether they are stuck due to the length of their FQDN, as described in the proposal.
615615

616616
* **Were upgrade and rollback tested? Was upgrade->downgrade->upgrade path tested?**
617-
We tested enabling and disabling this feature. Running pods are not affected by
618-
either enabling nor disabling this feature. When disabling the feature, Pods
619-
using it that are "stuck" due to having long FQDNs will go into
620-
running.
617+
Yes. We tested enabling and disabling this feature. Running pods are not affected by
618+
either enabling nor disabling this feature. When disabling the feature, running Pods
619+
using the feature keep making use of it, while new pods do not get the
620+
setHostnameAsFQDN field even if a user tries to set it. Similarly, when reenabling
621+
the feature gate, existing pods keep existing behavior, and new pods that define
622+
setHostnameAsFQDN make use of the feature as expected.
621623

622624
* **Is the rollout accompanied by any deprecations and/or removals of features,
623625
APIs, fields of API types, flags, etc.?**
@@ -633,8 +635,13 @@ _This section must be completed when targeting beta graduation to a release._
633635
checking if there are objects with field X set) may be last resort. Avoid
634636
logs or events for this purpose.
635637

636-
Listing pods in the cluster and checking if any has both
637-
`subDomain` and `setHostnameAsFQDN` fields set.
638+
Yes, operators can use Kubenetes API for this purpose. They would need to get
639+
all pods in the cluster and check if any has both
640+
`subdomain` and `setHostnameAsFQDN` fields set. For example, we could find the
641+
namespace and name of the pods using this feature with the following command:
642+
```
643+
kubectl get pod -o json --all-namespaces | jq '.items[] | select(.spec.setHostnameAsFQDN=true) | select(.spec.subdomain!=null) | "\(.metadata.namespace):\(.metadata.name)"'
644+
```
638645

639646
* **What are the SLIs (Service Level Indicators) an operator can use to
640647
determine the health of the service?**

keps/sig-node/1797-configure-fqdn-as-hostname-for-pods/kep.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
title: Configure FQDN as Hostname for Pods
2-
kep-number: 1792
2+
kep-number: 1797
33
authors:
44
- "@javidiaz"
55
- "@clrkio"
@@ -25,12 +25,12 @@ replaces:
2525
- "N/A"
2626

2727
# The target maturity stage in the current dev cycle for this KEP.
28-
stage: beta
28+
stage: stable
2929

3030
# The most recent milestone for which work toward delivery of this KEP has been
3131
# done. This can be the current (upcoming) milestone, if it is being actively
3232
# worked on.
33-
latest-milestone: "v1.19"
33+
latest-milestone: "v1.22"
3434

3535
# The milestone at which this feature was, or is targeted to be, at each stage.
3636
milestone:
@@ -44,9 +44,9 @@ feature-gates:
4444
- name: setHostnameAsFQDN
4545
components:
4646
- kubelet
47+
- kube-apiserver
4748
disable-supported: true
4849

4950
# The following PRR answers are required at beta release
5051
metrics:
5152
- run_podsandbox_errors_total
52-

0 commit comments

Comments
 (0)