diff --git a/templates/common/on-prem/files/coredns-corefile.yaml b/templates/common/on-prem/files/coredns-corefile.yaml index 58fb6a6b4b..979d25b69b 100644 --- a/templates/common/on-prem/files/coredns-corefile.yaml +++ b/templates/common/on-prem/files/coredns-corefile.yaml @@ -27,13 +27,4 @@ contents: match api.{{ .DNS.Spec.BaseDomain }} fallthrough } - template IN {{`{{ .Cluster.APIVIPRecordType }}`}} {{ .DNS.Spec.BaseDomain }} { - match api-int.{{ .DNS.Spec.BaseDomain }} - answer "{{`{{"{{ .Name }}"}}`}} 60 in {{`{{"{{ .Type }}"}}`}} {{ onPremPlatformAPIServerInternalIP . }}" - fallthrough - } - template IN {{`{{ .Cluster.APIVIPEmptyType }}`}} {{ .DNS.Spec.BaseDomain }} { - match api-int.{{ .DNS.Spec.BaseDomain }} - fallthrough - } } diff --git a/templates/common/on-prem/files/etc-hosts.yaml b/templates/common/on-prem/files/etc-hosts.yaml new file mode 100644 index 0000000000..b295dde289 --- /dev/null +++ b/templates/common/on-prem/files/etc-hosts.yaml @@ -0,0 +1,7 @@ +mode: 0644 +path: "/etc/hosts" +contents: + inline: | + 127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4 + ::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 + {{ onPremPlatformAPIServerInternalIP . }} api-int api-int.ostest.test.metalkube.org