diff --git a/chart/templates/ingress.yaml b/chart/templates/ingress.yaml index b3fbc20..2ad87de 100644 --- a/chart/templates/ingress.yaml +++ b/chart/templates/ingress.yaml @@ -13,6 +13,9 @@ spec: tls: - hosts: - {{ .Values.ingress.hostname }} +{{- range $key, $value := .Values.ingress.extraHosts }} + - {{ . }} +{{- end }} secretName: {{ .Values.ingress.hostname }}-tls {{- end }} {{- if .Values.ingress.className }} @@ -29,4 +32,17 @@ spec: number: {{ .Values.service.port }} path: / pathType: ImplementationSpecific +{{- range $key, $value := .Values.ingress.extraHosts }} + - host: {{ . }} + http: + paths: + - backend: + service: + name: {{ $.Release.Name }} + port: + number: {{ .Values.service.port }} + path: / + pathType: ImplementationSpecific +{{- end }} + {{- end }} diff --git a/chart/values.mmli2.yaml b/chart/values.mmli2.yaml index 76c7cca..80d20a1 100644 --- a/chart/values.mmli2.yaml +++ b/chart/values.mmli2.yaml @@ -44,6 +44,8 @@ service: ingress: enabled: true hostname: "fastapi.cleandb.mmli2.ncsa.illinois.edu" + extraHosts: + - cleandb-api.platform.moleculemaker.org tls: true className: traefik annotations: diff --git a/chart/values.yaml b/chart/values.yaml index 9dbd243..fb1d28c 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -43,7 +43,8 @@ service: # Define whether / how to access this application over the public internet ingress: enabled: true - hostname: "fastapi.cleandb.mmli1.ncsa.illinois.edu" + hostname: "fastapi.cleandb.mmli2.ncsa.illinois.edu" + extraHosts: [] tls: true className: traefik annotations: