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 }}
Repository navigation
Clusters that use the same subdomain cannot communicate with each other #1136
Install more than one cluster using the same DNS subdomain (ie. dev.openshift.com). You will get different URLs for api access. For instance cluster1-api.dev.openshift.com and cluster2-api.dev.openshift.com.
Attempting to access the API (or any application for that matter) that is hosted on cluster2 from a pod/machine in cluster1 will fail with a DNS lookup error. Same in the opposite direction. Note that this is not an issue for a client that lives outside of AWS.
What you expected to happen?
That you can access either cluster's public endpoints from anywhere.
How to reproduce it (as minimally and precisely as possible)?
Install 2 clusters as described above using the same DNS subdomain.
Anything else we need to know?
This is a limitation of AWS and how we setup separate private zones for each cluster. DNS lookups by machines in one cluster will try to use the private DNS zone for that cluster, which knows nothing about machines that live in a different cluster.
We should at the very least document that when creating a new cluster, to use a separate public zone for each cluster. Even better, when installing on AWS, the installer could create a separate public zone delegated from the main public zone. (for example if I say use dev.openshift.com, the installer could create cluster1.dev.openshift.com and use that).
Split horizon DNS is really hard. I think we should probably just include the cluster name in the base domain. That way, each cluster gets its own zone and there is no name collision. This is going to be extremely disruptive, so we should make the change ASAP.
The cluster name is still used in naming entities in AWS, probably a lot of other places as well, parsing it out of the domain is doable just a little odd, and we'd have to hope users do it correctly. It's an easy change for us to switch to this though so if that's the way you wanna go no problem just tag us on the PR.
We could also just assume to combine name+basedomain when creating the DNS zone, which would mean no config format changes, and the config feels a little more clear to me at least, but I can see that being debatable.
The cluster name is still used in naming entities in AWS, probably a lot of other places as well, parsing it out of the domain is doable just a little odd,
I think we'd want to drop that, and just use the full cluster domain for name tags. This would help with #762.
That wouldn't be ideal for credentials, I have 64 chars to play with for user names, which need to include some truncated form of cluster name, credential name, and random suffix. Might still be workable though but it's getting pretty tight by that point.
That wouldn't be ideal for credentials, I have 64 chars to play with for user names...
So include as much as you can of the 36-character cluster ID to get a good shot at uniqueness, and leave the full cluster domain to a tag? Then you can drop the random suffix as well.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Activity
crawford commentedon Jan 28, 2019
Split horizon DNS is really hard. I think we should probably just include the cluster name in the base domain. That way, each cluster gets its own zone and there is no name collision. This is going to be extremely disruptive, so we should make the change ASAP.
wking commentedon Jan 28, 2019
Can we deprecate "cluster name" as a thing, and just have "cluster ID" and "cluster domain"?
wking commentedon Jan 28, 2019
CC @dgoodwin, @vrutkovs, since they'd probably care about shuffling the config schema.
vrutkovs commentedon Jan 29, 2019
Including cluster name in DNS (cluster1.dev.openshift.org) seems to be a good solution, its already used by etcd discovery afaik
dgoodwin commentedon Jan 29, 2019
The cluster name is still used in naming entities in AWS, probably a lot of other places as well, parsing it out of the domain is doable just a little odd, and we'd have to hope users do it correctly. It's an easy change for us to switch to this though so if that's the way you wanna go no problem just tag us on the PR.
We could also just assume to combine name+basedomain when creating the DNS zone, which would mean no config format changes, and the config feels a little more clear to me at least, but I can see that being debatable.
wking commentedon Jan 29, 2019
I think we'd want to drop that, and just use the full cluster domain for name tags. This would help with #762.
dgoodwin commentedon Jan 29, 2019
That wouldn't be ideal for credentials, I have 64 chars to play with for user names, which need to include some truncated form of cluster name, credential name, and random suffix. Might still be workable though but it's getting pretty tight by that point.
smarterclayton commentedon Jan 29, 2019
I agree that having base + cluster name should go away.
smarterclayton commentedon Jan 29, 2019
I hit this while trying to prototype GCP - they don't really support split zone yet completely so this was really annoying.
wking commentedon Jan 29, 2019
So include as much as you can of the 36-character cluster ID to get a good shot at uniqueness, and leave the full cluster domain to a tag? Then you can drop the random suffix as well.
dns/aws: update public zone discovery to search parent domains
crawford commentedon Feb 16, 2019
Fixed by #1169.
openshift-ci-robot commentedon Feb 16, 2019
@crawford: Closing this issue.
Details
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.