ContainerPortV1 Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents the configuration for a container port in Kubernetes.
[YamlDotNet.Serialization.YamlSerializable]
public sealed class ContainerPortV1
[<YamlDotNet.Serialization.YamlSerializable>]
type ContainerPortV1 = class
Public NotInheritable Class ContainerPortV1
- Inheritance
-
ContainerPortV1
- Attributes
-
YamlDotNet.Serialization.YamlSerializableAttribute
Remarks
A container port specifies the port mappings and settings used by containers to expose services to the host machine or other containers. This includes the container's port, optional host port, IP bindings, protocol, and an optional name for the port.
Constructors
ContainerPortV1() |
Properties
ContainerPort |
Gets or sets the port number on the container where the application is running. |
HostIp |
Represents the host IP address to which the port is bound. |
HostPort |
Gets or sets the port number on the host machine that is mapped to the container's port. This enables external access to the container's service. |
Name |
Gets or sets the name of the container port. This property serves as an identifier for the port and can be used for mapping or referencing purposes in the Kubernetes configuration. |
Protocol |
Gets or sets the protocol used by the port. Common protocols include "TCP" and "UDP". |