Skip to content
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
3 changes: 3 additions & 0 deletions manifests/cloud-platform-alt-dns/coredns-corefile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,7 @@
match ^api-int.{{ .ControllerConfig.DNS.Spec.BaseDomain }}
fallthrough
}
hosts {
fallthrough
}
}
4 changes: 4 additions & 0 deletions manifests/cloud-platform-alt-dns/coredns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ spec:
- name: manifests
mountPath: "/opt/openshift/manifests"
mountPropagation: HostToContainer
- name: hosts-dir
mountPath: "/etc/hosts"
imagePullPolicy: IfNotPresent
containers:
- name: coredns
Expand All @@ -71,6 +73,8 @@ spec:
volumeMounts:
- name: conf-dir
mountPath: "/etc/coredns"
- name: hosts-dir
mountPath: "/etc/hosts"
livenessProbe:
httpGet:
path: /health
Expand Down
11 changes: 11 additions & 0 deletions templates/common/cloud-platform-alt-dns/files/coredns.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ contents:
- name: nm-resolv
hostPath:
path: "/var/run/NetworkManager"
- name: hosts-dir
hostPath:
path: "/etc/hosts"
initContainers:
- name: render-config-coredns
image: {{ .Images.baremetalRuntimeCfgImage }}
Expand Down Expand Up @@ -59,6 +62,9 @@ contents:
- name: conf-dir
mountPath: "/etc/coredns"
mountPropagation: HostToContainer
- name: hosts-dir
mountPath: "/etc/hosts"
mountPropagation: HostToContainer
imagePullPolicy: IfNotPresent
terminationMessagePolicy: FallbackToLogsOnError
containers:
Expand All @@ -74,6 +80,8 @@ contents:
volumeMounts:
- name: conf-dir
mountPath: "/etc/coredns"
- name: hosts-dir
mountPath: "/etc/hosts"
livenessProbe:
httpGet:
path: /health
Expand Down Expand Up @@ -120,6 +128,9 @@ contents:
- name: nm-resolv
mountPath: "/var/run/NetworkManager"
mountPropagation: HostToContainer
- name: hosts-dir
mountPath: "/etc/hosts"
mountPropagation: HostToContainer
imagePullPolicy: IfNotPresent
hostNetwork: true
tolerations:
Expand Down