Skip to content

Commit

Permalink
use ephemeral volume instead pvc in dataserver
Browse files Browse the repository at this point in the history
  • Loading branch information
jusa3 committed Jun 26, 2024
1 parent 4a4ce06 commit 563a977
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sudo chown -R username:username /solr.tgz

### Deploy ols4-dataserver
```bash
helm repo add semlookp-deployment https://ts4nfdi.github.io/ols4-backend-deployment/
helm repo add ols4-backend-deployment https://ts4nfdi.github.io/ols4-backend-deployment/
helm install ols4-dataserver ols4-backend-deployment/ols4-dataserver
```

Expand Down
2 changes: 1 addition & 1 deletion k8s/dataserver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ apiVersion: v2
appVersion: "1.0.0"
description: A Helm chart to deploy the ols4 dataserver
name: ols4-dataserver
version: 0.1.2
version: 0.1.3
23 changes: 8 additions & 15 deletions k8s/dataserver/templates/ols4-dataserver-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@ spec:
labels:
app: {{ .Release.Name }}
spec:
{{/* affinity:*/}}
{{/* nodeAffinity:*/}}
{{/* requiredDuringSchedulingIgnoredDuringExecution:*/}}
{{/* nodeSelectorTerms:*/}}
{{/* - matchExpressions:*/}}
{{/* - key: kubernetes.io/hostname*/}}
{{/* operator: In*/}}
{{/* values:*/}}
{{/* - hh-rke-wp-webadmin-47-worker-4.caas.ebi.ac.uk*/}}
{{/* - hx-rke-wp-webadmin-40-worker-4.caas.ebi.ac.uk*/}}
containers:
- name: dataserver
image: nginx:1.23.3
Expand All @@ -35,11 +25,14 @@ spec:
resources:
requests:
memory: 4Gi
{{/* cpu: 0.5*/}}
limits:
memory: 4Gi
{{/* cpu: 2*/}}
volumes:
- name: {{.Release.Name}}-data
persistentVolumeClaim:
claimName: {{.Release.Name}}-pvc
- name: {{.Release.Name}}-data
ephemeral:
volumeClaimTemplate:
spec:
accessModes: [ "ReadWriteMany" ]
resources:
requests:
storage: 50Gi
12 changes: 9 additions & 3 deletions k8s/ols4-backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,13 @@ helm install ols4 \
--set-json='solrImage="ghcr.io/ebispot/ols4-solr:9.0.0"' \
--set-json='neo4jImage="ghcr.io/ebispot/ols4-neo4j:4.4.9-community"' \
--set-json='backend.context="/ols4"' \
--set-json='neo4jTarballUrl="http://ols4-dataserver/neo4j-nfdi4health.tgz"' \
--set-json='solrTarballUrl="http://ols4-dataserver/solr-nfdi4health.tgz"' \
--set-json='neo4jTarballUrl="http://ols4-dataserver/neo4j.tgz"' \
--set-json='solrTarballUrl="http://ols4-dataserver/solr.tgz"' \
ols4-backend-deployment/ols4-backend
```
```

Add this for enabling certification (certIssuer must be installed):
```bash
--set-json='ingress.enableSSL="true"' \
--set-json='ingress.certIssuer="letsencrypt-prod"' \
```

0 comments on commit 563a977

Please sign in to comment.