BjornMagnussonXA | a549157 | 2021-05-04 09:21:24 +0200 | [diff] [blame] | 1 | apiVersion: v1 |
2 | kind: Pod | ||||
3 | metadata: | ||||
4 | name: pvc-cleaner | ||||
5 | namespace: $PVC_CLEANER_NAMESPACE | ||||
6 | spec: | ||||
7 | restartPolicy: Never | ||||
8 | containers: | ||||
9 | - name: pvc-cleaner | ||||
10 | image: "ubuntu:20.10" | ||||
11 | command: ["/bin/sh","-c"] | ||||
12 | args: ["rm -rf $PVC_CLEANER_RM_PATH/*"] | ||||
13 | volumeMounts: | ||||
14 | - mountPath: $PVC_CLEANER_RM_PATH | ||||
15 | name: pvc-cleaner-m-vol | ||||
16 | volumes: | ||||
17 | - name: pvc-cleaner-m-vol | ||||
18 | persistentVolumeClaim: | ||||
19 | claimName: $PVC_CLEANER_CLAIMNAME |