6 changed files with 114 additions and 0 deletions
@ -0,0 +1,23 @@
|
||||
## k8s Tests |
||||
|
||||
### Creating PVCs using rook: ok |
||||
|
||||
Generic test to see whether PVC support is correctly installed from |
||||
rook. |
||||
|
||||
* Apply pvc-cephfs.yaml: get cephfs based PVC + PV |
||||
* Apply pvc-rbd.yaml: get RBD based PVC + PV |
||||
|
||||
### Resizing PVC based on CephFS: ok |
||||
|
||||
* Apply pvc-busybox-cephfs.yaml |
||||
* Wait & check |
||||
* Apply pvc-busybox-cephfs-resize.yaml |
||||
* Wait & check new size -> has increased |
||||
|
||||
### Resizing PVC based on RBD: ok |
||||
|
||||
* Apply pvc-busybox-rbd.yaml |
||||
* Wait & check |
||||
* Apply pvc-busybox-rbd-resize.yaml |
||||
* Wait & check new size -> has increased |
@ -0,0 +1,11 @@
|
||||
apiVersion: v1 |
||||
kind: PersistentVolumeClaim |
||||
metadata: |
||||
name: busybox-pvc-test |
||||
spec: |
||||
accessModes: |
||||
- ReadWriteMany |
||||
resources: |
||||
requests: |
||||
storage: 200Mi |
||||
storageClassName: rook-cephfs |
@ -0,0 +1,31 @@
|
||||
apiVersion: v1 |
||||
kind: Pod |
||||
metadata: |
||||
name: busybox-sleep |
||||
spec: |
||||
containers: |
||||
- name: busybox |
||||
image: busybox |
||||
args: |
||||
- sleep |
||||
- "1000000" |
||||
volumeMounts: |
||||
- mountPath: /test |
||||
name: testmount |
||||
volumes: |
||||
- name: testmount |
||||
persistentVolumeClaim: |
||||
claimName: busybox-pvc-test |
||||
|
||||
--- |
||||
apiVersion: v1 |
||||
kind: PersistentVolumeClaim |
||||
metadata: |
||||
name: busybox-pvc-test |
||||
spec: |
||||
accessModes: |
||||
- ReadWriteMany |
||||
resources: |
||||
requests: |
||||
storage: 100Mi |
||||
storageClassName: rook-cephfs |
@ -0,0 +1,11 @@
|
||||
apiVersion: v1 |
||||
kind: PersistentVolumeClaim |
||||
metadata: |
||||
name: busybox-pvc-test-rbd |
||||
spec: |
||||
accessModes: |
||||
- ReadWriteOnce |
||||
resources: |
||||
requests: |
||||
storage: 150Mi |
||||
storageClassName: rook-ceph-block |
@ -0,0 +1,31 @@
|
||||
apiVersion: v1 |
||||
kind: Pod |
||||
metadata: |
||||
name: busybox-sleep-rbdtest |
||||
spec: |
||||
containers: |
||||
- name: busybox |
||||
image: busybox |
||||
args: |
||||
- sleep |
||||
- "1000000" |
||||
volumeMounts: |
||||
- mountPath: /test |
||||
name: testmount |
||||
volumes: |
||||
- name: testmount |
||||
persistentVolumeClaim: |
||||
claimName: busybox-pvc-test-rbd |
||||
|
||||
--- |
||||
apiVersion: v1 |
||||
kind: PersistentVolumeClaim |
||||
metadata: |
||||
name: busybox-pvc-test-rbd |
||||
spec: |
||||
accessModes: |
||||
- ReadWriteOnce |
||||
resources: |
||||
requests: |
||||
storage: 100Mi |
||||
storageClassName: rook-ceph-block |
Loading…
Reference in new issue