K3sClusterResource.AddServiceEndpoint
Method
type K3sClusterResource interface { // ... omitted for brevity AddServiceEndpoint( name string, serviceName string, servicePort float64, options ...*AddServiceEndpointOptions, ) K3sServiceEndpointResource}Signature
method
AddServiceEndpoint builderExposes a Kubernetes Service from the cluster as an Aspire endpoint resource.
AddServiceEndpoint( name string, serviceName string, servicePort float64, options ...*AddServiceEndpointOptions,) K3sServiceEndpointResourceParameters
namestringThe Aspire resource name for this endpoint.serviceName stringThe name of the Kubernetes Service to forward, as it appears in kubectl get svc.servicePort float64The port number declared on the Kubernetes Service (the port field, not targetPort ). Must be in the range 1–65535.options...*AddServiceEndpointOptions Optional settings, described under Options.Options
Optional parameters are passed in a trailing options ...*AddServiceEndpointOptions argument.
Namespace*stringThe Kubernetes namespace that contains the Service. Defaults to default.Scheme*stringThe URL scheme (http or https) for the injected environment variable. When null (the default), the scheme is inferred from the port: ports 443 and 8443 use https, all others use http.Returns
K3sServiceEndpointResource A builder for the K3s.
Returns a handle; failures surface later via Err().
Defined on
This method is defined on the following type: