Skip to content

Commit 1d1d9c1

Browse files
authored
Merge pull request #432 from wunderio/feature/aks-appgw
Application Gateway adaptions
2 parents 050dc65 + 44c00cb commit 1d1d9c1

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

charts/drupal/templates/drupal-ingress.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)