Skip to content

Commit bab09f3

Browse files
committed
Add charm examples
1 parent a84cc3b commit bab09f3

File tree

2 files changed

+146
-0
lines changed

2 files changed

+146
-0
lines changed
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
2+
apiVersion: kubeflow.org/v2beta1
3+
kind: MPIJob
4+
metadata:
5+
name: charm-0
6+
spec:
7+
slotsPerWorker: 1
8+
priority: 1
9+
runPolicy:
10+
cleanPodPolicy: Running
11+
ttlSecondsAfterFinished: 60
12+
sshAuthMountPath: /home/mpiuser/.ssh
13+
mpiReplicaSpecs:
14+
Launcher:
15+
maxReplicas: 1
16+
template:
17+
spec:
18+
volumes:
19+
- name: shared-storage
20+
persistentVolumeClaim:
21+
claimName: shared-storage
22+
containers:
23+
- image: adityapb/charm-netlrts:dev2
24+
imagePullPolicy: Always
25+
name: mpi-launcher
26+
securityContext:
27+
runAsUser: 1000
28+
command:
29+
- /app/charmrun
30+
args:
31+
- /app/jacobi2d
32+
- "16384"
33+
- "4096"
34+
- "1600"
35+
- +balancer
36+
- GreedyLB
37+
- +LBDebug
38+
- "3"
39+
- ++verbose
40+
volumeMounts:
41+
- mountPath: /dev/shm
42+
name: shared-storage
43+
resources:
44+
limits:
45+
cpu: 1
46+
memory: 1Gi
47+
Worker:
48+
minReplicas: 1
49+
maxReplicas: 10
50+
template:
51+
spec:
52+
volumes:
53+
- name: shared-storage
54+
persistentVolumeClaim:
55+
claimName: shared-storage
56+
containers:
57+
- image: adityapb/charm-netlrts:dev2
58+
imagePullPolicy: Always
59+
name: mpi-worker
60+
securityContext:
61+
runAsUser: 1000
62+
command:
63+
- /usr/sbin/sshd
64+
args:
65+
- -De
66+
- -f
67+
- /home/mpiuser/.sshd_config
68+
volumeMounts:
69+
- mountPath: /dev/shm
70+
name: shared-storage
71+
resources:
72+
limits:
73+
cpu: 1
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
2+
apiVersion: kubeflow.org/v2beta1
3+
kind: MPIJob
4+
metadata:
5+
name: charm-2
6+
spec:
7+
slotsPerWorker: 1
8+
priority: 3
9+
runPolicy:
10+
cleanPodPolicy: Running
11+
ttlSecondsAfterFinished: 60
12+
sshAuthMountPath: /home/mpiuser/.ssh
13+
mpiReplicaSpecs:
14+
Launcher:
15+
maxReplicas: 1
16+
template:
17+
spec:
18+
volumes:
19+
- name: shared-storage
20+
persistentVolumeClaim:
21+
claimName: shared-storage
22+
containers:
23+
- image: adityapb/charm-netlrts:dev2
24+
imagePullPolicy: Always
25+
name: mpi-launcher
26+
securityContext:
27+
runAsUser: 1000
28+
command:
29+
- /app/charmrun
30+
args:
31+
- /app/jacobi2d
32+
- "8192"
33+
- "1024"
34+
- "300"
35+
- +balancer
36+
- GreedyLB
37+
- +LBDebug
38+
- "3"
39+
- ++verbose
40+
volumeMounts:
41+
- mountPath: /dev/shm
42+
name: shared-storage
43+
resources:
44+
limits:
45+
cpu: 1
46+
memory: 1Gi
47+
Worker:
48+
minReplicas: 1
49+
maxReplicas: 10
50+
template:
51+
spec:
52+
volumes:
53+
- name: shared-storage
54+
persistentVolumeClaim:
55+
claimName: shared-storage
56+
containers:
57+
- image: adityapb/charm-netlrts:dev2
58+
imagePullPolicy: Always
59+
name: mpi-worker
60+
securityContext:
61+
runAsUser: 1000
62+
command:
63+
- /usr/sbin/sshd
64+
args:
65+
- -De
66+
- -f
67+
- /home/mpiuser/.sshd_config
68+
volumeMounts:
69+
- mountPath: /dev/shm
70+
name: shared-storage
71+
resources:
72+
limits:
73+
cpu: 1

0 commit comments

Comments
 (0)