Clear up use of hostPort with DaemonSet

Reading through the communication patterns it was not obvious to me that the `hostPort` option is something I have to set myself.

While the **DNS** and **Service** options explicitly say one has to *create a service*.
This commit is contained in:
Robert Günzler
2017-07-04 19:07:06 +02:00
committed by Andrew Chen
parent 06bd423401
commit ce830b2867
@@ -106,7 +106,7 @@ Some possible patterns for communicating with pods in a DaemonSet are:
- **Push**: Pods in the DaemonSet are configured to send updates to another service, such
as a stats database. They do not have clients.
- **NodeIP and Known Port**: Pods in the DaemonSet use a `hostPort`, so that the pods are reachable via the node IPs. Clients know the list of nodes ips somehow, and know the port by convention.
- **NodeIP and Known Port**: Pods in the DaemonSet can use a `hostPort`, so that the pods are reachable via the node IPs. Clients know the list of nodes ips somehow, and know the port by convention.
- **DNS**: Create a [headless service](/docs/user-guide/services/#headless-services) with the same pod selector,
and then discover DaemonSets using the `endpoints` resource or retrieve multiple A records from
DNS.