ori-edge / k8s_gateway

A CoreDNS plugin to resolve all types of external Kubernetes resources
Apache License 2.0
289 stars 61 forks source link

forward plugin is not compatible with k8s-gateway? #235

Open godzilla-s opened 9 months ago

godzilla-s commented 9 months ago

hello:

I found something wrong when confihured forward in Corefile, like:

.:53 {
  errors
  health
  k8s_gateway test.exampe.com {
     resources Ingress
     ttl 30 
     kubeconfig kubeconfig/kube.config
  }
  hosts data/hostsfile {
     fallthrough
  }
  forward . 192.168.1.3:53
  log
  reload
}

and I exec command dig console.test.example.com , it reply nothing, and log shows

[ERROR] plugin/errors: 2 console.test.exampe.com, A: read udp 172.16.10.101:48199 -> 192.168.1.3:53: i/o timeout

when I remove forward . 192.168.1.3:53, and it works

networkop commented 8 months ago

most likely this means that there was no response from 192.168.1.3. can you "dig @192.168.1.3 console.test.example.com" from your local shell?