mirror of
https://github.com/puppetmaster/typhoon.git
synced 2024-12-27 13:29:33 +01:00
31 lines
629 B
Terraform
31 lines
629 B
Terraform
|
resource "kubernetes_config_map" "coredns" {
|
||
|
metadata {
|
||
|
name = "coredns"
|
||
|
namespace = "kube-system"
|
||
|
}
|
||
|
data = {
|
||
|
"Corefile" = <<-EOF
|
||
|
.:53 {
|
||
|
errors
|
||
|
health {
|
||
|
lameduck 5s
|
||
|
}
|
||
|
ready
|
||
|
log . {
|
||
|
class error
|
||
|
}
|
||
|
kubernetes ${var.cluster_domain_suffix} in-addr.arpa ip6.arpa {
|
||
|
pods insecure
|
||
|
fallthrough in-addr.arpa ip6.arpa
|
||
|
}
|
||
|
prometheus :9153
|
||
|
forward . /etc/resolv.conf
|
||
|
cache 30
|
||
|
loop
|
||
|
reload
|
||
|
loadbalance
|
||
|
}
|
||
|
EOF
|
||
|
}
|
||
|
}
|