111 lines
2.6 KiB
YAML
111 lines
2.6 KiB
YAML
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: disk-wipe-s01
|
|
namespace: kube-system
|
|
spec:
|
|
restartPolicy: Never
|
|
nodeName: talos-0ye-ep1
|
|
containers:
|
|
- name: disk-wipe
|
|
image: ghcr.io/onedr0p/alpine:3.19.1@sha256:3fbc581cb0fe29830376161ae026e2a765dcc11e1747477fe9ebf155720b8638
|
|
securityContext:
|
|
privileged: true
|
|
resources: {}
|
|
env:
|
|
- name: CEPH_DISK
|
|
value: "/dev/xvdb"
|
|
command:
|
|
[
|
|
"/bin/sh",
|
|
"-c"
|
|
]
|
|
args:
|
|
- apk add --no-cache sgdisk util-linux parted;
|
|
sgdisk --zap-all $CEPH_DISK;
|
|
blkdiscard $CEPH_DISK;
|
|
dd if=/dev/zero bs=1M count=1000 oflag=direct of=$CEPH_DISK;
|
|
partprobe $CEPH_DISK;
|
|
volumeMounts:
|
|
- mountPath: /mnt/host_var
|
|
name: host-var
|
|
volumes:
|
|
- name: host-var
|
|
hostPath:
|
|
path: /var
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: disk-wipe-anduril
|
|
namespace: kube-system
|
|
spec:
|
|
restartPolicy: Never
|
|
nodeName: talos-9pw-zvs
|
|
containers:
|
|
- name: disk-wipe
|
|
image: ghcr.io/onedr0p/alpine:3.19.1@sha256:3fbc581cb0fe29830376161ae026e2a765dcc11e1747477fe9ebf155720b8638
|
|
securityContext:
|
|
privileged: true
|
|
resources: {}
|
|
env:
|
|
- name: CEPH_DISK
|
|
value: "/dev/nvme1n1"
|
|
command:
|
|
[
|
|
"/bin/sh",
|
|
"-c"
|
|
]
|
|
args:
|
|
- apk add --no-cache sgdisk util-linux parted;
|
|
sgdisk --zap-all $CEPH_DISK;
|
|
blkdiscard $CEPH_DISK;
|
|
dd if=/dev/zero bs=1M count=1000 oflag=direct of=$CEPH_DISK;
|
|
partprobe $CEPH_DISK;
|
|
volumeMounts:
|
|
- mountPath: /mnt/host_var
|
|
name: host-var
|
|
volumes:
|
|
- name: host-var
|
|
hostPath:
|
|
path: /var
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Pod
|
|
metadata:
|
|
name: disk-wipe-g01
|
|
namespace: kube-system
|
|
spec:
|
|
restartPolicy: Never
|
|
nodeName:
|
|
containers:
|
|
- name: disk-wipe
|
|
image: ghcr.io/onedr0p/alpine:3.19.1@sha256:3fbc581cb0fe29830376161ae026e2a765dcc11e1747477fe9ebf155720b8638
|
|
securityContext:
|
|
privileged: true
|
|
resources: {}
|
|
env:
|
|
- name: CEPH_DISK
|
|
value: "/dev/nvme0n1"
|
|
|
|
command:
|
|
[
|
|
"/bin/sh",
|
|
"-c"
|
|
]
|
|
args:
|
|
- apk add --no-cache sgdisk util-linux parted;
|
|
sgdisk --zap-all $CEPH_DISK;
|
|
blkdiscard $CEPH_DISK;
|
|
dd if=/dev/zero bs=1M count=1000 oflag=direct of=$CEPH_DISK;
|
|
partprobe $CEPH_DISK;
|
|
volumeMounts:
|
|
- mountPath: /mnt/host_var
|
|
name: host-var
|
|
volumes:
|
|
- name: host-var
|
|
hostPath:
|
|
path: /var
|