theshire/.taskfiles/rook/WipeRookDataJob.tmpl.yaml

30 lines
687 B
YAML
Raw Normal View History

2024-01-11 15:03:54 -06:00
---
apiVersion: batch/v1
kind: Job
metadata:
name: "${jobName}"
namespace: "default"
spec:
ttlSecondsAfterFinished: 3600
template:
spec:
automountServiceAccountToken: false
restartPolicy: Never
nodeName: ${node}
containers:
- name: disk-wipe
2024-05-28 08:04:34 -05:00
image: docker.io/library/alpine:3.20.0
2024-01-11 15:03:54 -06:00
securityContext:
privileged: true
resources: {}
command: ["/bin/sh", "-c"]
args:
- rm -rf /mnt/host_var/lib/rook
volumeMounts:
- mountPath: /mnt/host_var
name: host-var
volumes:
- name: host-var
hostPath:
path: /var