Skip to content

"Communicating with Daemon Pods" section should suggest internalTrafficPolicy: Local #50032

Open
@glasser

Description

@glasser

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugCategorizes issue or PR as related to a bug.language/enIssues or PRs related to English languageneeds-triageIndicates an issue or PR lacks a `triage/foo` label and requires one.sig/docsCategorizes an issue or PR as relevant to SIG Docs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions