ContainerPortArgs

data class ContainerPortArgs(val containerPort: Output<Int>, val hostIP: Output<String>? = null, val hostPort: Output<Int>? = null, val name: Output<String>? = null, val protocol: Output<String>? = null) : ConvertibleToJava<ContainerPortArgs>

ContainerPort represents a network port in a single container.

Constructors

Link copied to clipboard
constructor(containerPort: Output<Int>, hostIP: Output<String>? = null, hostPort: Output<Int>? = null, name: Output<String>? = null, protocol: Output<String>? = null)

Properties

Link copied to clipboard
val containerPort: Output<Int>

Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.

Link copied to clipboard
val hostIP: Output<String>? = null

What host IP to bind the external port to.

Link copied to clipboard
val hostPort: Output<Int>? = null

Number of port to expose on the host. If specified, this must be a valid port number, 0 < x < 65536. If HostNetwork is specified, this must match ContainerPort. Most containers do not need this.

Link copied to clipboard
val name: Output<String>? = null

If specified, this must be an IANA_SVC_NAME and unique within the pod. Each named port in a pod must have a unique name. Name for the port that can be referred to by services.

Link copied to clipboard
val protocol: Output<String>? = null

Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".

Functions

Link copied to clipboard
open override fun toJava(): ContainerPortArgs