Skip to content

Commit

Permalink
Image and manifest changes for configmap tests for conf files
Browse files Browse the repository at this point in the history
  • Loading branch information
wtripp180901 committed Jun 23, 2023
1 parent 08ffd5f commit f4e57be
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 66 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-containers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
paths:
- .github/workflows/build-containers.yml
- Dockerfile
- docker-entrypoint.sh
workflow_dispatch:

jobs:
Expand Down
4 changes: 2 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ then

echo "---> Starting the Slurm Database Daemon (slurmdbd) ..."

chown slurm:slurm /etc/slurm/slurmdbd.conf
chmod 600 /etc/slurm/slurmdbd.conf
#chown slurm:slurm /etc/slurm/slurmdbd.conf
#chmod 600 /etc/slurm/slurmdbd.conf
{
. /etc/slurm/slurmdbd.conf
until echo "SELECT 1" | mysql -h $StorageHost -u$StorageUser -p$StoragePass 2>&1 > /dev/null
Expand Down
3 changes: 3 additions & 0 deletions kube-deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
kubectl apply -f 'kube-manifests/*.yaml'
kubectl create configmap slurm-conf-configmap --from-file=slurm.conf
kubectl create configmap slurmdbd-conf-configmap --from-file=slurmdbd.conf
14 changes: 0 additions & 14 deletions kube-manifests/c1-claim3-persistentvolumeclaim.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions kube-manifests/slurmctld-claim3-persistentvolumeclaim.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions kube-manifests/slurmdbd-claim2-persistentvolumeclaim.yaml

This file was deleted.

14 changes: 0 additions & 14 deletions kube-manifests/slurmdbd-claim3-persistentvolumeclaim.yaml

This file was deleted.

17 changes: 9 additions & 8 deletions kube-manifests/slurmdbd-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,20 @@ spec:
- mountPath: /var/log/slurm
name: var-log-slurm
- mountPath: /etc/slurm/slurm.conf
name: slurmdbd-claim2
name: slurm-config-volume
- mountPath: /etc/slurm/slurmdbd.conf
name: slurmdbd-claim3
name: dbd-config-volume
hostname: slurmdbd
restartPolicy: Always
volumes:
- name: var-log-slurm
persistentVolumeClaim:
claimName: var-log-slurm
- name: slurmdbd-claim2
persistentVolumeClaim:
claimName: slurmdbd-claim2
- name: slurmdbd-claim3
persistentVolumeClaim:
claimName: slurmdbd-claim3
- name: dbd-config-volume
configMap:
name: slurmdbd-conf-configmap
defaultMode: 384
- name: slurm-config-volume
configMap:
name: slurm-conf-configmap
status: {}

0 comments on commit f4e57be

Please sign in to comment.