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