Skip to content

Commit 6092d1f

Browse files
mikehelmickknative-prow-robot
authored andcommitted
Update documentation for httpsRedirect to include the redirect in the http section and not the https section. (#1463)
1 parent 97b3c20 commit 6092d1f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/serving/using-cert-manager-on-gcp.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,17 @@ spec:
259259
protocol: HTTP
260260
hosts:
261261
- "*"
262+
tls:
263+
# Sends 301 redirect for all http requests.
264+
# Omit to allow http and https.
265+
httpsRedirect: true
262266
- port:
263267
number: 443
264268
name: https
265269
protocol: HTTPS
266270
hosts:
267271
- "*"
268272
tls:
269-
httpsRedirect: true # sends 301 redirect for http requests.
270273
mode: SIMPLE
271274
privateKey: /etc/istio/ingressgateway-certs/tls.key
272275
serverCertificate: /etc/istio/ingressgateway-certs/tls.crt

0 commit comments

Comments
 (0)