ddn
This commit is contained in:
parent
00afdf320c
commit
45ff809b1d
|
|
@ -21,7 +21,7 @@ metadata:
|
||||||
spec:
|
spec:
|
||||||
attachRequired: false
|
attachRequired: false
|
||||||
podInfoOnMount: false
|
podInfoOnMount: false
|
||||||
fsGroupPolicy: File
|
fsGroupPolicy: ReadWriteOnceWithFSType
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,21 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: fix-perms
|
||||||
|
namespace: test-nas
|
||||||
|
spec:
|
||||||
|
nodeSelector:
|
||||||
|
nodegroup: nd
|
||||||
|
restartPolicy: Never
|
||||||
|
containers:
|
||||||
|
- name: chown
|
||||||
|
image: busybox
|
||||||
|
command: ["sh", "-c", "chown -R 1001:1001 /data && chmod 2750 /data"]
|
||||||
|
volumeMounts:
|
||||||
|
- name: exa-vol
|
||||||
|
mountPath: /data
|
||||||
|
volumes:
|
||||||
|
- name: exa-vol
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: test-nas-pvc
|
||||||
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
apiVersion: storage.k8s.io/v1
|
||||||
|
kind: StorageClass
|
||||||
|
metadata:
|
||||||
|
name: test-nas
|
||||||
|
provisioner: exa.csi.ddn.com
|
||||||
|
parameters:
|
||||||
|
# projectId: "100001" # Points to a project id to be used to set volume quota.
|
||||||
|
# bindMount: "false"
|
||||||
|
mountOptions:
|
||||||
|
- uid=1001
|
||||||
|
- gid=1001
|
||||||
|
- dir_mode=2750
|
||||||
|
reclaimPolicy: Delete
|
||||||
|
|
||||||
|
|
@ -0,0 +1,13 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: inje-test-nas-pvc
|
||||||
|
namespace: test-nas
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteMany # NAS 스토리지는 보통 여러 Pod에서 동시에 사용 가능
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi # 원하는 용량
|
||||||
|
storageClassName: test-nas
|
||||||
|
|
||||||
Loading…
Reference in New Issue