You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: keps/sig-node/1797-configure-fqdn-as-hostname-for-pods/README.md
+14-7Lines changed: 14 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ should be approved by the remaining approvers and/or the owning SIG (or
59
59
SIG Architecture for cross cutting KEPs).
60
60
-->
61
61
62
-
# KEP-1792: Configure FQDN as Hostname for Pods
62
+
# KEP-1797: Configure FQDN as Hostname for Pods
63
63
64
64
<!--
65
65
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._
614
614
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.
615
615
616
616
* **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.
621
623
622
624
* **Is the rollout accompanied by any deprecations and/or removals of features,
623
625
APIs, fields of API types, flags, etc.?**
@@ -633,8 +635,13 @@ _This section must be completed when targeting beta graduation to a release._
633
635
checking if there are objects with field X set) may be last resort. Avoid
634
636
logs or events for this purpose.
635
637
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
+
```
638
645
639
646
* **What are the SLIs (Service Level Indicators) an operator can use to
0 commit comments