diff --git a/.taskfiles/VolSync/ReplicationDestination.tmpl.yaml b/.taskfiles/VolSync/ReplicationDestination.tmpl.yaml index 46be699..8866717 100644 --- a/.taskfiles/VolSync/ReplicationDestination.tmpl.yaml +++ b/.taskfiles/VolSync/ReplicationDestination.tmpl.yaml @@ -11,7 +11,7 @@ spec: repository: "${rsrc}-restic-secret" destinationPVC: "${claim}" copyMethod: Direct - storageClassName: ceph-block + storageClassName: local-hostpath # IMPORTANT NOTE: # Set to the last X number of snapshots to restore from previous: ${previous} diff --git a/.taskfiles/rook/pod.yaml b/.taskfiles/rook/pod.yaml new file mode 100644 index 0000000..8dddcad --- /dev/null +++ b/.taskfiles/rook/pod.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Pod +metadata: + name: my-pod +spec: + containers: + - name: disk-wipe + image: ghcr.io/onedr0p/alpine:3.17.3@sha256:999384960b6114496a5e4036e945141c205d064ce23b87326bd3f8d878c5a9d4 + securityContext: + privileged: true + resources: {} + command: ["/bin/sh", "-c"] + args: + - apk add --no-cache sgdisk util-linux parted e2fsprogs; + sgdisk --zap-all /dev/nvme1n1; + blkdiscard /dev/nvme1n1; + dd if=/dev/zero bs=1M count=10000 oflag=direct of=/dev/nvme1n1; + sgdisk /dev/nvme1n1 + partprobe /dev/nvme1n1;