-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathminicluster-template.yaml
38 lines (31 loc) · 1.02 KB
/
minicluster-template.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
apiVersion: flux-framework.org/v1alpha1
kind: MiniCluster
metadata:
name: {{ minicluster.name }}
namespace: {{ minicluster.namespace }}
spec:
# Number of pods to create for MiniCluster
size: {{ minicluster.size }}
# Cleanup volume (pvc and pv) between jobs
cleanup: true
# Disable verbose output and run timing
logging:
quiet: false
# Named volumes expected to be in MiniKube VM, OR on kubernetes node
# E.g., for a minikube bind you might do:
# minikube bind <host>:<minikube-vm>.
# minikube bind /tmp/data-volumes:/tmp/data.
volumes:
data:
path: /tmp/data
containers:
- image: {{ job.image }}
command: {{ job.command }}
# This says to mount the volume called "data" to "/data" in the container
volumes:
data:
path: /data
# custom preCommand logic (run at start of script)
# here we make sure PATH and Pythonpath are added to flux
preCommand: |
asFlux="sudo -u flux -E PYTHONPATH=$PYTHONPATH -E PATH=$PATH"