Compare commits
No commits in common. "5e3ee55f4b7ad8d74da4f3c0abaffe712353a7b7" and "5397ed66e7bd88fd93d6cc202d4c4d9fcefcea00" have entirely different histories.
5e3ee55f4b
...
5397ed66e7
2 changed files with 11 additions and 48 deletions
|
@ -1,37 +0,0 @@
|
||||||
---
|
|
||||||
apiVersion: v1
|
|
||||||
kind: Pod
|
|
||||||
metadata:
|
|
||||||
name: disk-wipe-one
|
|
||||||
namespace: rook-ceph
|
|
||||||
spec:
|
|
||||||
restartPolicy: Never
|
|
||||||
nodeName: talos-ltk-p4a
|
|
||||||
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
|
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: disk-wipe-s01
|
name: disk-wipe-nessa
|
||||||
namespace: kube-system
|
namespace: rook-ceph
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
nodeName: talos-0ye-ep1
|
nodeName: talos-nz9-4fz
|
||||||
containers:
|
containers:
|
||||||
- name: disk-wipe
|
- name: disk-wipe
|
||||||
image: ghcr.io/onedr0p/alpine:3.19.1@sha256:3fbc581cb0fe29830376161ae026e2a765dcc11e1747477fe9ebf155720b8638
|
image: ghcr.io/onedr0p/alpine:3.19.1@sha256:3fbc581cb0fe29830376161ae026e2a765dcc11e1747477fe9ebf155720b8638
|
||||||
|
@ -39,11 +39,11 @@ spec:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: disk-wipe-anduril
|
name: disk-wipe-nienna
|
||||||
namespace: kube-system
|
namespace: rook-ceph
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
nodeName: talos-9pw-zvs
|
nodeName: talos-9c9-dj0
|
||||||
containers:
|
containers:
|
||||||
- name: disk-wipe
|
- name: disk-wipe
|
||||||
image: ghcr.io/onedr0p/alpine:3.19.1@sha256:3fbc581cb0fe29830376161ae026e2a765dcc11e1747477fe9ebf155720b8638
|
image: ghcr.io/onedr0p/alpine:3.19.1@sha256:3fbc581cb0fe29830376161ae026e2a765dcc11e1747477fe9ebf155720b8638
|
||||||
|
@ -52,7 +52,7 @@ spec:
|
||||||
resources: {}
|
resources: {}
|
||||||
env:
|
env:
|
||||||
- name: CEPH_DISK
|
- name: CEPH_DISK
|
||||||
value: "/dev/nvme1n1"
|
value: "/dev/xvdb"
|
||||||
command:
|
command:
|
||||||
[
|
[
|
||||||
"/bin/sh",
|
"/bin/sh",
|
||||||
|
@ -76,11 +76,11 @@ spec:
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Pod
|
kind: Pod
|
||||||
metadata:
|
metadata:
|
||||||
name: disk-wipe-g01
|
name: disk-wipe-orome
|
||||||
namespace: kube-system
|
namespace: rook-ceph
|
||||||
spec:
|
spec:
|
||||||
restartPolicy: Never
|
restartPolicy: Never
|
||||||
nodeName:
|
nodeName: talos-dz9-5ys
|
||||||
containers:
|
containers:
|
||||||
- name: disk-wipe
|
- name: disk-wipe
|
||||||
image: ghcr.io/onedr0p/alpine:3.19.1@sha256:3fbc581cb0fe29830376161ae026e2a765dcc11e1747477fe9ebf155720b8638
|
image: ghcr.io/onedr0p/alpine:3.19.1@sha256:3fbc581cb0fe29830376161ae026e2a765dcc11e1747477fe9ebf155720b8638
|
||||||
|
@ -89,7 +89,7 @@ spec:
|
||||||
resources: {}
|
resources: {}
|
||||||
env:
|
env:
|
||||||
- name: CEPH_DISK
|
- name: CEPH_DISK
|
||||||
value: "/dev/nvme0n1"
|
value: "/dev/xvdb"
|
||||||
|
|
||||||
command:
|
command:
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue