Skip to content

Commit

Permalink
chore: relocating mkdir for record uploader (#973)
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Tang <[email protected]>
  • Loading branch information
JeffreyDallas authored Sep 18, 2024
1 parent 9c61ac7 commit 1178ea6
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions charts/fullstack-deployment/templates/network-node-statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,20 +147,6 @@ spec:
containers:
# Root Container: {{ $node.name }}-root-container
- name: {{ $root.nameOverride | default "root-container" }}
startupProbe:
exec:
command:
- "/bin/sh"
- "-c"
- |
task() {
mkdir -p /opt/hgcapp/recordStreams/record{{ $node.accountId }}/sidecar
chmod 777 /opt/hgcapp/recordStreams/record{{ $node.accountId }}/sidecar
}
task
failureThreshold: 30
periodSeconds: 10
timeoutSeconds: 5
image: {{ include "fullstack.container.image" (dict "image" $rootImage "Chart" $.Chart "defaults" $.Values.defaults) }}
imagePullPolicy: {{ include "fullstack.images.pullPolicy" (dict "image" $rootImage "defaults" $.Values.defaults) }}
securityContext: # need to run as root with privileged mode
Expand Down Expand Up @@ -537,6 +523,18 @@ spec:
{{- end }}
{{- end }}
initContainers:
- name: init-record-streams-directories
image: busybox:1.36.1
command:
- "/bin/sh"
- "-c"
- |
mkdir -p /opt/hgcapp/recordStreams/sidecar
chmod 777 /opt/hgcapp/recordStreams/sidecar
volumeMounts:
- name: hgcapp-record-streams
mountPath: /opt/hgcapp/recordStreams
subPath: record{{ $node.accountId }}
- name: init-hedera
image: curlimages/curl:8.9.1
command:
Expand Down

0 comments on commit 1178ea6

Please sign in to comment.