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
#31311 introduced a new requirement for node names to be DNS1123Labels.
In case of hack/local-up-cluster.sh, an IP address is used as node name and thus endpoints aren't created for services, e.g. kube-dns doesn't work anymore.
…as-node-names
Automatic merge from submit-queue
Allow IP addresses to be used as node names
Fixes#32050
In `pkg/api/validation/validation.go`, there's already `ValidateNodeName()`, so using `ValidateDNS1123Label()` was ujustified. Also, it broke service endpoints in `hack/local-up-cluster.sh` and some other software that doesn't want to do extra work to provide resolvable hostnames for the nodes of test clusters, e.g.
https://github.com/metral/nanokubehttps://github.com/sttts/kubernetes-dind-cluster
And probably others.
On affected installs, service latency e2e test hangs, see e.g. #30632 (comment)
DNS1123Label suggestion is by @thockin, see [here](#30301 (comment)). I think it's wrong though for aforementioned reasons :(
PR that broke node names: #31311
#31311 introduced a new requirement for node names to be DNS1123Labels.
In case of hack/local-up-cluster.sh, an IP address is used as node name and thus endpoints aren't created for services, e.g. kube-dns doesn't work anymore.
There are other projects that use IP addresses as node names for running simplified k8s dev environment:
https://github.com/metral/nanokube
https://github.com/sttts/kubernetes-dind-cluster
Probably there are other projects where it's convenient to have just an IP address as a node name.
Verified against dfccabe.
On affected installs, service latency e2e test hangs, see e.g. #30632 (comment)
Example (added some newlines):
The text was updated successfully, but these errors were encountered: