generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisk-wipe.yaml
46 lines (46 loc) · 1.18 KB
/
disk-wipe.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
---
apiVersion: v1
kind: Pod
metadata:
name: disk-wipe-0
spec:
restartPolicy: Never
nodeName: kubernetes-0
containers:
- name: disk-wipe-0
image: alpine
securityContext:
privileged: true
command: ["/bin/bash"]
args: ["-c", "apk add sgdisk;sgdisk --zap-all /dev/sdc;dd if=/dev/zero of=/dev/sdc bs=1M count=100 oflag=direct,dsync;blkdiscard /dev/sdc;partprobe /dev/sdc"]
---
apiVersion: v1
kind: Pod
metadata:
name: disk-wipe-1
spec:
restartPolicy: Never
nodeName: kubernetes-1
containers:
- name: disk-wipe-1
image: alpine
securityContext:
privileged: true
command: ["/bin/bash"]
args: ["-c", "apk add sgdisk;sgdisk --zap-all /dev/sdc;dd if=/dev/zero of=/dev/sdc bs=1M count=100 oflag=direct,dsync;blkdiscard /dev/sdc;partprobe /dev/sdc"]
---
---
apiVersion: v1
kind: Pod
metadata:
name: disk-wipe-2
spec:
restartPolicy: Never
nodeName: kubernetes-2
containers:
- name: disk-wipe-2
image: alpine
securityContext:
privileged: true
command: ["/bin/bash"]
args: ["-c", "apk add sgdisk;sgdisk --zap-all /dev/sdb;dd if=/dev/zero of=/dev/sdb bs=1M count=100 oflag=direct,dsync;blkdiscard /dev/sdb;partprobe /dev/sdb"]