addIngress

Method
📦 Aspire.Hosting.Kubernetes v17.0.0
interface KubernetesEnvironmentResource {
// ... omitted for brevity
addIngress(name: string): KubernetesIngressResource;
}

Signature

methodaddIngressbuilder
Adds a Kubernetes Ingress resource to the application model as a child of the specified Kubernetes environment. The ingress generates a `networking.k8s.io/v1 Ingress` resource in the Helm chart output at publish time.
addIngress(name: string): KubernetesIngressResource
namestringThe name of the ingress resource. This is used as the Kubernetes resource name.
KubernetesIngressResource

Applies to

This method applies to the following types: