K3sServiceEndpointResource Constructors
ClassConstructors1 member
Represents a Kubernetes Service exposed from a k3s cluster as an Aspire endpoint resource.
Constructor(string, string, int, string, K3sClusterResource)Section titled Constructor(string, string, int, string, K3sClusterResource) Represents a Kubernetes Service exposed from a k3s cluster as an Aspire endpoint resource.
public sealed class K3sServiceEndpointResource{ public K3sServiceEndpointResource( string name, string serviceName, int servicePort, string @namespace, K3sClusterResource cluster) { // ... }}Parameters
Remarks
An in-process WebSocket port-forward bridges the cluster service to a host port when the cluster is ready. Dependent resources receive the service URL via the standard Aspire service-discovery environment variable
services__{name}__url: - Host processes receive
http(s)://localhost:{port}. - Containers receive
http(s)://host.docker.internal:{port}.
WaitFor(endpoint) on dependent resources to ensure the port-forward is active before they start.