diff --git a/deployment/helm/templates/certs/letsencrypt.yaml b/deployment/helm/templates/certs/letsencrypt.yaml index 115a8331d..529926ffc 100644 --- a/deployment/helm/templates/certs/letsencrypt.yaml +++ b/deployment/helm/templates/certs/letsencrypt.yaml @@ -1,6 +1,6 @@ {{- if and (not .Values.local) (not (not .Values.tls)) }} -apiVersion: cert-manager.io/v1alpha2 -kind: ClusterIssuer +apiVersion: cert-manager.io/v1 +kind: Issuer metadata: name: {{ printf "%s-%s" "letsencrypt" .Values.namespace }} spec: @@ -12,5 +12,5 @@ spec: solvers: - http01: ingress: - ingressName: geppetto-meta-ingress + class: nginx {{ end }} diff --git a/deployment/helm/templates/ingress.yaml b/deployment/helm/templates/ingress.yaml index d9cb06fe5..fb356aa77 100644 --- a/deployment/helm/templates/ingress.yaml +++ b/deployment/helm/templates/ingress.yaml @@ -4,24 +4,30 @@ http: paths: - path: /(.*) + pathType: ImplementationSpecific backend: - serviceName: {{ .app.harness.service.name }}{{- if (and .app.harness.secured $secured_gatekeepers) }}-gk{{- end }} - servicePort: {{- if (and .app.harness.secured $secured_gatekeepers) }} 8080 {{- else }} {{ .app.harness.service.port | default 80 }}{{- end }} + service: + name: {{ .app.harness.service.name }}{{- if (and .app.harness.secured $secured_gatekeepers) }}-gk{{- end }} + port: + number: {{- if (and .app.harness.secured $secured_gatekeepers) }} 8080 {{- else }} {{ .app.harness.service.port | default 80 }}{{- end }} {{- end }} {{- define "deploy_utils.ingress.service" }} {{ $domain := .root.Values.domain }} {{ $secured_gatekeepers := and .root.Values.secured_gatekeepers }} {{ $app := get .root.Values.apps (print .service_name | snakecase) }} - path: /proxy/{{ $app.harness.service.name }}/(.*) + pathType: ImplementationSpecific backend: - serviceName: {{ $app.harness.service.name }}{{- if (and $app.harness.secured $secured_gatekeepers) }}-gk{{- end }} - servicePort: {{- if (and $app.harness.secured $secured_gatekeepers) }} 8080 {{- else }} {{ $app.harness.service.port | default 80 }}{{- end }} + service: + name: {{ $app.harness.service.name }}{{- if (and $app.harness.secured $secured_gatekeepers) }}-gk{{- end }} + port: + number: {{- if (and $app.harness.secured $secured_gatekeepers) }} 8080 {{- else }} {{ $app.harness.service.port | default 80 }}{{- end }} {{- end }} {{- if .Values.ingress.enabled }} {{ $domain := .Values.domain }} {{ $tls := not (not .Values.tls) }} {{ $mainapp := .Values.mainapp }} -apiVersion: extensions/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: {{ .Values.ingress.name | quote }} @@ -29,7 +35,7 @@ metadata: kubernetes.io/ingress.class: nginx {{- if and (not .Values.local) $tls }} kubernetes.io/tls-acme: 'true' - cert-manager.io/cluster-issuer: {{ printf "%s-%s" "letsencrypt" .Values.namespace }} + cert-manager.io/issuer: {{ printf "%s-%s" "letsencrypt" .Values.namespace }} {{- end }} nginx.ingress.kubernetes.io/ssl-redirect: {{ (and $tls .Values.ingress.ssl_redirect) | quote }} nginx.ingress.kubernetes.io/proxy-body-size: '250m'