Skip to content

Commit e71372e

Browse files
committed
feat: update cardano-node to use socat as PID1
Signed-off-by: Ales Verbic <verbotenj@blinklabs.io>
1 parent 7998d12 commit e71372e

2 files changed

Lines changed: 10 additions & 12 deletions

File tree

charts/cardano-node/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: cardano-node
33
description: Creates a Cardano node deployment with SOCAT sidecar
4-
version: 0.8.1
4+
version: 0.8.2
55
appVersion: 10.5.3
66
maintainers:
77
- name: aurora

charts/cardano-node/templates/statefulset.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ spec:
1515
annotations:
1616
cluster-autoscaler.kubernetes.io/safe-to-evict: "false"
1717
kubectl.kubernetes.io/default-container: cardano-node
18-
{{- if .Values.blockProducer.enabled }}
19-
checksum/keys: {{ .Values.blockProducer.keys | toJson | sha256sum }}
20-
{{- end }}
21-
{{- if .Values.topology.enabled }}
22-
checksum/topology: {{ .Values.topology | toJson | sha256sum }}
18+
{{- if .Values.blockProducer.enabled }}
19+
checksum/keys: {{ .Values.blockProducer.keys | toJson | sha256sum }}
20+
{{- end }}
21+
{{- if .Values.topology.enabled }}
22+
checksum/topology: {{ .Values.topology | toJson | sha256sum }}
2323
{{- end }}
2424
labels:
2525
{{ include "cardano-node.labels" . | indent 8 }}
@@ -215,12 +215,10 @@ spec:
215215
image: {{ .Values.image.repository }}:{{ .Values.image.tag }}
216216
imagePullPolicy: IfNotPresent
217217
command:
218-
- sh
219-
- -c
220-
- socat TCP-LISTEN:${PORT},fork UNIX-CLIENT:/ipc/node.socket,ignoreeof
221-
env:
222-
- name: PORT
223-
value: "{{ .Values.service.ports.socatNtc.targetPort }}"
218+
- socat
219+
args:
220+
- "TCP-LISTEN:{{ .Values.service.ports.socatNtc.targetPort }},fork"
221+
- "UNIX-CLIENT:/ipc/node.socket,ignoreeof"
224222
ports:
225223
- containerPort: {{ .Values.service.ports.socatNtc.targetPort }}
226224
resources: {{ .Values.socat.resources | toYaml | nindent 10 }}

0 commit comments

Comments
 (0)