Skip to content

Commit

Permalink
Merge pull request #2122 from cybertron/bm-forward-seq
Browse files Browse the repository at this point in the history
Bug 1882209: baremetal & friends: Set coredns forward policy to sequential
  • Loading branch information
openshift-merge-robot committed Jan 21, 2021
2 parents 40d8e4f + 0d7e44e commit 2c59140
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
4 changes: 3 additions & 1 deletion manifests/on-prem/coredns-corefile.tmpl
Expand Up @@ -2,7 +2,9 @@
errors
health :18080
mdns {{ .ControllerConfig.DNS.Spec.BaseDomain }} {{`{{.Cluster.MasterAmount}}`}} {{`{{.Cluster.Name}}`}} {{`{{.NonVirtualIP}}`}}
forward . {{`{{- range $upstream := .DNSUpstreams}} {{$upstream}}{{- end}}`}}
forward . {{`{{- range $upstream := .DNSUpstreams}} {{$upstream}}{{- end}}`}} {
policy sequential
}
cache 30
reload
template IN {{`{{ .Cluster.IngressVIPRecordType }}`}} {{ .ControllerConfig.DNS.Spec.BaseDomain }} {
Expand Down
4 changes: 3 additions & 1 deletion pkg/operator/assets/bindata.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion templates/common/on-prem/files/coredns-corefile.yaml
Expand Up @@ -6,7 +6,9 @@ contents:
errors
health :18080
mdns {{ .DNS.Spec.BaseDomain }} 0 {{`{{.Cluster.Name}}`}} {{`{{.NonVirtualIP}}`}}
forward . {{`{{- range $upstream := .DNSUpstreams}} {{$upstream}}{{- end}}`}}
forward . {{`{{- range $upstream := .DNSUpstreams}} {{$upstream}}{{- end}}`}} {
policy sequential
}
cache 30
reload
template IN {{`{{ .Cluster.IngressVIPRecordType }}`}} {{ .DNS.Spec.BaseDomain }} {
Expand Down
4 changes: 3 additions & 1 deletion templates/common/ovirt/files/coredns-corefile.yaml
Expand Up @@ -6,7 +6,9 @@ contents:
errors
health :18080
mdns {{ .DNS.Spec.BaseDomain }} 0 {{`{{.Cluster.Name}}`}} {{`{{.NonVirtualIP}}`}}
forward . {{`{{- range $upstream := .DNSUpstreams}} {{$upstream}}{{- end}}`}}
forward . {{`{{- range $upstream := .DNSUpstreams}} {{$upstream}}{{- end}}`}} {
policy sequential
}
cache 30
reload
file /etc/coredns/node-dns-db {{ .DNS.Spec.BaseDomain }}
Expand Down
4 changes: 3 additions & 1 deletion templates/common/vsphere/files/coredns-corefile.yaml
Expand Up @@ -7,7 +7,9 @@ contents:
errors
health :18080
mdns {{ .DNS.Spec.BaseDomain }} 0 {{`{{.Cluster.Name}}`}} {{`{{.NonVirtualIP}}`}}
forward . {{`{{- range $upstream := .DNSUpstreams}} {{$upstream}}{{- end}}`}}
forward . {{`{{- range $upstream := .DNSUpstreams}} {{$upstream}}{{- end}}`}} {
policy sequential
}
cache 30
reload
hosts {
Expand Down

0 comments on commit 2c59140

Please sign in to comment.