Skip to content

Commit 68e1129

Browse files
committed
Minio test pod and daemonset
1 parent 96c2af6 commit 68e1129

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
apiVersion: apps/v1
2+
kind: DaemonSet
3+
metadata:
4+
name: minio-mounter
5+
namespace: ibm-hpc
6+
labels:
7+
app: minio-mounter
8+
spec:
9+
selector:
10+
matchLabels:
11+
app: minio-mounter
12+
template:
13+
metadata:
14+
labels:
15+
app: minio-mounter
16+
spec:
17+
containers:
18+
- name: minio-fuse
19+
image: vismayak/minio-mount-daemon-container
20+
securityContext:
21+
privileged: true
22+
envFrom:
23+
- secretRef:
24+
name: minio-credentials
25+
volumeMounts:
26+
- name: fuse
27+
mountPath: /dev/fuse
28+
- name: minio-point
29+
mountPath: /var/clowderfs:shared
30+
lifecycle:
31+
preStop:
32+
exec:
33+
command: ["/bin/sh", "-c", "fusermount -u /var/clowderfs"]
34+
volumes:
35+
- name: fuse
36+
hostPath:
37+
path: /dev/fuse
38+
- name: minio-point
39+
hostPath:
40+
path: /mnt/clowderfs
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
apiVersion: v1
2+
kind: Pod
3+
metadata:
4+
name: minio-test-pod
5+
spec:
6+
containers:
7+
- name: minio-test-pod
8+
image: alpine
9+
command: [ "sleep", "infinity" ]
10+
volumeMounts:
11+
- name: minio-storage
12+
mountPath: /clowderfs
13+
volumes:
14+
- name: minio-storage
15+
hostPath:
16+
path: /mnt/clowderfs

0 commit comments

Comments
 (0)