Skip to content

Commit e2cf706

Browse files
authored
Remove annotations and added ingressClassName spec (#1576)
Tested with K8S version 1.26.6 on AKS, without ingressClassName spec pointing to IngressClass the AGIC does not seem to configure anything on ApplicationGateway. The default IngressClass is azure-application-gateway from kubectl get IngressClass command The annotations are removed otherwise ingressClassName spec cannot be used.
1 parent 91fa7b2 commit e2cf706

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/examples/aspnetapp.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ apiVersion: networking.k8s.io/v1
3232
kind: Ingress
3333
metadata:
3434
name: aspnetapp
35-
annotations:
36-
kubernetes.io/ingress.class: azure/application-gateway
35+
# annotations:
36+
# kubernetes.io/ingress.class: azure/application-gateway
3737
spec:
38+
ingressClassName: azure-application-gateway
3839
rules:
3940
- http:
4041
paths:

0 commit comments

Comments
 (0)