-
Notifications
You must be signed in to change notification settings - Fork 0
/
slurmnode.yaml
46 lines (45 loc) · 1.01 KB
/
slurmnode.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
42
43
44
45
46
apiVersion: apps/v1
kind: StatefulSet
metadata:
annotations:
labels:
app: slurmd
name: slurmd
spec:
replicas: 3
serviceName: slurmd-headless
selector:
matchLabels:
app: slurmd
template:
metadata:
labels:
app: slurmd
spec:
containers:
- image: rancavil/slurm-node:19.05.5-1
env:
- name: SLURM_NODENAME
valueFrom:
fieldRef:
fieldPath: metadata.name
imagePullPolicy: IfNotPresent
name: slurm-node
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.slurm2.svc.cluster.local
#dnsPolicy: ClusterFirst