Skip to content

Commit

Permalink
[stacks-blockchain] add extraPorts to sts (#13)
Browse files Browse the repository at this point in the history
* [stacks-blockchain] add extraPorts to sts

* cleanup spacing

* rev chart version
  • Loading branch information
deantchi authored Mar 17, 2023
1 parent bc107f7 commit 9ef2b9b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion hirosystems/stacks-blockchain/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ name: stacks-blockchain
sources:
- https://github.com/stacks-network/stacks-blockchain
- https://docs.stacks.co/
version: 1.2.5
version: 1.2.6
3 changes: 3 additions & 0 deletions hirosystems/stacks-blockchain/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ spec:
- name: tcp-metrics
containerPort: {{ .Values.containerPorts.metrics }}
{{- end }}
{{- 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
4 changes: 4 additions & 0 deletions hirosystems/stacks-blockchain/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@ containerPorts:
rpc: 20443
p2p: 20444
metrics: 9153

## @param service.extraPorts Extra ports to expose in stacks-blockchain container (normally used with the `sidecars` value)
##
extraPorts: []
## Configure extra options for stacks-blockchain containers' liveness and readiness probes
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
## @param stacksBlockchain.livenessProbe.enabled Enable livenessProbe on stacks-blockchain containers
Expand Down

0 comments on commit 9ef2b9b

Please sign in to comment.