Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
bb0a8340
Commit
bb0a8340
authored
Feb 05, 2020
by
Dominik Hebeler
Browse files
removed ingress redirects as they are not working
parent
e339e107
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab/auto-deploy-values.yaml
deleted
100644 → 0
View file @
e339e107
workers
:
\ No newline at end of file
.gitlab/development-values.yaml
View file @
bb0a8340
...
...
@@ -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
chart/templates/ingress-redirects.yaml
deleted
100644 → 0
View file @
e339e107
{{
- 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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment