Commit bb0a8340 authored by Dominik Hebeler's avatar Dominik Hebeler

removed ingress redirects as they are not working

parent e339e107
workers:
\ No newline at end of file
......@@ -2,8 +2,6 @@ service:
externalPort: 80
internalPort: 80
commonName: ""
redirectHosts:
- www.metager3.de
ingress:
annotations:
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
\ No newline at end of file
{{- if .Values.service.redirectHosts -}}
{{- if .Values.service.enabled -}}
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: {{ template "fullname" . -}}-redirects
labels:
app: {{ template "appname" . }}
chart: "{{ .Chart.Name -}}-{{- .Chart.Version| replace "+" "_" }}"
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
ingress.kubernetes.io/configuration-snippet: "return 301 $scheme://{{ template "hostname" .Values.service.url }}$request_uri;"
spec:
{{- if .Values.ingress.tls.enabled }}
tls:
- hosts:
{{- range $host := .Values.service.redirectHosts }}
- {{ $host }}
{{- end }}
secretName: {{ .Values.ingress.tls.secretName | default (printf "%s-redirects-tls" (include "fullname" .)) }}
{{- end }}
rules:
{{- $dot := . }}
{{- $values := .Values }}
{{- range $host := .Values.service.redirectHosts }}
- host: {{ $host }}
http:
paths:
- path: /
backend:
serviceName: {{ template "fullname" $dot }}
servicePort: {{ $values.service.externalPort }}
{{- end -}}
{{- end -}}
{{- end -}}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment