Skip to content

Commit 1750183

Browse files
committed
Continue charm
1 parent ddec1d6 commit 1750183

File tree

6 files changed

+25
-78
lines changed

6 files changed

+25
-78
lines changed

charts/custom-values.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
# Overwrite ingress path properties for massbank3-frontend
1+
# hostneme of the public url serving massbank
22
host: msbi.ipb-halle.de
3+
# base path of the public url serving massbank
34
pathPrefix: MassBank3
5+
# release name of the helm install of massbank3-frontend, required for dbtool
6+
# to identify the hostname of the postgres database
7+
massbank3ReleaseName: massbank3
8+
9+
# postgres settings for dbtool
10+
postgresPassword: "massbank3adminpassword"
11+
username: "massbank3"
12+
password: "massbank3password"
13+
database: "massbank3"
414

515
massbank3-export-service:
616
host: msbi.ipb-halle.de

charts/massbank3-dbtool/templates/job.yaml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,15 @@ metadata:
77
spec:
88
template:
99
metadata:
10-
{{- with .Values.podAnnotations }}
11-
annotations:
12-
{{- toYaml . | nindent 8 }}
13-
{{- end }}
1410
labels:
1511
{{- include "massbank3-dbtool.labels" . | nindent 8 }}
1612
{{- with .Values.podLabels }}
1713
{{- toYaml . | nindent 8 }}
1814
{{- end }}
1915
spec:
2016
restartPolicy: Never
21-
{{- with .Values.imagePullSecrets }}
22-
imagePullSecrets:
23-
{{- toYaml . | nindent 8 }}
24-
{{- end }}
25-
serviceAccountName: {{ include "massbank3-dbtool.serviceAccountName" . }}
26-
{{- with .Values.podSecurityContext }}
27-
securityContext:
28-
{{- toYaml . | nindent 8 }}
29-
{{- end }}
3017
containers:
3118
- name: {{ .Chart.Name }}
32-
{{- with .Values.securityContext }}
33-
securityContext:
34-
{{- toYaml . | nindent 12 }}
35-
{{- end }}
3619
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
3720
imagePullPolicy: {{ .Values.image.pullPolicy }}
3821
env:
@@ -41,7 +24,7 @@ spec:
4124
- name: DB_PASSWORD
4225
value: {{ .Values.password }}
4326
- name: DB_HOST
44-
value: "massbank3-postgresql"
27+
value: {{ .Values.massbank3ReleaseName }}-postgresql
4528
- name: DB_NAME
4629
value: {{ .Values.database }}
4730
- name: DB_USER
@@ -56,12 +39,3 @@ spec:
5639
value: ""
5740
- name: MB_DROP_ALL
5841
value: "true"
59-
{{- with .Values.nodeSelector }}
60-
nodeSelector:
61-
{{- toYaml . | nindent 8 }}
62-
{{- end }}
63-
{{- with .Values.affinity }}
64-
affinity:
65-
{{- toYaml . | nindent 8 }}
66-
{{- end }}
67-

charts/massbank3-dbtool/templates/serviceaccount.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

charts/massbank3-dbtool/values.yaml

Lines changed: 3 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,19 @@
11
# This will set the replicaset count more information can be found here: https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
22
replicaCount: 1
33

4-
host: "msbi.ipb-halle.de"
5-
pathPrefix: "MassBank"
6-
74
postgresPassword: "massbank3adminpassword"
85
username: "massbank3"
96
password: "massbank3password"
107
database: "massbank3"
118

9+
massbank3ReleaseName: massbank3
10+
1211
image:
1312
repository: ipbhalle/massbank3-dbtool
1413
tag: "dev"
1514
pullPolicy: IfNotPresent
1615

17-
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
18-
imagePullSecrets: []
19-
# This is to override the chart name.
20-
nameOverride: ""
21-
fullnameOverride: ""
22-
23-
# This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/
24-
serviceAccount:
25-
# Specifies whether a service account should be created
26-
create: true
27-
# Automatically mount a ServiceAccount's API credentials?
28-
automount: true
29-
# Annotations to add to the service account
30-
annotations: {}
31-
# The name of the service account to use.
32-
# If not set and create is true, a name is generated using the fullname template
33-
name: ""
34-
35-
# This is for setting Kubernetes Annotations to a Pod.
36-
# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
37-
podAnnotations: {}
3816
# This is for setting Kubernetes Labels to a Pod.
3917
# For more information checkout: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
4018
podLabels:
41-
app: massbank3-dbtool
42-
43-
podSecurityContext: {}
44-
# fsGroup: 2000
45-
46-
securityContext: {}
47-
# capabilities:
48-
# drop:
49-
# - ALL
50-
# readOnlyRootFilesystem: true
51-
# runAsNonRoot: true
52-
# runAsUser: 1000
19+
app: massbank3-dbtool

charts/massbank3-server/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ appVersion: "v0.1"
1010
dependencies:
1111
- name: postgresql
1212
repository: https://charts.bitnami.com/bitnami
13-
version: 16.4.9
13+
version: 16.6.2
1414
- name: massbank3-similarity-service
1515
repository: file://../massbank3-similarity-service
1616
version: 0.1.0

charts/massbank3-server/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ postgresql:
4949
extraVolumeMounts: |
5050
- name: bingo-volume
5151
mountPath: /opt/bingo-postgres
52+
persistence:
53+
size: 16Gi
54+
resources:
55+
requests:
56+
memory: "2Gi"
57+
cpu: "1"
58+
limits:
59+
memory: "4Gi"
60+
cpu: "2"
5261

5362
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
5463
imagePullSecrets: []

0 commit comments

Comments
 (0)