blake / external-mdns

A service to advertise records for Kubernetes resources on a LAN over multicast DNS.
Apache License 2.0
59 stars 9 forks source link

API server access when using `hostNetwork: true`? #7

Open PAI5REECHO opened 1 year ago

PAI5REECHO commented 1 year ago

How do you configure the external-mdns Pod to be able to reach the K8s API server when running the deployment with hostNetwork: true? https://github.com/blake/external-mdns/blob/b68bdfb1d431e12ce047d285e8cd062a26a962f7/README.md?plain=1#L111

...
reflector.go:138] pkg/mod/k8s.io/client-go@v0.22.2/tools/cache/reflector.go:167: Failed to watch *v1.Service: failed to list *v1.Service: Get "https://10.43.0.1:443/api/v1/services?limit=500&resourceVersion=0": dial tcp 10.43.0.1:443: i/o timeout