apiVersion:helm.cattle.io/v1 kind:HelmChartConfig metadata: name:rke2-coredns namespace:kube-system spec: valuesContent:|- servers: - zones: - zone: example.org port: 53 # If serviceType is nodePort you can specify nodePort here # nodePort: 30053 plugins: - name: hosts configBlock: |- 1.2.3.4 www.aaa.com fallthrough - name: errors # Serves a /health endpoint on :8080, required for livenessProbe - name: health configBlock: |- lameduck 5s # Serves a /ready endpoint on :8181, required for readinessProbe - name: ready # Required to query kubernetes API for data - name: kubernetes parameters: cluster.local in-addr.arpa ip6.arpa configBlock: |- pods insecure fallthrough in-addr.arpa ip6.arpa ttl 30 # Serves a /metrics endpoint on :9153, required for serviceMonitor - name: prometheus parameters: 0.0.0.0:9153 # https://coredns.io/plugins/forward/ - name: forward parameters: . /etc/resolv.conf configBlock: |- # is the number of subsequent failed health checks that are needed before considering an upstream to be down. If 0, the upstream will never be marked as down (nor health checked). Default is 2. max_fails 2 # expire (cached) connections after this time, the default is 10s expire 10s # policy default random, Optional: random|round_robin|sequential ## random is a policy that implements random upstream selection. ## round_robin is a policy that selects hosts based on round robin ordering. ## sequential is a policy that selects hosts based on sequential ordering. policy random - name: cache parameters: 30 - name: loop - name: reload - name: loadbalance - name: log - zones: - zone: . port: 53 # If serviceType is nodePort you can specify nodePort here # nodePort: 30053 plugins: - name: hosts configBlock: |- 1.2.3.4 www.xxx.com fallthrough - name: errors # Serves a /health endpoint on :8080, required for livenessProbe - name: health configBlock: |- lameduck 5s # Serves a /ready endpoint on :8181, required for readinessProbe - name: ready # Required to query kubernetes API for data - name: kubernetes parameters: cluster.local in-addr.arpa ip6.arpa configBlock: |- pods insecure fallthrough in-addr.arpa ip6.arpa ttl 30 # Serves a /metrics endpoint on :9153, required for serviceMonitor - name: prometheus parameters: 0.0.0.0:9153 # https://coredns.io/plugins/forward/ - name: forward parameters: . /etc/resolv.conf configBlock: |- # is the number of subsequent failed health checks that are needed before considering an upstream to be down. If 0, the upstream will never be marked as down (nor health checked). Default is 2. max_fails 2 # expire (cached) connections after this time, the default is 10s expire 10s # policy default random, Optional: random|round_robin|sequential ## random is a policy that implements random upstream selection. ## round_robin is a policy that selects hosts based on round robin ordering. ## sequential is a policy that selects hosts based on sequential ordering. policy random - name: cache parameters: 30 - name: loop - name: reload - name: loadbalance - name: log