From e5a16a0f79dee2690e5dc5390bde66c594ccdf18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Sat, 9 Nov 2024 13:06:36 +0100 Subject: [PATCH] Simplify certificate setup for APEL - no hook script --- notebooks-accounting/templates/ssm-cronjob.yaml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/notebooks-accounting/templates/ssm-cronjob.yaml b/notebooks-accounting/templates/ssm-cronjob.yaml index 74e79d8..01f95f0 100644 --- a/notebooks-accounting/templates/ssm-cronjob.yaml +++ b/notebooks-accounting/templates/ssm-cronjob.yaml @@ -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