Commit a171e399 authored by Thomas Beermann's avatar Thomas Beermann
Browse files

adapt deployment/svc/ing names

parent 75d5cb61
Pipeline #91169 passed with stages
in 16 seconds
apiVersion: v1
name: hifiscp
version: 0.0.2
version: 0.0.3
description: A Helm chart to deploy the HIFIS Cloud Portal Backend and Frontend
keywords:
- HIFIS
......
......@@ -2,7 +2,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "hifiscp.fullname" . }}-cerebrum
name: {{ .Release.Name }}-cerebrum
labels:
app: {{ template "hifiscp.name" . }}-cerebrum
chart: {{ template "hifiscp.chart" . }}
......
......@@ -2,7 +2,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "hifiscp.fullname" . }}-cerebrum
name: {{ .Release.Name }}-cerebrum
labels:
app: {{ template "hifiscp.name" . }}-cerebrum
chart: {{ template "hifiscp.chart" . }}
......
......@@ -8,7 +8,11 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}-{{ .name }}
{{- if ne $contextPath "/" }}
name: {{ $release }}-{{ .name }}
{{- else }}
name: {{ $release }}
{{- end }}
labels:
app: {{ $name }}
chart: {{ $chart }}
......@@ -38,21 +42,21 @@ spec:
pathType: ImplementationSpecific
backend:
service:
name: {{ $fullName }}-webapp
name: {{ $release }}-webapp
port:
number: 80
- path: {{ $contextPath }}api
pathType: ImplementationSpecific
backend:
service:
name: {{ $fullName }}-cerebrum
name: {{ $release }}-cerebrum
port:
number: 80
- path: {{ $contextPath }}swagger-ui
pathType: ImplementationSpecific
backend:
service:
name: cerebrum
name: {{ $release }}-cerebrum
port:
number: 80
{{- end }}
......
......@@ -2,7 +2,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ template "hifiscp.fullname" . }}-webapp
name: {{ .Release.Name }}-webapp
labels:
app: {{ template "hifiscp.name" . }}-webapp
chart: {{ template "hifiscp.chart" . }}
......
......@@ -2,7 +2,7 @@
apiVersion: v1
kind: Service
metadata:
name: {{ template "hifiscp.fullname" . }}-webapp
name: {{ .Release.Name }}-webapp
labels:
app: {{ template "hifiscp.name" . }}-webapp
chart: {{ template "hifiscp.chart" . }}
......
Supports Markdown
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