Commit 88453a93 authored by Jens Langhammer's avatar Jens Langhammer

p2: fix ingress having invalid syntax and service not having needed labels

parent b3d60273
Pipeline #3869 passed with stage
in 1 minute and 23 seconds
......@@ -27,23 +27,25 @@ spec:
{{- end }}
{{- end }}
rules:
{{- $beta_enable_tier0 := .Values.beta_enable_tier0 -}}
{{- $fullname := include "p2.fullname" . -}}
{{- range .Values.ingress.hosts }}
- host: {{ . | quote }}
http:
paths:
{{- if .Values.beta_enable_tier0 -}}
{{ if $beta_enable_tier0 -}}
- path: /_/
backend:
serviceName: {{ include "p2.fullname" . }}-web
serviceName: {{ $fullname }}-web
servicePort: http
- path: /
backend:
serviceName: {{ include "p2.fullname" . }}-tier0
serviceName: {{ $fullname }}-tier0
servicePort: http
{{- else }}
{{ else }}
- path: /
backend:
serviceName: {{ include "p2.fullname" . }}-web
serviceName: {{ $fullname }}-web
servicePort: http
{{- end }}
{{- end }}
......
......@@ -7,6 +7,7 @@ metadata:
helm.sh/chart: {{ include "p2.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
k8s.p2.io/component: web
spec:
type: ClusterIP
ports:
......
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