-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
fix hostnames in kops openstack #6442
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/assign @mikesplain @justinsb
As discussed on slack that’s a rather high prio pr as it allows external ccm to function as addon.
/hold Waiting for kubernetes/cloud-provider-openstack#467 Also I am thinking that could we just replace Then the hostnames in linux should work, and in openstack also. Example: @chrisz100 what you think? Then that PR to upstream openstack is not needed if we just replace dots |
/hold cancel |
Been testing with a variety of helm charts. There are a number which have podAntiAffinity rules which require this PR to work correctly. |
and this PR is must if we want to get external CCM working. (I am working with that in another PR) |
/test pull-kops-e2e-kubernetes-aws |
/sig openstack |
/lgtm |
@dims could you approve if ok? |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dims, zetaab The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Deleter: func(cloud fi.Cloud, r *resources.Resource) error { | ||
return cloud.(openstack.OpenstackCloud).DeleteInstanceWithID(r.ID) | ||
}, | ||
val, ok := instance.Metadata["k8s"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI on AWS we use kubernetes.io/cluster/<cluster-name>=shared
and kubernetes.io/cluster/<cluster-name>=owned
. <cluster-name>
can be anything but for kops we use the name of the cluster you create.
We originally had KubernetesCluster=<cluster-name>
but this made it hard to have shared resources.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(and it looks like GCP is using kubernetes.io/cluster-id=<cluster-name>
, but only in the description field for GCLBs https://github.com/kubernetes/kubernetes/blob/1c557b9ce866d67ec6088f37058e8594b89606ee/pkg/cloudprovider/providers/gce/gce_loadbalancer_external.go#L862
fixes #6441
Kubernetes: (these will be fixed if openstack cloudprovider will start parsing hostnames correctly)
and hostnames are now in machines like
bastions-1
,nodes-1
,master-nova-2-1
and so on.