Cloud API Overview > @adpt/cloud > k8s > ContainerPort
k8s.ContainerPort interface
Signature:
export interface ContainerPort
Properties
Property | Type | Description |
---|---|---|
containerPort | number | Number of port to expose on the pod's IP address. |
hostIP | string | What host IP to bind the external port to. |
hostPort | number | Number of port to expose on the host. |
name | string | A unique-within-pod name for the container |
protocol | string | Protocol for port. Must be UDP or TCP. Defaults to "TCP". |