Skip to content

Commit f263fa3

Browse files
committed
docs: add DLS filesystem mount placeholder to prod/stage API manifests
The image-serving API endpoints read atlas/grid-square files off disk via the /dls/... paths stored in the DB, so prod/stage need the real Diamond /dls filesystem mounted at /dls. Add a commented placeholder (NFS or PVC) to the production and staging smartem-http-api deployments for whoever wires up those clusters. Inert until uncommented and configured. API service only.
1 parent 5504841 commit f263fa3

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

k8s/environments/production/smartem-http-api.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,25 @@ spec:
5656
limits:
5757
memory: "512Mi"
5858
cpu: "500m"
59+
# --- DLS filesystem mount (PLACEHOLDER - configure before enabling) ---
60+
# The image-serving API endpoints (atlas_image, gridsquare_image) read microscopy
61+
# files off disk using the absolute /dls/... paths stored in the DB. Mount the real
62+
# Diamond /dls shared filesystem read-only at /dls so they resolve. API service only:
63+
# the worker does not read image files. Set the source to the actual DLS NFS export
64+
# or a PVC bound to it for this cluster, then uncomment both blocks.
65+
# volumeMounts:
66+
# - name: dls-filesystem
67+
# mountPath: /dls
68+
# readOnly: true
69+
# volumes:
70+
# - name: dls-filesystem
71+
# nfs:
72+
# server: <dls-nfs-server> # DLS NFS/GPFS export host
73+
# path: /dls # export containing <scope>/data/<year>/<visit>/...
74+
# readOnly: true
75+
# # or bind to a PersistentVolumeClaim instead of nfs:
76+
# # persistentVolumeClaim:
77+
# # claimName: dls-filesystem
5978

6079
---
6180

k8s/environments/staging/smartem-http-api.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,25 @@ spec:
5555
limits:
5656
memory: "256Mi"
5757
cpu: "200m"
58+
# --- DLS filesystem mount (PLACEHOLDER - configure before enabling) ---
59+
# The image-serving API endpoints (atlas_image, gridsquare_image) read microscopy
60+
# files off disk using the absolute /dls/... paths stored in the DB. Mount the real
61+
# Diamond /dls shared filesystem read-only at /dls so they resolve. API service only:
62+
# the worker does not read image files. Set the source to the actual DLS NFS export
63+
# or a PVC bound to it for this cluster, then uncomment both blocks.
64+
# volumeMounts:
65+
# - name: dls-filesystem
66+
# mountPath: /dls
67+
# readOnly: true
68+
# volumes:
69+
# - name: dls-filesystem
70+
# nfs:
71+
# server: <dls-nfs-server> # DLS NFS/GPFS export host
72+
# path: /dls # export containing <scope>/data/<year>/<visit>/...
73+
# readOnly: true
74+
# # or bind to a PersistentVolumeClaim instead of nfs:
75+
# # persistentVolumeClaim:
76+
# # claimName: dls-filesystem
5877

5978
---
6079

0 commit comments

Comments
 (0)