Add CoreDNS host port
- Add CoreDNS support a host listener for DNS resolution as needed by MAAS Change-Id: Ieba09384320f9841433a9b773478bc703afd62dd
This commit is contained in:
parent
111f7b11c9
commit
833539a250
|
@ -25,6 +25,44 @@ metadata:
|
||||||
path: .images.kubernetes.coredns
|
path: .images.kubernetes.coredns
|
||||||
dest:
|
dest:
|
||||||
path: .values.images
|
path: .values.images
|
||||||
|
|
||||||
|
# Zones
|
||||||
|
- src:
|
||||||
|
schema: pegleg/CommonAddresses/v1
|
||||||
|
name: common-addresses
|
||||||
|
path: .dns.cluster_domain
|
||||||
|
dest:
|
||||||
|
path: .values.conf.coredns.corefile
|
||||||
|
pattern: 'CLUSTER_DOMAIN'
|
||||||
|
- src:
|
||||||
|
schema: pegleg/CommonAddresses/v1
|
||||||
|
name: common-addresses
|
||||||
|
path: .kubernetes.service_cidr
|
||||||
|
dest:
|
||||||
|
path: .values.conf.coredns.corefile
|
||||||
|
pattern: 'SERVICE_CIDR'
|
||||||
|
- src:
|
||||||
|
schema: pegleg/CommonAddresses/v1
|
||||||
|
name: common-addresses
|
||||||
|
path: .kubernetes.pod_cidr
|
||||||
|
dest:
|
||||||
|
path: .values.conf.coredns.corefile
|
||||||
|
pattern: 'POD_CIDR'
|
||||||
|
|
||||||
|
- src:
|
||||||
|
schema: pegleg/CommonAddresses/v1
|
||||||
|
name: common-addresses
|
||||||
|
path: .dns.upstream_servers[0]
|
||||||
|
dest:
|
||||||
|
path: .values.conf.coredns.corefile
|
||||||
|
pattern: 'UPSTREAM1'
|
||||||
|
- src:
|
||||||
|
schema: pegleg/CommonAddresses/v1
|
||||||
|
name: common-addresses
|
||||||
|
path: .dns.upstream_servers[1]
|
||||||
|
dest:
|
||||||
|
path: .values.conf.coredns.corefile
|
||||||
|
pattern: 'UPSTREAM2'
|
||||||
data:
|
data:
|
||||||
chart_name: coredns
|
chart_name: coredns
|
||||||
release: coredns
|
release: coredns
|
||||||
|
@ -34,6 +72,26 @@ data:
|
||||||
timeout: 600
|
timeout: 600
|
||||||
upgrade:
|
upgrade:
|
||||||
no_hooks: true
|
no_hooks: true
|
||||||
|
values:
|
||||||
|
conf:
|
||||||
|
coredns:
|
||||||
|
# TODO(alanmeadows) this needs to be adjusted to use substition
|
||||||
|
corefile: |
|
||||||
|
.:53 {
|
||||||
|
errors
|
||||||
|
health
|
||||||
|
autopath @kubernetes
|
||||||
|
kubernetes CLUSTER_DOMAIN SERVICE_CIDR POD_CIDR {
|
||||||
|
pods insecure
|
||||||
|
fallthrough in-addr.arpa ip6.arpa
|
||||||
|
upstream UPSTREAM1
|
||||||
|
upstream UPSTREAM2
|
||||||
|
}
|
||||||
|
prometheus :9153
|
||||||
|
proxy . UPSTREAM1
|
||||||
|
proxy . UPSTREAM2
|
||||||
|
cache 30
|
||||||
|
}
|
||||||
dependencies:
|
dependencies:
|
||||||
- coredns-htk
|
- coredns-htk
|
||||||
---
|
---
|
||||||
|
|
Loading…
Reference in New Issue