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