Skip to content

Commit

Permalink
CHG switch k8s to be on anubis-lms.io
Browse files Browse the repository at this point in the history
  • Loading branch information
wabscale committed Aug 26, 2022
1 parent af023f7 commit ccb414b
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 42 deletions.
80 changes: 40 additions & 40 deletions k8s/chart/templates/ingress.yml
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ spec:
{{- end }}
routes:
- kind: Rule
match: Host(`{{ .Values.marketing.domain }}`)
match: Host(`about.{{ .Values.marketing.domain }}`)
services:
- name: {{ include "chart.fullname" . }}-marketing-web
port: 3000
Expand Down Expand Up @@ -188,43 +188,43 @@ spec:

# For the anubis-lms.io redirect when we deploy that
{{- if not .Values.debug }}
## Redirect with domain replacement
#apiVersion: traefik.containo.us/v1alpha1
#kind: Middleware
#metadata:
# name: redirect-to-new
# namespace: {{ .Release.Namespace }}
# labels:
# app.kubernetes.io/name: anubis
# heritage: {{ .Release.Service | quote }}
# release: {{ .Release.Name | quote }}
#spec:
# redirectRegex:
# regex: ^https://anubis.osiris.services/(.*)
# replacement: https://anubis-lms.io/${1}
#---
#apiVersion: traefik.containo.us/v1alpha1
#kind: IngressRoute
#metadata:
# name: ingress.route.redirect.public
# namespace: {{ .Release.Namespace }}
# labels:
# app.kubernetes.io/name: theia
# component: proxy
# heritage: {{ .Release.Service | quote }}
# release: {{ .Release.Name | quote }}
#spec:
# entryPoints:
# - websecure
# routes:
# - kind: Rule
# match: Host(`anubis.osiris.services`)
# middlewares:
# - name: redirect-to-new
# namespace: {{ .Release.Namespace }}
# services:
# - name: {{ include "chart.fullname" . }}-web
# port: 3000
# tls:
# certResolver: le
# Redirect with domain replacement
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: redirect-to-new
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: anubis
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
spec:
redirectRegex:
regex: ^https://anubis.osiris.services/(.*)
replacement: https://anubis-lms.io/${1}
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: ingress.route.redirect.public
namespace: {{ .Release.Namespace }}
labels:
app.kubernetes.io/name: theia
component: proxy
heritage: {{ .Release.Service | quote }}
release: {{ .Release.Name | quote }}
spec:
entryPoints:
- websecure
routes:
- kind: Rule
match: Host(`anubis.osiris.services`)
middlewares:
- name: redirect-to-new
namespace: {{ .Release.Namespace }}
services:
- name: {{ include "chart.fullname" . }}-web
port: 3000
tls:
certResolver: le
{{- end }}
4 changes: 2 additions & 2 deletions k8s/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ fullnameOverride: ""
debug: false
rollingUpdates: true
healthChecks: true
# domain: "anubis-lms.io"
domain: "anubis.osiris.services"
domain: "anubis-lms.io"
#domain: "anubis.osiris.services"
vpnOnly: false
imagePullPolicy: "Always"
imagePullSecret: "anubis"
Expand Down
1 change: 1 addition & 0 deletions k8s/prod/traefik-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ ports:
sans:
- ide.anubis-lms.io
- ide8000.anubis-lms.io
- about.anubis-lms.io

podSecurityContext: null
securityContext: null
Expand Down

0 comments on commit ccb414b

Please sign in to comment.