diff --git a/helm/templates/ingress.yaml b/helm/templates/ingress.yaml index 94d2f2f..714f062 100644 --- a/helm/templates/ingress.yaml +++ b/helm/templates/ingress.yaml @@ -9,13 +9,15 @@ metadata: nginx.ingress.kubernetes.io/rewrite-target: / spec: rules: - - host: {{ .Values.ingress.host }} + {{- range $ingress := .Values.ingress }} + - host: {{ $ingress.host }} http: paths: - backend: service: - name: {{ include "tevling.fullname" . }} + name: {{ include "tevling.fullname" $ }} port: - name: {{ .Values.ingress.backend.port }} + name: {{ $ingress.backend.port }} path: / pathType: Prefix + {{- end }} diff --git a/helm/values.yaml b/helm/values.yaml index e942b6d..1b6a26d 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -13,7 +13,10 @@ service: targetPort: http ingress: - host: tevling.vtek.no +- host: tevling.com + backend: + port: http +- host: tevling.no backend: port: http