forked from juicedata/juicefs-csi-driver
-
Notifications
You must be signed in to change notification settings - Fork 0
/
resources.yaml
46 lines (46 loc) · 1020 Bytes
/
resources.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: juicefs-sc
namespace: default
provisioner: csi.juicefs.com
parameters:
csi.storage.k8s.io/provisioner-secret-name: $(SECRET_NAME)
csi.storage.k8s.io/provisioner-secret-namespace: $(SECRET_NAMESPACE)
csi.storage.k8s.io/node-publish-secret-name: $(SECRET_NAME)
csi.storage.k8s.io/node-publish-secret-namespace: $(SECRET_NAMESPACE)
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: juicefs-pvc
namespace: default
spec:
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10Pi
storageClassName: juicefs-sc
---
apiVersion: v1
kind: Pod
metadata:
name: juicefs-app
namespace: default
spec:
containers:
- args:
- -c
- while true; do echo $(date -u) >> /data/out.txt; sleep 5; done
command:
- /bin/sh
image: centos
name: app
volumeMounts:
- mountPath: /data
name: juicefs-pv
volumes:
- name: juicefs-pv
persistentVolumeClaim:
claimName: juicefs-pvc