Commit 030136b5 authored by Koehorst, Jasper's avatar Koehorst, Jasper
Browse files

templates added

parent 1af27091
apiVersion: v1
kind: Pod
metadata:
name: munlock-sync-cwl-HOSTNAME
namespace: unlock
labels:
purpose: sync-folder-to-local-node
spec:
containers:
- name: munlock-sync-HOSTNAME
image: docker-registry.wur.nl/unlock/docker
command: ["/bin/sh","-c"]
args: ["\
echo starting;\
echo Syncing /unlock/infrastructure/cwl;\
mkdir -p /unlock/infrastructure/cwl;\
rm -rf /unlock/infrastructure/cwl;\
mkdir -p /unlock/infrastructure/cwl;\
irsync -srv i:/unlock/infrastructure/cwl/ /unlock/infrastructure/cwl;\
echo finished;\
"]
volumeMounts:
- mountPath: /unlock
name: unlock
restartPolicy: OnFailure
volumes:
- name: unlock
persistentVolumeClaim:
claimName: unlock
nodeSelector:
kubernetes.io/hostname: HOSTNAME
apiVersion: v1
kind: Pod
metadata:
name: munlock-sync-infrastructure-HOSTNAME
namespace: unlock
labels:
purpose: sync-folder-to-local-node
spec:
containers:
- name: munlock-sync-HOSTNAME
image: docker-registry.wur.nl/unlock/docker
command: ["/bin/sh","-c"]
args: ["\
echo starting;\
echo Syncing /unlock/infrastructure;\
mkdir -p /unlock/infrastructure;\
irsync -srv i:/unlock/infrastructure/ /unlock/infrastructure;\
echo finished;\
"]
volumeMounts:
- mountPath: /unlock
name: unlock
restartPolicy: OnFailure
volumes:
- name: unlock
persistentVolumeClaim:
claimName: unlock
nodeSelector:
kubernetes.io/hostname: HOSTNAME
apiVersion: v1
kind: Pod
metadata:
name: munlock-sync-references-HOSTNAME
namespace: unlock
labels:
purpose: sync-folder-to-local-node
spec:
containers:
- name: munlock-sync-HOSTNAME
image: docker-registry.wur.nl/unlock/docker
command: ["/bin/sh","-c"]
args: ["\
echo starting;\
echo Syncing /unlock/references/databases;\
mkdir -p /unlock/references/databases;\
irsync -srv i:/unlock/references/databases/ /unlock/references/databases;\
echo finished;\
"]
volumeMounts:
- mountPath: /unlock
name: unlock
restartPolicy: OnFailure
volumes:
- name: unlock
persistentVolumeClaim:
claimName: unlock
nodeSelector:
kubernetes.io/hostname: HOSTNAME
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment