Skip to content

Commit

Permalink
Add the missing parameters: answer auto (#403)
Browse files Browse the repository at this point in the history
Signed-off-by: cmoulliard <[email protected]>
  • Loading branch information
cmoulliard authored Oct 10, 2024
1 parent 12229d4 commit 5a13582
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pkg/build/templates/coredns/cm-coredns-default.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ metadata:
namespace: kube-system
data:
default.conf: |
# subdomain names resolves to ingress IP. e.g. gitea.cnoe.localtest.me becomes ingress-nginx-controller.ingress-nginx.svc.cluster.local
# Goal: Rewrite rules for in-cluster access to a service: gitea, argocd, etc using the same FQDN as for external access

# subdomain names e.g. gitea.cnoe.localtest.me resolves to the IP address of the kubernetes ingress service and then will become ingress-nginx-controller.ingress-nginx.svc.cluster.local
rewrite stop {
name regex (.*).{{ .Host }} ingress-nginx-controller.ingress-nginx.svc.cluster.local
name regex (.*).{{ .Host }} ingress-nginx-controller.ingress-nginx.svc.cluster.local answer auto
}
# host name resolves to ingress IP

# host name resolves to the IP address of the kubernetes ingress service
rewrite name exact {{ .Host }} ingress-nginx-controller.ingress-nginx.svc.cluster.local

0 comments on commit 5a13582

Please sign in to comment.