loud-eve-73457
02/17/2023, 10:25 AMastonishing-rose-49461
03/03/2023, 4:54 AMloud-eve-73457
03/03/2023, 5:57 AMapiVersion: <http://helm.cattle.io/v1|helm.cattle.io/v1>
kind: HelmChartConfig
metadata:
name: rke2-coredns
namespace: kube-system
spec:
valuesContent: |-
zoneFiles:
- filename: xxx.tech.conf
domain: xxx.tech
contents: |
xxx.tech:53 {
errors
cache 30
forward . 10.0.254.1
}
extraConfig:
import:
parameters: /etc/coredns/xxx.tech.conf
kubectl -n kube-system get configmap rke2-coredns-rke2-coredns -o go-template={{.data.Corefile}}
---
import /etc/coredns/xxx.tech.conf
.:53 {
errors
health {
lameduck 5s
}
ready
kubernetes xxx.local xxx.local cluster.local in-addr.arpa ip6.arpa {
pods insecure
fallthrough in-addr.arpa ip6.arpa
ttl 30
}
prometheus 0.0.0.0:9153
forward . /etc/resolv.conf
cache 30
loop
reload
loadbalance