-
Notifications
You must be signed in to change notification settings - Fork 0
/
slurmmaster.yaml
41 lines (40 loc) · 927 Bytes
/
slurmmaster.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
39
40
41
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
labels:
app: slurmmaster
name: slurmmaster
spec:
replicas: 1
selector:
matchLabels:
app: slurmmaster
template:
metadata:
labels:
app: slurmmaster
spec:
hostname: slurmmaster
containers:
- image: rancavil/slurm-master:19.05.5-1
imagePullPolicy: IfNotPresent
name: slurm-master
resources: {}
volumeMounts:
- mountPath: /home/admin
name: shared-vol
- name: slurm-config
mountPath: /etc/slurm-llnl/slurm.conf
subPath: slurm.conf
volumes:
- name: shared-vol
persistentVolumeClaim:
claimName: my-pvc
- name: slurm-config
configMap:
name: slurmconf
dnsConfig:
searches:
- slurmd-headless.YOURNAMESPACE.svc.cluster.local
dnsPolicy: ClusterFirst