I have two pods running in separate daemonsets. Pod in "Daemonset A" needs to reach pod in "Daemonset B", and when doing so it's important that it reaches the pod running on the same node.
The container in pods in "Daemonset B" publishes its port using hostPort. If I ssh to a node, I can curl both localhost: and :. However, from pod A I only get a timeout when trying to curl :.
If I configue a NodePort service for Daemonset B, I can reach the nodeport both directly from within the host, and from other pods. However, I'm not guaranteed to be hitting a "Daemonset B" endpoint on the same node, so this won't work.
I'm using Flannel CNI networking.
Any pointers appreciated!