ContainerPortPatch class

ContainerPort represents a network port in a single container.

Constructors

ContainerPortPatch({Input<int>? containerPort, Input<String>? hostIP, Input<int>? hostPort, Input<String>? name, Input<String>? protocol})
Creates a new ContainerPortPatch. containerPort Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536. hostIP What host IP to bind the external port to. hostPort 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. name 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. protocol Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".
const
ContainerPortPatch.fromMap(Map<String, dynamic> map)
factory

Properties

containerPort → Input<int>?
Number of port to expose on the pod's IP address. This must be a valid port number, 0 < x < 65536.
final
hashCode → int
The hash code for this object.
no setterinherited
hostIP → Input<String>?
What host IP to bind the external port to.
final
hostPort → Input<int>?
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.
final
name → Input<String>?
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.
final
protocol → Input<String>?
Protocol for port. Must be UDP, TCP, or SCTP. Defaults to "TCP".
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() → Map<String, dynamic>
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited