Skip to content
DocsTry Aspire
DocsTry

K3sServiceEndpointResource

Handle
📦 CommunityToolkit.Aspire.Hosting.K3s v13.5.0
interface K3sServiceEndpointResource
extends IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithConnectionString,
IResourceWithParent,
K3sClusterResource]],
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringEnvironmentVariable: string;
readonly connectionStringExpression: ReferenceExpression;
hostPort: number;
readonly namespace: string;
readonly parent: K3sClusterResource;
readonly serviceName: string;
readonly servicePort: number;
}

Properties

propertyconnectionStringEnvironmentVariablestringget
The environment variable name used to inject the service URL into dependents (`services__{name}__url`), following the Aspire service-discovery convention.
propertyconnectionStringExpressionReferenceExpressionget
Gets the manifest expression for the service URL. Resolves to `http(s)://localhost:{hostPort}` when the endpoint is ready.
propertyhostPortnumberget · set
Gets the host port bound by the port-forward listener.
propertynamespacestringget
Gets the Kubernetes namespace that contains the Service.
propertyparentK3sClusterResourceget
Gets the Parent property
propertyserviceNamestringget
Gets the name of the Kubernetes Service being forwarded.
propertyservicePortnumberget
Gets the port number declared on the Kubernetes Service.