Skip to content

Commit

Permalink
Set annotation nginx.ingress.kubernetes.io/ssl-redirect in accordan…
Browse files Browse the repository at this point in the history
…ce with USE_TLS variable
  • Loading branch information
rconway committed Sep 28, 2023
1 parent 1e36a5b commit ef21ed6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions deploy/cluster/minio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ ingress:
ingressClassName: nginx
annotations:
cert-manager.io/cluster-issuer: "${TLS_CLUSTER_ISSUER}"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "${USE_TLS}"
nginx.ingress.kubernetes.io/proxy-body-size: "0"
nginx.ingress.kubernetes.io/proxy-read-timeout: '600'
path: /
Expand All @@ -42,7 +42,7 @@ consoleIngress:
ingressClassName: nginx
annotations:
cert-manager.io/cluster-issuer: "${TLS_CLUSTER_ISSUER}"
nginx.ingress.kubernetes.io/ssl-redirect: "true"
nginx.ingress.kubernetes.io/ssl-redirect: "${USE_TLS}"
nginx.ingress.kubernetes.io/proxy-body-size: "0"
nginx.ingress.kubernetes.io/proxy-read-timeout: '600'
path: /
Expand Down
4 changes: 2 additions & 2 deletions deploy/eoepca/ades.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ ingress:
enabled: ${OPEN_INGRESS}
annotations:
kubernetes.io/ingress.class: nginx
ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/ssl-redirect: "false"
ingress.kubernetes.io/ssl-redirect: "${USE_TLS}"
nginx.ingress.kubernetes.io/ssl-redirect: "${USE_TLS}"
cert-manager.io/cluster-issuer: ${TLS_CLUSTER_ISSUER}
hosts:
- host: ${name}.${domain}
Expand Down
4 changes: 2 additions & 2 deletions deploy/eoepca/dummy-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ ingress:
enabled: ${OPEN_INGRESS}
annotations:
kubernetes.io/ingress.class: nginx
ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/ssl-redirect: "false"
ingress.kubernetes.io/ssl-redirect: "${USE_TLS}"
nginx.ingress.kubernetes.io/ssl-redirect: "${USE_TLS}"
cert-manager.io/cluster-issuer: ${TLS_CLUSTER_ISSUER}
hosts:
- host: ${name}.${domain}
Expand Down
4 changes: 2 additions & 2 deletions deploy/eoepca/login-service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ nginx:
enabled: true
annotations:
# kubernetes.io/ingress.class: nginx
# ingress.kubernetes.io/ssl-redirect: "false"
# nginx.ingress.kubernetes.io/ssl-redirect: "false"
# ingress.kubernetes.io/ssl-redirect: "${USE_TLS}"
# nginx.ingress.kubernetes.io/ssl-redirect: "${USE_TLS}"
cert-manager.io/cluster-issuer: ${TLS_CLUSTER_ISSUER}
path: /
hosts:
Expand Down

0 comments on commit ef21ed6

Please sign in to comment.