K3sServiceEndpointResource

Handle
📦 CommunityToolkit.Aspire.Hosting.K3s v13.6.1

Represents a Kubernetes Service exposed from a k3s cluster as an Aspire endpoint resource.

type K3sServiceEndpointResource interface {
ExpressionValue
Resource
ResourceWithConnectionString
ResourceWithParent
ResourceWithWaitSupport
}

Properties

propertyConnectionStringEnvironmentVariable*stringget
The environment variable name used to inject the service URL into dependents (services__{name}__url), following the Aspire service-discovery convention.
ConnectionStringEnvironmentVariable() (*string, error)
propertyConnectionStringExpression*ReferenceExpressionget
Gets the manifest expression for the service URL. Resolves to http(s)://localhost:{hostPort} when the endpoint is ready.
ConnectionStringExpression() *ReferenceExpression
propertyHostPortfloat64get · set
Gets the host port bound by the port-forward listener.
HostPort() (float64, error)
SetHostPort(value float64) K3sServiceEndpointResource
propertyNamespacestringget
Gets the Kubernetes namespace that contains the Service.
Namespace() (string, error)
propertyParentK3sClusterResourceget
Gets the Parent property
Parent() K3sClusterResource
propertyServiceNamestringget
Gets the name of the Kubernetes Service being forwarded.
ServiceName() (string, error)
propertyServicePortfloat64get
Gets the port number declared on the Kubernetes Service.
ServicePort() (float64, error)