Skip to content
Docs Try Aspire
Docs Try

KubernetesIngressResource.withIngressAnnotation

Method
📦 Aspire.Hosting.Kubernetes v13.4.0-preview.1.26281.18
interface KubernetesIngressResource {
// ... omitted for brevity
withIngressAnnotation(
key: string,
value: string): KubernetesIngressResource;
}

Signature

method withIngressAnnotation builder
Adds a Kubernetes metadata annotation to the generated Ingress resource. These are key-value pairs in the `metadata.annotations` field of the K8S Ingress, commonly used to configure ingress controller-specific behavior.
withIngressAnnotation(
key: string,
value: string): KubernetesIngressResource
key string
value string
KubernetesIngressResource

Defined on

This method is defined on the following type: