future-vase-71145
02/10/2023, 7:01 PMrewrite name regex (.*).<http://local.example.com|local.example.com> public-nginx-ingress-nginx-controller.default.svc.cluster.local
. (Everything else was kept default.)
It appears from my reading of github issues that modifying the .:53
block in coredns is no longer supported? Any pointers on how to handle this? For now I'm doing this, but it feels... wrong.
kubectl -n kube-system patch configmap coredns --patch-file "coredns-patch.yaml"
kubectl wait --for=condition=Ready=true pod -l k8s-app=kube-dns -n kube-system
kubectl -n kube-system rollout restart deployment coredns
wide-garage-9465
02/14/2023, 8:19 PMfuture-vase-71145
02/14/2023, 8:21 PMcoredns-custom
configmap, but couldn't figure out how to get it working.data:
Corefile: |
.:53 {
errors
health
ready
rewrite name regex (.*).<http://local.example.com|local.example.com> public-nginx-ingress-nginx-controller.default.svc.cluster.local
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
fallthrough in-addr.arpa ip6.arpa
}
hosts /etc/coredns/NodeHosts {
ttl 60
reload 15s
fallthrough
}
prometheus :9153
forward . /etc/resolv.conf
cache 30
loop
reload
loadbalance
}
wide-garage-9465
02/14/2023, 8:26 PMfuture-vase-71145
02/14/2023, 8:27 PMwide-garage-9465
02/14/2023, 8:29 PMfuture-vase-71145
02/14/2023, 8:32 PMapiVersion: v1
kind: ConfigMap
metadata:
name: coredns-custom
namespace: kube-system
data:
example.server: |
.<http://example.com|example.com> {
rewrite name regex (.*).<http://local.example.com|local.example.com> public-nginx-ingress-nginx-controller.default.svc.cluster.local
}
wide-garage-9465
02/14/2023, 8:33 PMfuture-vase-71145
02/14/2023, 8:33 PMwide-garage-9465
02/14/2023, 8:33 PMfuture-vase-71145
02/14/2023, 10:05 PMimage
to an old version. 🤦
I removed that and I'm letting k3d set the image now. With that in place this works:
apiVersion: v1
kind: ConfigMap
metadata:
name: coredns-custom
namespace: kube-system
data:
local.server: |
<http://local.example.com|local.example.com> {
rewrite name regex (.*).<http://local.example.com|local.example.com> public-nginx-ingress-nginx-controller.default.svc.cluster.local
kubernetes cluster.local in-addr.arpa ip6.arpa {
pods insecure
fallthrough in-addr.arpa ip6.arpa
}
}
wide-garage-9465
02/15/2023, 6:19 AM