Merge pull request #35085 from thaJeztah/update-portconfig-swagger

Add PortConfig.PublishMode to API documentation
This commit is contained in:
Yong Tang 2017-10-05 11:15:17 -07:00 committed by GitHub
commit f0e393bd0a

View file

@ -3042,6 +3042,24 @@ definitions:
PublishedPort: PublishedPort:
description: "The port on the swarm hosts." description: "The port on the swarm hosts."
type: "integer" type: "integer"
PublishMode:
description: |
The mode in which port is published.
<p><br /></p>
- "ingress" makes the target port accessible on on every node,
regardless of whether there is a task for the service running on
that node or not.
- "host" bypasses the routing mesh and publish the port directly on
the swarm node where that service is running.
type: "string"
enum:
- "ingress"
- "host"
default: "ingress"
example: "ingress"
EndpointSpec: EndpointSpec:
description: "Properties that can be configured to access and load balance a service." description: "Properties that can be configured to access and load balance a service."