krkn-chaos / krkn

Chaos and resiliency testing tool for Kubernetes with a focus on improving performance under failure conditions. A CNCF sandbox project.
Apache License 2.0
291 stars 102 forks source link

Added fallback on dd if fallocate is not in the $PATH #716

Closed tsebastiani closed 1 month ago

tsebastiani commented 1 month ago

Test deployment based on an image that does not contain fallocate

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: pvc-test
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
---
apiVersion: v1
kind: Pod
metadata:
  name: pod-with-pvc
spec:
  containers:
    - name: null-container
      image: quay.io/rh_ee_tsebasti/null-container:minimal
      volumeMounts:
        - mountPath: /data
          name: storage-volume
  volumes:
    - name: storage-volume
      persistentVolumeClaim:
        claimName: pvc-test