Description
This is a Bug Report
Problem:
In https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/#communicating-with-daemon-pods several approaches are suggested for communicating with DaemonSet pods. The last approach is
Service: Create a service with the same Pod selector, and use the service to reach a daemon on a random node. (No way to reach specific node.)
However, I think there is a way to reach a specific node, if the node you're trying to reach is "the node we're connecting from": using internalTrafficPolicy: Local
. I think it would be reasonable to link that page from here.
Proposed Solution:
Replace that bullet point with something like:
- Service: Create a service with the same Pod selector, and use the service to reach a daemon on a random node. If you only need to connect to the pods from within your cluster and you want to connect to the pod on the current node, you can use Service Internal Traffic Policy.
I am happy to open a PR for this if folks think it's a good improvement.
Page to Update:
https://kubernetes.io/docs/concepts/workloads/controllers/daemonset/#communicating-with-daemon-pods