theshire/.archive/.taskfiles/rook/pod.yaml

20 lines
529 B
YAML
Raw Normal View History

2024-01-11 15:03:54 -06:00
apiVersion: v1
kind: Pod
metadata:
name: my-pod
spec:
containers:
- name: disk-wipe
2024-05-28 08:04:34 -05:00
image: docker.io/library/alpine:3.20.0
2024-01-11 15:03:54 -06:00
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;