Skip to content

Commit a67c755

Browse files
committed
Continue chart development
1 parent a3d7aad commit a67c755

File tree

6 files changed

+15
-20
lines changed

6 files changed

+15
-20
lines changed

charts/custom-values.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
# Overwrite ingress path properties for massbank3-frontend
22
host: msbi.ipb-halle.de
3-
ingress:
4-
hosts:
5-
- host: msbi.ipb-halle.de
6-
paths:
7-
- path: /MassBank3(/|$)(.*)
8-
pathType: ImplementationSpecific
3+
pathPrefix: MassBank3
94

105
# Overwrite ingress path properties for massbank3-server
116
massbank3-server:

charts/massbank3-frontend/templates/NOTES.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
{{- if .Values.ingress.enabled }}
33
{{- range $host := .Values.ingress.hosts }}
44
{{- range .paths }}
5-
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ $host.host }}{{ .path }}
5+
http{{ if $.Values.ingress.tls }}s{{ end }}://{{ tpl $host.host $ }}{{ tpl .path $ }}
66
{{- end }}
77
{{- end }}
88
{{- else if contains "NodePort" .Values.service.type }}

charts/massbank3-frontend/templates/configmap.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ metadata:
66
{{- include "massbank3-frontend.labels" . | nindent 4 }}
77
data:
88
MB3_API_URL: "https://{{ .Values.host }}/{{ .Values.pathPrefix }}-api/v1"
9-
MB3_API_URL_INTERNAL: "http://{{ .Values.host }}:8080"
9+
MB3_API_URL_INTERNAL: "http://massbank3-server-service:8080"
1010
MB3_FRONTEND_URL: "https://{{ .Values.host }}"
1111
MB3_FRONTEND_BASE_URL: "/{{ .Values.pathPrefix }}/"
1212
MB3_FRONTEND_VERSION: "3.0.0 (beta)"
13-
EXPORT_SERVICE_URL: "https://{{ .Values.host }}/MassBank-export"
14-
EXPORT_SERVICE_URL_INTERNAL: "http://{{ .Values.host }}:8080"
13+
EXPORT_SERVICE_URL: "https://{{ .Values.host }}/{{ .Values.pathPrefix }}-export"
14+
EXPORT_SERVICE_URL_INTERNAL: "http://massbank3-export-service-service:8080"
1515
GOOGLE_SEARCH_CONSOLE_KEY: "4aoZgYg2lHeh7TlOxtyVzjHa3YJirrsEHPqwSU3luoU"
1616
DISTRIBUTOR_TEXT: "This website is hosted and distributed by the Leibniz Institute of Plant Biochemistry, Halle (Saale), Germany."
1717
DISTRIBUTOR_URL: "https://www.ipb-halle.de/kontakt/impressum"

charts/massbank3-frontend/templates/deployment.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ spec:
4949
protocol: TCP
5050
{{- with .Values.livenessProbe }}
5151
livenessProbe:
52-
{{- toYaml . | nindent 12 }}
52+
{{- tpl (toYaml .) $ | nindent 12 }}
5353
{{- end }}
5454
{{- with .Values.readinessProbe }}
5555
readinessProbe:
56-
{{- toYaml . | nindent 12 }}
56+
{{- tpl (toYaml .) $ | nindent 12 }}
5757
{{- end }}
5858
{{- with .Values.resources }}
5959
resources:

charts/massbank3-frontend/templates/ingress.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ spec:
2525
{{- end }}
2626
rules:
2727
{{- range .Values.ingress.hosts }}
28-
- host: {{ .host | quote }}
28+
- host: {{ tpl .host $ | quote }}
2929
http:
3030
paths:
3131
{{- range .paths }}
32-
- path: {{ .path }}
32+
- path: {{ tpl .path $ }}
3333
{{- with .pathType }}
3434
pathType: {{ . }}
3535
{{- end }}

charts/massbank3-frontend/values.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
66
replicaCount: 1
77

8-
host: msbi.ipb-halle.de
9-
pathPrefix: MassBank
8+
host: "msbi.ipb-halle.de"
9+
pathPrefix: "MassBank"
1010

1111
# This sets the container image more information can be found here: https://kubernetes.io/docs/concepts/containers/images/
1212
image:
@@ -66,9 +66,9 @@ ingress:
6666
# kubernetes.io/ingress.class: nginx
6767
# kubernetes.io/tls-acme: "true"
6868
hosts:
69-
- host: msbi.ipb-halle.de
69+
- host: "{{ .Values.host }}"
7070
paths:
71-
- path: /MassBank(/|$)(.*)
71+
- path: "/{{ .Values.pathPrefix }}(/|$)(.*)"
7272
pathType: ImplementationSpecific
7373
tls: []
7474
# - secretName: chart-example-tls
@@ -90,11 +90,11 @@ resources: {}
9090
# This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
9191
livenessProbe:
9292
httpGet:
93-
path: /MassBank/
93+
path: "/{{ .Values.pathPrefix }}/"
9494
port: http
9595
readinessProbe:
9696
httpGet:
97-
path: /MassBank/
97+
path: "/{{ .Values.pathPrefix }}/"
9898
port: http
9999

100100
# This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/

0 commit comments

Comments
 (0)