Skip to content
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

AWS / Kubernetes: Internal DNS is not supported #40

Open
dwmkerr opened this issue Feb 17, 2018 · 4 comments
Open

AWS / Kubernetes: Internal DNS is not supported #40

dwmkerr opened this issue Feb 17, 2018 · 4 comments

Comments

@dwmkerr
Copy link
Owner

dwmkerr commented Feb 17, 2018

Note

This may be fixed with the latest version (3.9 at the time of writing) but needs to be tested.

Details

When we use the AWS Cloud Provider (which is required for Persistent Volumes (see #33)), we lose the ability to name our nodes, e.g:

[masters]
master.openshift.local openshift_hostname=master.openshift.local

# host group for etcd
[etcd]
master.openshift.local openshift_hostname=master.openshift.local

# host group for nodes, includes region info
[nodes]
master.openshift.local openshift_hostname=master.openshift.local openshift_node_labels="{'region': 'infra', 'zone': 'default'}" openshift_schedulable=true
node1.openshift.local openshift_hostname=node1.openshift.local openshift_node_labels="{'region': 'primary', 'zone': 'east'}"
node2.openshift.local openshift_hostname=node2.openshift.local openshift_node_labels="{'region': 'primary', 'zone': 'west'}"

Becomes:

[masters]
ip-10-0-1-31.ec2.internal openshift_hostname=ip-10-0-1-31.ec2.internal

# host group for etcd
[etcd]
ip-10-0-1-31.ec2.internal openshift_hostname=ip-10-0-1-31.ec2.internal

# host group for nodes, includes region info
[nodes]
ip-10-0-1-31.ec2.internal openshift_hostname=ip-10-0-1-31.ec2.internal openshift_node_labels="{'region': 'infra', 'zone': 'default'}" openshift_schedulable=true
ip-10-0-1-91.ec2.internal openshift_hostname=ip-10-0-1-91.ec2.internal openshift_node_labels="{'region': 'primary', 'zone': 'east'}"
ip-10-0-1-91.ec2.internal openshift_hostname=ip-10-0-1-91.ec2.internal openshift_node_labels="{'region': 'primary', 'zone': 'west'}"

This does not cause any functional problems, but is frustrating for users as it makes it hard to identify nodes.

The root cause seems to be:

The following issue is also related:

@bjwschaap
Copy link

Just a note to let you know this issue still isn't fixed with Openshift 3.9 unfortunately.

@dwmkerr
Copy link
Owner Author

dwmkerr commented Jun 24, 2018

Thanks for the heads up @bjwschaap, I'll keep the issue open and cross my fingers for 3.10!

@dwmkerr
Copy link
Owner Author

dwmkerr commented Mar 4, 2019

This may never be fixed - openshift/openshift-ansible#9665 suggests that openshift_hostname has been removed, as private 'vanity names' seemed to cause issues. Investigate later

@Jani93
Copy link

Jani93 commented Mar 17, 2020

Does this mean we can't run this deployment on a private subnet using private ip/dns names?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants