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

Apply CoreDNS patch by default #377

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions deploy/templates/network/coredns-patch.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{{ if .Values.acs.patchCoreDNS }}
apiVersion: v1
kind: ConfigMap
metadata:
name: acs-rewrite-config
namespace: {{ .Release.Namespace }}
data:
rewrite-config: |
rewrite stop name regex .*\.{{ .Values.acs.baseUrl | regexReplaceAll "\\." "\\\\." }} {{ .Release.Name }}-traefik.{{ .Release.Namespace }}.svc.cluster.local answer auto
{{ end }}
4 changes: 4 additions & 0 deletions deploy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ acs:
organisation: AMRC
# -- The base URL that services will be served from
baseUrl: factoryplus.myorganisation.com
# -- Whether or not to create a coredns patch ConfigMap to redirect
# baseUrl requests from inside the cluster to the internal service of
# Traefik
patchCoreDNS: true
# -- Whether or not services should be served over HTTPS
secure: true
letsEncrypt:
Expand Down
Loading