Skip to content

Commit

Permalink
bugfix: persist data correctly for slurmctld
Browse files Browse the repository at this point in the history
  • Loading branch information
kincl committed Oct 30, 2023
1 parent c5f77d4 commit 487902c
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 29 deletions.
28 changes: 14 additions & 14 deletions slurm/manifests/statefulset-compute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,6 @@ spec:
- name: munge-socket
mountPath: /run/munge
containers:
- name: munge
image: ghcr.io/naps-product-sa/openshift-batch/munge:latest
command:
- /sbin/munged
- -F
securityContext:
runAsUser: 500
runAsGroup: 500
fsGroup: 500
volumeMounts:
- name: munge-socket
mountPath: /run/munge
- name: munge-key
mountPath: /etc/munge
- name: slurm
image: ghcr.io/naps-product-sa/openshift-batch/slurm:latest
command:
Expand All @@ -78,6 +64,20 @@ spec:
subPath: slurm.conf
- name: shared
mountPath: /home
- name: munge
image: ghcr.io/naps-product-sa/openshift-batch/munge:latest
command:
- /sbin/munged
- -F
securityContext:
runAsUser: 500
runAsGroup: 500
fsGroup: 500
volumeMounts:
- name: munge-socket
mountPath: /run/munge
- name: munge-key
mountPath: /etc/munge
volumes:
- name: munge-socket
emptyDir: {}
Expand Down
45 changes: 30 additions & 15 deletions slurm/manifests/statefulset-head.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ spec:
enableServiceLinks: false
terminationGracePeriodSeconds: 10
serviceAccountName: slurm
securityContext:
fsGroup: 501
fsGroupChangePolicy: Always
initContainers:
- name: fix-munge-paths
image: ghcr.io/naps-product-sa/openshift-batch/munge:latest
Expand All @@ -44,20 +47,6 @@ spec:
- name: munge-socket
mountPath: /run/munge
containers:
- name: munge
image: ghcr.io/naps-product-sa/openshift-batch/munge:latest
command:
- /sbin/munged
- -F
securityContext:
runAsUser: 500
runAsGroup: 500
fsGroup: 500
volumeMounts:
- name: munge-socket
mountPath: /run/munge
- name: munge-key
mountPath: /etc/munge
- name: slurm
image: ghcr.io/naps-product-sa/openshift-batch/slurm:latest
command:
Expand All @@ -68,14 +57,40 @@ spec:
runAsGroup: 501
volumeMounts:
- name: slurm-data
mountPath: /var/spool/slurmd
mountPath: /var/spool/slurmctld
- name: munge-socket
mountPath: /run/munge
- name: slurm-conf
mountPath: /etc/slurm.conf
subPath: slurm.conf
- name: shared
mountPath: /home
- name: exporter
image: ghcr.io/naps-product-sa/openshift-batch/slurm:latest
command:
- /usr/bin/prometheus-slurm-exporter
securityContext:
runAsUser: 501
runAsGroup: 501
volumeMounts:
- name: munge-socket
mountPath: /run/munge
- name: slurm-conf
mountPath: /etc/slurm.conf
subPath: slurm.conf
- name: munge
image: ghcr.io/naps-product-sa/openshift-batch/munge:latest
command:
- /sbin/munged
- -F
securityContext:
runAsUser: 500
runAsGroup: 500
volumeMounts:
- name: munge-socket
mountPath: /run/munge
- name: munge-key
mountPath: /etc/munge
volumes:
- name: munge-socket
emptyDir: {}
Expand Down

0 comments on commit 487902c

Please sign in to comment.