New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloud providers should report node hostname address types #67714
Comments
cc @mikedanese @awly |
cc @FengyunPan2 @dixudx @hogepodge @dklyle (for openstack) |
Get it, I will report it for openstack cloud provider. |
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Make OpenStack cloud provider report a node hostname address Related to: #67714 Cloud-provider-reported addresses are authoritative in 1.12, this preserves default behavior that used the internal dns name as the "Hostname" address on Node status. **Release note**: ```release-note The OpenStack cloud provider now reports a `Hostname` address type for nodes ```
There have been a number of persistent failures in test grid for a few weeks (eg: https://k8s-gubernator.appspot.com/build/kubernetes-jenkins/logs/ci-kubernetes-e2e-gke-gci-new-gci-master-upgrade-master/1423) where the failure signature is:
Related? |
No, those likely are set up with the kubelet self-signing its serving certificate. The symptom of a cluster affected by this would be the apiserver unable to even reach the kubelet |
I think that error is from CRI streaming. From @Random-Liu :
|
@mikedanese Those nodes are not running containerd. I think it should be a different issue. :) |
/milestone v1.12 |
Automatic merge from submit-queue (batch tested with PRs 67739, 65222). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Honor --hostname-override, report compatible hostname addresses with cloud provider xref kubernetes#67714 7828e5d made cloud providers authoritative for the addresses reported on Node objects, so that the addresses used by the node (and requested as SANs in serving certs) could be verified via cloud provider metadata. This had the effect of no longer reporting addresses of type Hostname for Node objects for some cloud providers. Cloud providers that have the instance hostname available in metadata should add a `type: Hostname` address to node status. This is being tracked in kubernetes#67714 This PR does a couple other things to ease the transition to authoritative cloud providers: * if `--hostname-override` is set on the kubelet, make the kubelet report that `Hostname` address. if it can't be verified via cloud-provider metadata (for cert approval, etc), the kubelet deployer is responsible for fixing the situation by adjusting the kubelet configuration (as they were in 1.11 and previously) * if `--hostname-override` is not set, *and* the cloud provider didn't report a Hostname address, *and* the auto-detected hostname matches one of the addresses the cloud provider *did* report, make the kubelet report that as a Hostname address. That lets the addresses remain verifiable via cloud provider metadata, while still including a `Hostname` address whenever possible. /sig node /sig cloud-provider /cc @mikedanese fyi @hh ```release-note NONE ```
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md. Report Hostname node address for vsphere xref #67714 ```release-note NONE ```
Automatic merge from submit-queue (batch tested with PRs 65566, 67959, 68029, 68017, 67263). If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md. add test to verify vsphere cloud provider report node hostname **What this PR does / why we need it**: as in pull #67922 has modify vsphere cloud provider to report node hostname, this patch is to add the test for it. also fix an issue at InstanceID(), it suppose to return cloudprovider.InstanceNotFound when vm not found, but it did double error type translation with a retry() logic, after removing the retry() (which is not necessary), the logic is simpler, and easier to understand how double translation happened, after the fix, test TestInstance() can pass **Which issue(s) this PR fixes** : Fixes #67714 **Special notes for your reviewer**: as in the process of create pull to fix crosscloudci/crosscloudci#65, i saw #67922 already merged, so this pull is just to submit the test part. **Release note**: ```release-note none ``` /cc @abrarshivani @BaluDontu @divyenpatel @imkin @kerneltime @luomiao @frapposelli @dougm @liggitt /sig cloudprovider
7828e5d made cloud providers authoritative for the addresses reported on Node objects, so that the addresses used by the node (and requested as SANs in serving certs) could be verified via cloud provider metadata.
This had the effect of no longer reporting addresses of type
Hostname
for Node objects for some cloud providers. Cloud providers that have the instance hostname available in metadata should add atype: Hostname
address to node status.This issue tracks the cloud providers updated to do so:
The text was updated successfully, but these errors were encountered: