Skip to content
Docs Try Aspire
Docs Try

KubernetesGatewayResource

Handle
📦 Aspire.Hosting.Kubernetes v13.3.0-preview.1.26254.5
interface KubernetesGatewayResource
extends IResource,
IResourceWithParent,
KubernetesEnvironmentResource]] {
withGatewayAnnotation(
key: string,
value: string): KubernetesGatewayResource;
withGatewayAnnotationParam(
key: string,
value: ParameterResource): KubernetesGatewayResource;
withGatewayClass(className: string): KubernetesGatewayResource;
withGatewayClassParam(className: ParameterResource): KubernetesGatewayResource;
withGatewayHostnameParam(hostname: ParameterResource): KubernetesGatewayResource;
withGatewayHostRoute(
host: string,
path: string,
endpoint: EndpointReference,
pathType?: IngressPathType): KubernetesGatewayResource;
withGatewayPathRoute(
path: string,
endpoint: EndpointReference,
pathType?: IngressPathType): KubernetesGatewayResource;
withGatewayTlsAuto(): KubernetesGatewayResource;
withGatewayTlsParam(secretName: ParameterResource): KubernetesGatewayResource;
withHostname(hostname: string): KubernetesGatewayResource;
withTls(secretName: string): KubernetesGatewayResource;
}

Methods

Adds a Kubernetes metadata annotation to a Gateway
withGatewayAnnotation(
key: string,
value: string): KubernetesGatewayResource
key string
value string
KubernetesGatewayResource
Adds a parameterized Kubernetes metadata annotation to a Gateway
withGatewayAnnotationParam(
key: string,
value: ParameterResource): KubernetesGatewayResource
key string
value ParameterResource
KubernetesGatewayResource
method withGatewayClass builder
Sets the GatewayClass for a Kubernetes Gateway
withGatewayClass(className: string): KubernetesGatewayResource
className string
KubernetesGatewayResource
Sets a parameterized GatewayClass for a Kubernetes Gateway
withGatewayClassParam(className: ParameterResource): KubernetesGatewayResource
className ParameterResource
KubernetesGatewayResource
Adds a parameterized hostname to a Kubernetes Gateway
withGatewayHostnameParam(hostname: ParameterResource): KubernetesGatewayResource
hostname ParameterResource
KubernetesGatewayResource
method withGatewayHostRoute builder
Adds a host-and-path route to a Kubernetes Gateway
withGatewayHostRoute(
host: string,
path: string,
endpoint: EndpointReference,
pathType?: IngressPathType): KubernetesGatewayResource
host string
path string
endpoint EndpointReference
pathType IngressPathType optional = Prefix
KubernetesGatewayResource
method withGatewayPathRoute builder
Adds a path-based route to a Kubernetes Gateway
withGatewayPathRoute(
path: string,
endpoint: EndpointReference,
pathType?: IngressPathType): KubernetesGatewayResource
path string
endpoint EndpointReference
pathType IngressPathType optional = Prefix
KubernetesGatewayResource
method withGatewayTlsAuto builder
Configures TLS on a Kubernetes Gateway with an auto-generated secret
withGatewayTlsAuto(): KubernetesGatewayResource
KubernetesGatewayResource
method withGatewayTlsParam builder
Configures TLS on a Kubernetes Gateway with a parameterized secret
withGatewayTlsParam(secretName: ParameterResource): KubernetesGatewayResource
secretName ParameterResource
KubernetesGatewayResource
method withHostname builder
Adds a hostname to a Kubernetes Gateway
withHostname(hostname: string): KubernetesGatewayResource
hostname string
KubernetesGatewayResource
method withTls builder
Configures TLS on a Kubernetes Gateway listener
withTls(secretName: string): KubernetesGatewayResource
secretName string
KubernetesGatewayResource