Skip to content

Commit

Permalink
Fix certificates setup for APEL - wait for postStart hook
Browse files Browse the repository at this point in the history
  • Loading branch information
valtri committed Nov 8, 2024
1 parent bbf9f48 commit f325574
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions notebooks-accounting/templates/ssm-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@ spec:
command:
- "/bin/sh"
- "-c"
- "mkdir /etc/grid-security; install -v -m 0600 /secrets/hostkey.pem /etc/grid-security/; install -v -m 0644 /secrets/hostcert.pem /etc/grid-security/; true"
command: ["ssmsend"]
- "mkdir /etc/grid-security; install -v -m 0600 /secrets/hostkey.pem /etc/grid-security/; install -v -m 0644 /secrets/hostcert.pem /etc/grid-security/; touch /tmp/ssm-started.txt"
command:
- "/bin/sh"
- "-c"
- "while [ ! -f /tmp/ssm-started.txt ] && [ \"$i\" -lt 50 ]; do sleep 0.1; i=$((i+1)); done; ssmsend"
volumeMounts:
- mountPath: /accounting
name: shared-accounting-vol
Expand Down

0 comments on commit f325574

Please sign in to comment.