fabric-samples/test-network-k8s/kube/org1/org1-job-scrub-fabric-volumes.yaml
Basil K Y 65160ae2f3 seperate namespace for each organization
Signed-off-by: Basil K Y <techiebasil@gmail.com>
2022-08-22 18:54:15 +05:30

32 lines
695 B
YAML

#
# Copyright IBM Corp. All Rights Reserved.
#
# SPDX-License-Identifier: Apache-2.0
#
---
apiVersion: batch/v1
kind: Job
metadata:
name: job-scrub-fabric-volumes
spec:
backoffLimit: 0
completions: 1
template:
metadata:
name: job-scrub-fabric-volumes
spec:
restartPolicy: "Never"
containers:
- name: main
image: busybox:latest
command:
- sh
- -c
- "rm -rvf /mnt/fabric-*/*"
volumeMounts:
- name: fabric-org1-volume
mountPath: /mnt/fabric-org1
volumes:
- name: fabric-org1-volume
persistentVolumeClaim:
claimName: fabric-org1