Skip to content

Commit

Permalink
Simplify certificate setup for APEL - no hook script
Browse files Browse the repository at this point in the history
  • Loading branch information
valtri committed Nov 9, 2024
1 parent f325574 commit e5a16a0
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions notebooks-accounting/templates/ssm-cronjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,10 @@ spec:
- name: ssm
image: "{{ .Values.ssm.image.repository }}:{{ .Values.ssm.image.tag }}"
imagePullPolicy: {{ .Values.ssm.image.pullPolicy }}
lifecycle:
postStart:
exec:
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/; 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"
- "mkdir /etc/grid-security; install -v -m 0600 /secrets/hostkey.pem /etc/grid-security/; install -v -m 0644 /secrets/hostcert.pem /etc/grid-security/; ssmsend"
volumeMounts:
- mountPath: /accounting
name: shared-accounting-vol
Expand Down

0 comments on commit e5a16a0

Please sign in to comment.