Skip to content

Commit

Permalink
Merge pull request #13 from moleculemaker/lambert8/new-prod-domain
Browse files Browse the repository at this point in the history
Update domain for production MOLLI frontend
  • Loading branch information
bodom0015 authored Nov 29, 2023
2 parents 9959f31 + fa060b0 commit ee0a67f
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 5 deletions.
1 change: 1 addition & 0 deletions chart/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
charts/
6 changes: 6 additions & 0 deletions chart/Chart.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dependencies:
- name: common
repository: https://charts.bitnami.com/bitnami
version: 2.2.5
digest: sha256:8f229670218d567d03eb34c14c3a1ea3612bd2339058ce67348c5bcc0dd556b5
generated: "2023-11-28T14:43:23.286768-06:00"
4 changes: 4 additions & 0 deletions chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,7 @@ apiVersion: v2
description: "MOLLI Frontend"
name: molli-frontend
version: 1.0.0
dependencies:
- name: common
version: ~2.2.0
repository: "https://charts.bitnami.com/bitnami"
5 changes: 5 additions & 0 deletions chart/templates/extra-list.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{{- range .Values.extraDeploy }}
---
{{ include "common.tplvalues.render" (dict "value" . "context" $) }}
{{- end }}

15 changes: 15 additions & 0 deletions chart/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ spec:
tls:
- hosts:
- {{ .Values.ingress.hostname }}
{{- range $key, $value := .Values.ingress.extraHosts }}
- {{ . }}
{{- end }}
secretName: {{ .Values.ingress.hostname }}-tls
{{- end }}
{{- if .Values.ingress.ingressClassName }}
Expand All @@ -28,3 +31,15 @@ spec:
number: 80
path: /
pathType: ImplementationSpecific
{{- range $key, $value := .Values.ingress.extraHosts }}
- host: {{ . }}
http:
paths:
- backend:
service:
name: {{ $.Release.Name }}
port:
number: 80
path: /
pathType: ImplementationSpecific
{{- end }}
1 change: 1 addition & 0 deletions chart/values.local.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
ingress:
ingressClassName: nginx
#ingressClassName: traefik
hostname: molli.proxy.localhost
tls: true

Expand Down
23 changes: 18 additions & 5 deletions chart/values.prod.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,29 @@
ingress:
hostname: molli.frontend.mmli1.ncsa.illinois.edu
hostname: molli.platform.moleculemaker.org
extraHosts:
- molli.frontend.mmli1.ncsa.illinois.edu
tls: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
kubernetes.io/tls-acme: "true"
traefik.ingress.kubernetes.io/router.tls: "true"
traefik.ingress.kubernetes.io/router.middlewares: "alphasynthesis-molli-prod-domain-redirect@kubernetescrd"

config:
hostname: "https://jobmgr.mmli1.ncsa.illinois.edu"
basePath: "api/v1"
signInUrl: "https://mmli1.ncsa.illinois.edu/oauth2/start?rd=https%3A%2F%2Fmolli.frontend.mmli1.ncsa.illinois.edu%2Fconfiguration"
signOutUrl: "https://mmli1.ncsa.illinois.edu/oauth2/sign_out?rd=https%3A%2F%2Fmolli.frontend.mmli1.ncsa.illinois.edu%2Fconfiguration"
userInfoUrl: "https://mmli1.ncsa.illinois.edu/oauth2/userinfo"

signInUrl: "https://auth.platform.moleculemaker.org/oauth2/start?rd=https%3A%2F%2Fmolli.platform.moleculemaker.org%2Fconfiguration"
signOutUrl: "https://auth.platform.moleculemaker.org/oauth2/sign_out?rd=https%3A%2F%2Fmolli.platform.moleculemaker.org%2Fconfiguration"
userInfoUrl: "https://auth.platform.moleculemaker.org/oauth2/userinfo"

extraDeploy:
- apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: molli-prod-domain-redirect
namespace: alphasynthesis
spec:
redirectRegex:
regex: "^https://molli.frontend.mmli1.ncsa.illinois.edu/(.*)"
replacement: "https://molli.platform.moleculemaker.org/${1}"
permanent: true
1 change: 1 addition & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ config:
controller:
image: moleculemaker/molli-frontend

extraDeploy: []

0 comments on commit ee0a67f

Please sign in to comment.