@@ -29,6 +29,9 @@ metadata:
2929 {{- end }}
3030 {{- if $redirect_https }}
3131 ingress.kubernetes.io/ssl-redirect : {{ $redirect_https | quote }}
32+ {{- if eq $ingress.type "azure/application-gateway" }}
33+ appgw.ingress.kubernetes.io/ssl-redirect : {{ $redirect_https | quote }}
34+ {{- end }}
3235 {{- end }}
3336
3437 {{- if eq $ingress.type "gce" }}
@@ -37,7 +40,11 @@ metadata:
3740 {{- if $ingress.staticIpAddressName }}
3841 kubernetes.io/ingress.global-static-ip-name : {{ $ingress.staticIpAddressName | quote }}
3942 {{- end }}
40-
43+
44+ {{- if eq $ingress.type "azure/application-gateway" }}
45+ cert-manager.io/cluster-issuer : letsencrypt
46+ {{- end }}
47+
4148 {{- if $ingress.extraAnnotations }}
4249 {{- $ingress.extraAnnotations | toYaml | nindent 4 }}
4350 {{- end }}
@@ -154,6 +161,9 @@ metadata:
154161 {{- end }}
155162 {{- if $redirect_https }}
156163 ingress.kubernetes.io/ssl-redirect : {{ $redirect_https | quote }}
164+ {{- if eq $ingress.type "azure/application-gateway" }}
165+ appgw.ingress.kubernetes.io/ssl-redirect : {{ $redirect_https | quote }}
166+ {{- end }}
157167 {{- end }}
158168
159169 {{- if eq $ingress.type "gce" }}
@@ -163,6 +173,10 @@ metadata:
163173 kubernetes.io/ingress.global-static-ip-name : {{ $ingress.staticIpAddressName | quote }}
164174 {{- end }}
165175
176+ {{- if eq $ingress.type "azure/application-gateway" }}
177+ cert-manager.io/cluster-issuer : letsencrypt
178+ {{- end }}
179+
166180 {{- if $ingress.extraAnnotations }}
167181 {{- $ingress.extraAnnotations | toYaml | nindent 4 }}
168182 {{- end }}
0 commit comments