mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 01:25:10 +00:00
1. busybox latest image tag 2. pull images with more images 3. load images to kind cluster at local Signed-off-by: Sam Yuan <yy19902439@126.com>
43 lines
1 KiB
YAML
43 lines
1 KiB
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-org0-volume
|
|
mountPath: /mnt/fabric-org0
|
|
- name: fabric-org1-volume
|
|
mountPath: /mnt/fabric-org1
|
|
- name: fabric-org2-volume
|
|
mountPath: /mnt/fabric-org2
|
|
volumes:
|
|
- name: fabric-org0-volume
|
|
persistentVolumeClaim:
|
|
claimName: fabric-org0
|
|
- name: fabric-org1-volume
|
|
persistentVolumeClaim:
|
|
claimName: fabric-org1
|
|
- name: fabric-org2-volume
|
|
persistentVolumeClaim:
|
|
claimName: fabric-org2
|
|
|