Port Range
Last updated
Last updated
A port_range stanza defines host to container communications by exposing a range of ports for the container.
Attributes are the properties of a resource that can be used to configure it.
Range range
required
string
The port range to expose, e.g, `8080-8082` would expose the ports `8080`, `8081`, `8082`.
EnableHost enable_host
bool
Protocol protocol
string
The protocol to use when exposing the port, can be "tcp", or "udp".
These attributes are computed when the config is parsed and applied, and are therefor only known at parsetime or runtime.
Meta ID meta.id
string
The full ID of the resource e.g. `resource.type.name`. This is computed from the full resource path:
Meta Type meta.type
string
The type of the resource. This taken from the type label of the resource definition.
Meta Name meta.name
string
The name of the resource. This taken from the name label of the resource definition.