Skip to content
Docs Try Aspire
Docs Try

KubernetesIngressResource

Handle
📦 Aspire.Hosting.Kubernetes v13.3.0-preview.1.26254.5
interface KubernetesIngressResource
extends IResource,
IResourceWithParent,
KubernetesEnvironmentResource]] {
withDefaultBackend(endpoint: EndpointReference): KubernetesIngressResource;
withHostname(hostname: string): KubernetesIngressResource;
withIngressAnnotation(
key: string,
value: string): KubernetesIngressResource;
withIngressAnnotationParam(
key: string,
value: ParameterResource): KubernetesIngressResource;
withIngressClass(className: string): KubernetesIngressResource;
withIngressClassParam(className: ParameterResource): KubernetesIngressResource;
withIngressHostnameParam(hostname: ParameterResource): KubernetesIngressResource;
withIngressHostRoute(
host: string,
path: string,
endpoint: EndpointReference,
pathType?: IngressPathType): KubernetesIngressResource;
withIngressPathRoute(
path: string,
endpoint: EndpointReference,
pathType?: IngressPathType): KubernetesIngressResource;
withIngressTlsAuto(): KubernetesIngressResource;
withIngressTlsParam(secretName: ParameterResource): KubernetesIngressResource;
withTls(secretName: string): KubernetesIngressResource;
}

Methods

method withDefaultBackend builder
Sets the default backend for a Kubernetes Ingress
withDefaultBackend(endpoint: EndpointReference): KubernetesIngressResource
endpoint EndpointReference
KubernetesIngressResource
method withHostname builder
Adds a hostname to a Kubernetes Ingress
withHostname(hostname: string): KubernetesIngressResource
hostname string
KubernetesIngressResource
Adds a Kubernetes metadata annotation to a Kubernetes Ingress
withIngressAnnotation(
key: string,
value: string): KubernetesIngressResource
key string
value string
KubernetesIngressResource
Adds a parameterized Kubernetes metadata annotation to an Ingress
withIngressAnnotationParam(
key: string,
value: ParameterResource): KubernetesIngressResource
key string
value ParameterResource
KubernetesIngressResource
method withIngressClass builder
Sets the ingress class for a Kubernetes Ingress
withIngressClass(className: string): KubernetesIngressResource
className string
KubernetesIngressResource
Sets a parameterized ingress class for a Kubernetes Ingress
withIngressClassParam(className: ParameterResource): KubernetesIngressResource
className ParameterResource
KubernetesIngressResource
Adds a parameterized hostname to a Kubernetes Ingress
withIngressHostnameParam(hostname: ParameterResource): KubernetesIngressResource
hostname ParameterResource
KubernetesIngressResource
method withIngressHostRoute builder
Adds a host-and-path route to a Kubernetes Ingress
withIngressHostRoute(
host: string,
path: string,
endpoint: EndpointReference,
pathType?: IngressPathType): KubernetesIngressResource
host string
path string
endpoint EndpointReference
pathType IngressPathType optional = Prefix
KubernetesIngressResource
method withIngressPathRoute builder
Adds a path-based route to a Kubernetes Ingress
withIngressPathRoute(
path: string,
endpoint: EndpointReference,
pathType?: IngressPathType): KubernetesIngressResource
path string
endpoint EndpointReference
pathType IngressPathType optional = Prefix
KubernetesIngressResource
method withIngressTlsAuto builder
Configures TLS for a Kubernetes Ingress with an auto-generated secret
withIngressTlsAuto(): KubernetesIngressResource
KubernetesIngressResource
method withIngressTlsParam builder
Configures TLS for a Kubernetes Ingress with a parameterized secret
withIngressTlsParam(secretName: ParameterResource): KubernetesIngressResource
secretName ParameterResource
KubernetesIngressResource
method withTls builder
Configures TLS for a Kubernetes Ingress using a K8S secret
withTls(secretName: string): KubernetesIngressResource
secretName string
KubernetesIngressResource