@@ -7,6 +7,8 @@ metadata:
77 {{- with .Values.podLabels }}
88 {{- toYaml . | nindent 4 }}
99 {{- end }}
10+ chain : {{ .Values.chain }}
11+ RPCPort : " {{ index .Values .Values.chain " RPCPort" }}"
1012 app : {{ include "bitcoincore.fullname" . }}
1113 {{- if .Values.collectLogs }}
1214 collect_logs : " true"
@@ -29,21 +31,23 @@ spec:
2931 imagePullPolicy : {{ .Values.image.pullPolicy }}
3032 ports :
3133 - name : rpc
32- containerPort : {{ .Values.regtest. RPCPort }}
34+ containerPort : {{ index .Values .Values.chain " RPCPort" }}
3335 protocol : TCP
3436 - name : p2p
35- containerPort : {{ .Values.regtest. P2PPort }}
37+ containerPort : {{ index .Values .Values.chain " P2PPort" }}
3638 protocol : TCP
3739 - name : zmq-tx
38- containerPort : {{ .Values.regtest. ZMQTxPort }}
40+ containerPort : {{ .Values.ZMQTxPort }}
3941 protocol : TCP
4042 - name : zmq-block
41- containerPort : {{ .Values.regtest. ZMQBlockPort }}
43+ containerPort : {{ .Values.ZMQBlockPort }}
4244 protocol : TCP
4345 livenessProbe :
4446 {{- toYaml .Values.livenessProbe | nindent 8 }}
4547 readinessProbe :
4648 {{- toYaml .Values.readinessProbe | nindent 8 }}
49+ tcpSocket :
50+ port : {{ index .Values .Values.chain "RPCPort" }}
4751 resources :
4852 {{- toYaml .Values.resources | nindent 8 }}
4953 volumeMounts :
6569 - name : BITCOIN_RPC_HOST
6670 value : " 127.0.0.1"
6771 - name : BITCOIN_RPC_PORT
68- value : " {{ .Values.regtest. RPCPort }}"
72+ value : " {{ index .Values .Values.chain " RPCPort" }}"
6973 - name : BITCOIN_RPC_USER
7074 value : user
7175 - name : BITCOIN_RPC_PASSWORD
0 commit comments