Skip to content

Commit

Permalink
[bitcoin-core] enable extraPort in statefulset, rev version (#14)
Browse files Browse the repository at this point in the history
* [bitcoin-core] enable extraPort in statefulset, rev version
  • Loading branch information
deantchi authored Jul 14, 2023
1 parent 7fac1dd commit 512acb5
Show file tree
Hide file tree
Showing 3 changed files with 9 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.0.0
version: 2.0.1
3 changes: 3 additions & 0 deletions hirosystems/bitcoin-core/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ spec:
containerPort: {{ .Values.containerPorts.rpc }}
- name: tcp-p2p
containerPort: {{ .Values.containerPorts.p2p }}
{{- if .Values.extraPorts }}
{{- include "common.tplvalues.render" (dict "value" .Values.extraPorts "context" $) | nindent 12 }}
{{- end }}
{{- if not .Values.diagnosticMode.enabled }}
{{- if .Values.livenessProbe.enabled }}
livenessProbe: {{- include "common.tplvalues.render" (dict "value" (omit .Values.livenessProbe "enabled") "context" $) | nindent 12 }}
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 @@ -146,6 +146,11 @@ containerPorts:
##
# rpc: 38332
# p2p: 38333

## @param service.extraPorts Extra ports to expose in bitcoin-core container
##
extraPorts: []

## Configure extra options for bitcoin-core containers' liveness and readiness probes
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
## @param livenessProbe.enabled Enable livenessProbe on bitcoin-core containers
Expand Down

0 comments on commit 512acb5

Please sign in to comment.