Skip to content

Commit def4a77

Browse files
authored
Merge pull request #29 from stackhpc/feat/hostnetwork
Use host networking
2 parents a0193a6 + 4d4a15b commit def4a77

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

slurm-cluster-chart/templates/slurmd.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ spec:
2525
- slurmd
2626
- -F
2727
- -vvv
28+
- -N
29+
- "$(POD_NAME)"
30+
env:
31+
- name: POD_NAME
32+
valueFrom:
33+
fieldRef:
34+
fieldPath: metadata.name
2835
image: {{ .Values.slurmImage }}
2936
name: slurmd
3037
ports:
@@ -41,6 +48,8 @@ spec:
4148
subPath: munge.key
4249
securityContext:
4350
privileged: true
51+
hostNetwork: true
52+
dnsPolicy: ClusterFirstWithHostNet
4453
dnsConfig:
4554
searches:
4655
- slurmd.{{ .Release.Namespace }}.svc.cluster.local

0 commit comments

Comments
 (0)