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
{{ message }}
This repository has been archived by the owner on Feb 10, 2022. It is now read-only.
obeyler
changed the title
https://kubernetes.io/docs/reference/kubernetes-api/labels-annotations-taints/#kubernetes-io-hostname
bad value on node for label kubernetes-io/hostname in case of openstack
Jul 26, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What happened:
kubernetes.io/hostname
label of node is set toIp adress
instead ofhostname
on K8S doc they say that the normal behavior is to put hostname :
https://kubernetes.io/docs/reference/kubernetes-api/labels-annotations-taints/#kubernetes-io-hostname
some product such as
OpenEBS
use this label as node selector so they are not able to select the right nodeWhat you expected to happen:
put the hostname and not the Ip as value of
kubernetes.io/hostname
Anything else we need to know?:
I think that the trouble is located there :
kubo-release/jobs/kubelet/templates/bin/kubelet_ctl.erb
Lines 83 to 92 in 3d1cefe
on openstack we can get the hostname of the iaas vm by this way:
and may another good/best solution is to allow as an option to set it to the result of hostname linux command of the vm (witch is also another value)
Environment:
bosh -d <deployment> deployment
): cfcr-34bosh -e <environment> environment
):kubectl version
): 1.14.1aws
,gcp
,vsphere
): openstackThe text was updated successfully, but these errors were encountered: