corda/experimental/kubernetes/templates/distribute-healthcheck-cordapp.yml

23 lines
555 B
YAML
Raw Normal View History

apiVersion: batch/v1
kind: Job
metadata:
name: distribute-cordapps
spec:
template:
spec:
imagePullSecrets:
- name: regsecret
containers:
- name: distribute-healthcheck-cordapp
image: {{ image }}
command: ["/bin/sh", "-c", "rm -f cordapps-mnt/* && cp /cordapps/* /cordapps-mnt/"]
volumeMounts:
- name: cordapps
mountPath: /cordapps-mnt
restartPolicy: Never
volumes:
- name: cordapps
persistentVolumeClaim:
claimName: cordapps
backoffLimit: 4