This repository has been archived by the owner on May 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
wipe-rook.yaml
54 lines (54 loc) · 1.52 KB
/
wipe-rook.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
---
apiVersion: v1
kind: Pod
metadata:
name: disk-wipe-xerxes
spec:
restartPolicy: Never
nodeName: xerxes
containers:
- name: disk-wipe
image: ubuntu
securityContext:
privileged: true
command: ['/bin/sh', '-c']
args:
[
'apt update; apt install fdisk gdisk parted udev -y; sgdisk --zap-all /dev/nvme0n1; dd if=/dev/zero bs=1M count=100 oflag=direct,dsync of=/dev/nvme0n1; wipefs -af /dev/nvme0n1; blkdiscard /dev/nvme0n1; partprobe /dev/nvme0n1',
]
---
apiVersion: v1
kind: Pod
metadata:
name: disk-wipe-shodan
spec:
restartPolicy: Never
nodeName: shodan
containers:
- name: disk-wipe
image: ubuntu
securityContext:
privileged: true
command: ['/bin/sh', '-c']
args:
[
'apt update; apt install fdisk gdisk parted udev -y; sgdisk --zap-all /dev/nvme1n1; dd if=/dev/zero bs=1M count=100 oflag=direct,dsync of=/dev/nvme1n1; wipefs -af /dev/nvme1n1; blkdiscard /dev/nvme0n1; partprobe /dev/nvme1n1',
]
---
apiVersion: v1
kind: Pod
metadata:
name: disk-wipe-icarus
spec:
restartPolicy: Never
nodeName: icarus
containers:
- name: disk-wipe
image: ubuntu
securityContext:
privileged: true
command: ['/bin/sh', '-c']
args:
[
'apt update; apt install fdisk gdisk parted udev -y; sgdisk --zap-all /dev/nvme0n1; dd if=/dev/zero bs=1M count=100 oflag=direct,dsync of=/dev/nvme0n1; wipefs -af /dev/nvme0n1; blkdiscard /dev/nvme0n1; partprobe /dev/nvme0n1',
]