Skip to content
Snippets Groups Projects
Commit 3b22af82 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

deploy behind main url, redirect from beta

parent c258ace1
No related branches found
No related tags found
1 merge request!80deploy behind main url, redirect from beta
......@@ -154,7 +154,7 @@ build-client-prod:
- cd client
variables:
PATH_TAG: client-static-serve
API_URL: "https://jass-beta.pasteur.cloud/api"
API_URL: "https://jass.pasteur.fr/api"
......@@ -223,10 +223,10 @@ deploy-prod:
extends: .deploy
variables:
NAMESPACE: "jass-prod"
PUBLIC_URL: "jass-beta.pasteur.cloud"
PUBLIC_URL: "jass.pasteur.fr"
environment:
name: "k8sprod-02/jass-prod/${CI_COMMIT_REF_SLUG}"
url: "https://jass-beta.pasteur.cloud"
url: "https://jass.pasteur.fr"
delete-dev-deployment:
......
{{- if .Values.ingress.redirections -}}
{{- $target := .Values.ingress.host.name -}}
{{- range .Values.ingress.redirections.hosts }}
kind: Ingress
apiVersion: networking.k8s.io/v1beta1
metadata:
name: {{ printf "redirect-from-%s" . | replace "." "-" | trunc 63 | trimSuffix "-" | quote }}
annotations:
nginx.ingress.kubernetes.io/temporal-redirect: {{ $target }}
spec:
ingressClassName: external
rules:
- host: {{ . }}
{{- end }}
{{- end }}
......@@ -10,4 +10,7 @@ celery:
ingress:
annotations:
kubernetes.io/ingress.class: external
\ No newline at end of file
kubernetes.io/ingress.class: external
redirections:
hosts:
- jass-beta.pasteur.cloud
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment