external-mdns icon indicating copy to clipboard operation
external-mdns copied to clipboard

API server access when using `hostNetwork: true`?

Open PAI5REECHO opened this issue 2 years ago • 1 comments

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/[email protected]/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

PAI5REECHO avatar Apr 23 '23 17:04 PAI5REECHO

@PAI5REECHO This program has always required the use of hostNetwork: true to function. I'm not aware of any additional configurations that are needed in order to allow the app to access the Kubernetes API server.

Can you provide a bit more detail about your setup such as the Kubernetes distribution, networking config / CNI, etc so that folks can better assist?

blake avatar Feb 22 '25 08:02 blake