synchronization
This commit is contained in:
31
File/Yaml/openebs-pod.yaml
Normal file
31
File/Yaml/openebs-pod.yaml
Normal file
@@ -0,0 +1,31 @@
|
||||
kind: PersistentVolumeClaim
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: local-hostpath-pvc
|
||||
spec:
|
||||
storageClassName: openebs-hostpath
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 5G
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Pod
|
||||
metadata:
|
||||
name: hello-local-hostpath-pod
|
||||
spec:
|
||||
volumes:
|
||||
- name: local-storage
|
||||
persistentVolumeClaim:
|
||||
claimName: local-hostpath-pvc
|
||||
containers:
|
||||
- name: hello-container
|
||||
image: busybox
|
||||
command:
|
||||
- sh
|
||||
- -c
|
||||
- 'while true; do echo "`date` [`hostname`] Hello from OpenEBS Local PV." >> /mnt/store/greet.txt; sleep $(($RANDOM % 5 + 300)); done'
|
||||
volumeMounts:
|
||||
- mountPath: /mnt/store
|
||||
name: local-storage
|
Reference in New Issue
Block a user