generated from onedr0p/cluster-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwipeit.yaml
More file actions
26 lines (26 loc) · 745 Bytes
/
wipeit.yaml
File metadata and controls
26 lines (26 loc) · 745 Bytes
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
---
apiVersion: batch/v1
kind: Job
metadata:
name: b0
namespace: default
spec:
ttlSecondsAfterFinished: 3600
template:
spec:
automountServiceAccountToken: false
restartPolicy: Never
nodeName: nuc10i7-1
containers:
- name: main
image: ghcr.io/onedr0p/alpine:rolling
command: ["/bin/sh", "-c"]
args:
- apk add --no-cache sgdisk util-linux util-linux-misc parted device-mapper;
sgdisk --zap-all /dev/nvme0n1;
dd if=/dev/zero of=/dev/nvme0n1 bs=1M count=100 oflag=direct,dsync;
blkdiscard /dev/nvme0n1;
partprobe /dev/nvme0n1;
securityContext:
privileged: true
resources: {}