Skip to content

Commit f80d327

Browse files
committed
Using datashim
1 parent df8d32c commit f80d327

File tree

3 files changed

+33
-11
lines changed

3 files changed

+33
-11
lines changed

deployments/kubernetes/charts/clowder2/minio-credentials.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ metadata:
44
name: minio-credentials
55
namespace: ibm-hpc
66
stringData:
7-
MINIO_ENDPOINT: http://clowder2-minio:9000
8-
MINIO_ACCESS_KEY: clowder
9-
MINIO_SECRET_KEY: ilikecats
10-
MINIO_MOUNT_POINT: /var/clowderfs
11-
CLOWDER_VERSION: "2"
12-
7+
# MINIO_ENDPOINT: http://clowder2-minio:9000
8+
# MINIO_ACCESS_KEY: clowder
9+
# MINIO_SECRET_KEY: ilikecats
10+
# MINIO_MOUNT_POINT: /var/clowderfs
11+
# CLOWDER_VERSION: "2"
12+
accessKeyID: clowder
13+
secretAccessKey: ilikecats
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: datashim.io/v1alpha1
2+
kind: Dataset
3+
metadata:
4+
name: minio-dataset
5+
namespace: ibm-hpc
6+
spec:
7+
local:
8+
readonly: "true" # <----
9+
bucket: clowder
10+
endpoint: http://clowder2-minio.ibm-hpc.svc.cluster.local:9000/
11+
secret-name: minio-credentials
12+
type: COS

deployments/kubernetes/charts/clowder2/minio-test-pod.yaml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,23 @@ kind: Pod
33
metadata:
44
name: minio-test-pod
55
spec:
6+
volumes:
7+
- name: "minio-dataset"
8+
persistentVolumeClaim:
9+
claimName: "minio-dataset"
610
containers:
711
- name: minio-test-pod
812
image: alpine
913
command: [ "sleep", "infinity" ]
1014
volumeMounts:
11-
- name: minio-storage
15+
- name: minio-dataset
1216
mountPath: /clowderfs
13-
volumes:
14-
- name: minio-storage
15-
hostPath:
16-
path: /mnt/ibm-hpc-clowderfs
17+
# volumeMounts:
18+
# - name: minio-storage
19+
# mountPath: /clowderfs
20+
# volumes:
21+
# - name: minio-storage
22+
# hostPath:
23+
# path: /mnt/ibm-hpc-clowderfs
24+
25+

0 commit comments

Comments
 (0)