Skip to content
Docs Try Aspire

ContainerPortV1

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents the configuration for a container port in Kubernetes.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ContainerPortV1
{
// ...
}
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.