add longhorn demo
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 1m28s
All checks were successful
Podman DDNS Image / build-and-push-ddns (push) Successful in 1m28s
This commit is contained in:
31
active/kubernetes_longhorn/demo-app.yaml
Normal file
31
active/kubernetes_longhorn/demo-app.yaml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
metadata:
|
||||||
|
name: storage-test-pvc
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- ReadWriteOnce
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: 1Gi
|
||||||
|
# If you want to test a specific storage class, uncomment the line below:
|
||||||
|
# storageClassName: <your-storage-class-name>
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Pod
|
||||||
|
metadata:
|
||||||
|
name: storage-test-pod
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: busybox
|
||||||
|
image: busybox
|
||||||
|
command:
|
||||||
|
["sh", "-c", "while true; do date >> /mnt/test.txt; sleep 10; done"]
|
||||||
|
volumeMounts:
|
||||||
|
- name: test-volume
|
||||||
|
mountPath: /mnt
|
||||||
|
restartPolicy: Always
|
||||||
|
volumes:
|
||||||
|
- name: test-volume
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: storage-test-pvc
|
||||||
Reference in New Issue
Block a user