From e2952279bfbb90628d1f78aaed42e45d62733214 Mon Sep 17 00:00:00 2001 From: Chris Cheetham Date: Fri, 25 Mar 2022 14:38:49 -0400 Subject: [PATCH] Update ingress --- kubernetes/initializr-service.yaml | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/kubernetes/initializr-service.yaml b/kubernetes/initializr-service.yaml index 6055d32..a7c3324 100644 --- a/kubernetes/initializr-service.yaml +++ b/kubernetes/initializr-service.yaml @@ -48,24 +48,21 @@ metadata: name: #@ data.values.name namespace: #@ data.values.namespace annotations: - kubernetes.io/ingress.class: nginx - nginx.ingress.kubernetes.io/ssl-redirect: "false" - nginx.ingress.kubernetes.io/use-regex: "true" - nginx.ingress.kubernetes.io/rewrite-target: /$1 + cert-manager.io/cluster-issuer: letsencrypt-prod + ingress.kubernetes.io/force-ssl-redirect: "true" + kubernetes.io/ingress.class: contour + kubernetes.io/tls-acme: "true" spec: + tls: + - secretName: initializr-tls + hosts: + - #@ data.values.hostname rules: - host: #@ data.values.hostname http: paths: - - path: /(api) - pathType: ImplementationSpecific - backend: - service: - name: #@ data.values.name - port: - number: #@ int(data.values.service_port) - - path: /(api/.*) - pathType: ImplementationSpecific + - pathType: Prefix + path: /api backend: service: name: #@ data.values.name