@@ -8,22 +8,17 @@ metadata:
8
8
spec :
9
9
replicas : {{ .Values.replicaCount }}
10
10
selector :
11
- matchLabels :
12
- cardano_network : {{ .Values.cardano_network }}
13
- app.kubernetes.io/name : {{ include "tx-submit-api.fullname" . }}
14
- {{ include "tx-submit-api.labels" . | indent 6 }}
11
+ matchLabels : {{ include "tx-submit-api.selectorLabels" . | nindent 6 }}
15
12
template :
16
13
metadata :
17
- labels :
18
- cardano_network : {{ .Values.cardano_network }}
19
- app.kubernetes.io/name : {{ include "tx-submit-api.fullname" . }}
20
- {{ include "tx-submit-api.labels" . | indent 8 }}
14
+ labels : {{ include "tx-submit-api.selectorLabels" . | nindent 8 }}
21
15
spec :
22
16
{{- if .Values.affinity }}
23
17
affinity : {{ .Values.affinity | toYaml | nindent 8 }}
24
18
{{- end }}
25
19
containers :
26
- - env :
20
+ - name : tx-submit-api
21
+ env :
27
22
- name : CARDANO_NETWORK
28
23
value : {{ .Values.cardano_network }}
29
24
- name : CARDANO_NODE_SOCKET_TCP_HOST
34
29
value : {{ .Values.cardano_node.skip_check | quote }}
35
30
image : {{ .Values.image.repository }}:{{ .Values.image.tag }}
36
31
imagePullPolicy : IfNotPresent
37
- name : tx-submit-api
38
32
ports :
39
33
- name : api
40
34
containerPort : 8090
46
40
volumeMounts :
47
41
- mountPath : /node-ipc
48
42
name : node-ipc
43
+ - name : socat-socket-server
44
+ env :
45
+ - name : CARDANO_NODE_SOCKET_TCP_HOST
46
+ value : {{ .Values.cardano_node.host }}
47
+ - name : CARDANO_NODE_SOCKET_TCP_PORT
48
+ value : {{ .Values.cardano_node.port | quote }}
49
+ - name : SOCAT_TIMEOUT
50
+ value : " 3600"
51
+ image : alpine/socat
52
+ args :
53
+ - -d
54
+ - -d
55
+ - " UNIX-LISTEN:/node-ipc/node.socket,fork,unlink-early"
56
+ - " TCP:$(CARDANO_NODE_SOCKET_TCP_HOST):$(CARDANO_NODE_SOCKET_TCP_PORT),keepalive,nodelay,connect-timeout=5,forever,interval=5"
57
+ volumeMounts :
58
+ - mountPath : /node-ipc
59
+ name : node-ipc
49
60
restartPolicy : Always
50
61
serviceAccountName : " "
51
62
{{- if .Values.tolerations }}
0 commit comments