Skip to content

Commit

Permalink
[bitcoin-core]: add appProtocol property for rpc and p2p ports
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieC3 committed Jul 23, 2024
1 parent fc194c6 commit 7d42b99
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hirosystems/bitcoin-core/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ sources:
- https://github.com/bitcoin/bitcoin
- https://github.com/ruimarinho/docker-bitcoin-core
- https://bitcoin.org
version: 2.1.4
version: 2.1.5
6 changes: 6 additions & 0 deletions hirosystems/bitcoin-core/templates/service-set.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ spec:
{{- end }}
ports:
- name: http-rpc
{{- if $.Values.service.ports.rpcAppProtocol }}
appProtocol: {{ $.Values.service.ports.rpcAppProtocol }}
{{- end }}
port: {{ $.Values.service.ports.rpc }}
{{- if $.Values.service.ports.rpcTargetPort }}
targetPort: {{ $.Values.service.ports.rpcTargetPort }}
Expand All @@ -57,6 +60,9 @@ spec:
nodePort: null
{{- end }}
- name: tcp-p2p
{{- if $.Values.service.ports.p2pAppProtocol }}
appProtocol: {{ $.Values.service.ports.p2pAppProtocol }}
{{- end }}
port: {{ $.Values.service.ports.p2p }}
{{- if $.Values.service.ports.p2pTargetPort }}
targetPort: {{ $.Values.service.ports.p2pTargetPort }}
Expand Down
6 changes: 6 additions & 0 deletions hirosystems/bitcoin-core/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ spec:
{{- end }}
ports:
- name: http-rpc
{{- if .Values.service.ports.rpcAppProtocol }}
appProtocol: {{ .Values.service.ports.rpcAppProtocol }}
{{- end }}
port: {{ .Values.service.ports.rpc }}
{{- if .Values.service.ports.rpcTargetPort }}
targetPort: {{ .Values.service.ports.rpcTargetPort }}
Expand All @@ -51,6 +54,9 @@ spec:
nodePort: null
{{- end }}
- name: tcp-p2p
{{- if .Values.service.ports.p2pAppProtocol }}
appProtocol: {{ .Values.service.ports.p2pAppProtocol }}
{{- end }}
port: {{ .Values.service.ports.p2p }}
{{- if .Values.service.ports.p2pTargetPort }}
targetPort: {{ .Values.service.ports.p2pTargetPort }}
Expand Down
5 changes: 5 additions & 0 deletions hirosystems/bitcoin-core/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,11 @@ service:
##
# rpcTargetPort: 8332
# p2pTargetPort: 8333
## @param service.ports.rpcAppProtocol bitcoin-core service RPC app protocol
## @param service.ports.p2pAppProtocol bitcoin-core service P2P app protocol
##
# rpcAppProtocol: http
# p2pAppProtocol: tcp
## Node ports to expose
## @param service.nodePorts.rpc Node port for RPC
## @param service.nodePorts.p2p Node port for P2P
Expand Down

0 comments on commit 7d42b99

Please sign in to comment.