Skip to content
Snippets Groups Projects

deploy behind main url, redirect from beta

Merged Bryan BRANCOTTE requested to merge update-hostname into master
3 files
+ 22
4
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 15
0
{{- 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 }}
Loading