-
Notifications
You must be signed in to change notification settings - Fork 72
Configure dnsmasq to resolve the cluster's subdomain #218
Conversation
Signed-off-by: gbenhaim <[email protected]>
Configure the dns server of the masters/nodes to resolve the cluster's "subdomain". *.{{ openshift_master_default_subdomain }} names will be resolved to the ip of the node that runs the Openshift router. Signed-off-by: gbenhaim <[email protected]>
Not sure why, but now it redirects the DNS request to the upstream dns server:
Even though
Also, anyone has an idea how to extract |
@gbenhaim Are the config changes in Also, I do not know how to get the default subdomain from OpenShift itself. I think you'd have to look in the master config files and grep for the line that sets it. |
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.
@gbenhaim Please see the comments.
- hosts: masters[0] | ||
force_handlers: True | ||
tasks: | ||
- name: Switch do the default project |
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.
Switch do/Switch to
force_handlers: True | ||
tasks: | ||
- set_fact: | ||
subdomain: "cloudapps.example.com" |
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.
Isn't it a openshift_master_default_subdomain
variable?
@@ -15,6 +15,8 @@ openshift_enable_excluders=false | |||
template_service_broker_install=false | |||
openshift_use_manageiq=false | |||
openshift_install_examples=false | |||
# Domain name that will be used by the Openshift router | |||
openshift_master_default_subdomain=cloudapps.example.com |
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.
I don't see where it's used.
@@ -0,0 +1,66 @@ | |||
# Configure the dns of the masters and nodes | |||
# with the ip and and subdomain of the cluster's router. | |||
# After runnin this playbook on a master/node, openshift routes |
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.
s/runnin/running
s/a master/node/master and node machines/
s/openshift/OpenShift
@@ -0,0 +1,66 @@ | |||
# Configure the dns of the masters and nodes | |||
# with the ip and and subdomain of the cluster's router. |
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.
s/ip and and/IP and/
@@ -0,0 +1,66 @@ | |||
# Configure the dns of the masters and nodes |
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.
s/dns/DNS
Maybe adding the wildcard DNS entry to the upstream server will help. |
Once @alexxa comments are addressed looks good to me. |
I was just fighting this same issue in downstream test CI, and had an extensive debugging session with @sdodson. There are very specific things openshift-ansible does that you need to adjust the infrastructure to, like making sure nodes/masters have an fqdn hostname set and external domain settings via NM |
No needed anymore. |
Allow dnsmasq to resolve the cluster's subdomain
Configure the dns server of the masters/nodes to resolve
the cluster's "subdomain".
*.{{ openshift_master_default_subdomain }} names will be resolved to
the ip of the node that runs the Openshift router.
Signed-off-by: gbenhaim [email protected]