Watch Aspire live streamsDocsTry Aspire

ContainerPortV1

Classsealednet10.0
📦 Aspire.Hosting.Kubernetes v13.6.0-preview.1.26478.8
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.
View all constructors
View all properties