Ingress DNS setup¶
For most domains we point a wildcard DNS record to a loadbalancer in front of our ingress-controller.
*.dev-gcp.nais.io -> 18.104.22.168
This means that all entries under this domain, e.g. foo.dev-gcp.nais.io, will resolve to this address automatically.
When domains are shared between clusters, such as dev.nav.no which exists both in dev-gcp and dev-sbs, we have a wildcard entry pointing to dev-gcp. In addition, to be able to use the same domain in dev-sbs, we have to create explicit records in DNS to be able to direct the traffic to another cluster.
These records are automatically created based on the ingresses defined in the cluster.
You cannot have a application using the same ingress in both clusters, as the explicit record created will always override the wildcard ingress.