Skip to content
DocsTry Aspire
DocsTry

K3sClusterResource.addServiceEndpoint

Method
📦 CommunityToolkit.Aspire.Hosting.K3s v13.5.0
interface K3sClusterResource {
// ... omitted for brevity
addServiceEndpoint(
name: string,
serviceName: string,
servicePort: number,
namespace?: string,
scheme?: string): K3sServiceEndpointResource;
}

Signature

methodaddServiceEndpointbuilder
Exposes a Kubernetes Service from the cluster as an Aspire endpoint resource.
addServiceEndpoint(
name: string,
serviceName: string,
servicePort: number,
namespace?: string,
scheme?: string): K3sServiceEndpointResource
namestring
serviceNamestring
servicePortnumber
namespacestringoptional= default
schemestringoptional
K3sServiceEndpointResource

Defined on

This method is defined on the following type: