fabric-samples/test-network-kind/kube/job-scrub-fabric-volume.yaml
jkneubuh 5860027ac8
kubernetes test network : initial commit (#471)
* This is the initial add of a test-network-kind

Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>

* Update the test-network-kind README; removes the local docker registry; updated 'clean' instructions

Signed-off-by: Josh Kneubuhl <jkneubuh@us.ibm.com>

Co-authored-by: Matthew B White <mbwhite@users.noreply.github.com>
2021-09-09 14:04:07 +01:00

32 lines
No EOL
682 B
YAML

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