Skip to content

Commit

Permalink
[stacks-blockchain]: exclude metrics port from headless service to pr…
Browse files Browse the repository at this point in the history
…event metric duplication
  • Loading branch information
CharlieC3 committed Oct 30, 2024
1 parent 74e49ac commit 12a4cd8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
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: 2.2.0
version: 2.2.1
8 changes: 0 additions & 8 deletions hirosystems/stacks-blockchain/templates/service-headless.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ spec:
{{- else if eq .Values.service.type "ClusterIP" }}
nodePort: null
{{- end }}
- name: tcp-metrics
port: {{ .Values.service.ports.metrics }}
protocol: TCP
{{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) (not (empty .Values.service.nodePorts.metrics)) }}
nodePort: {{ .Values.service.nodePorts.metrics }}
{{- else if eq .Values.service.type "ClusterIP" }}
nodePort: null
{{- end }}
{{- if .Values.service.extraPorts }}
{{- include "common.tplvalues.render" (dict "value" .Values.service.extraPorts "context" $) | nindent 4 }}
{{- end }}
Expand Down
3 changes: 2 additions & 1 deletion hirosystems/stacks-blockchain/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,8 @@ metrics:
## Prometheus Operator ServiceMonitor configuration
##
serviceMonitor:
## @param metrics.serviceMonitor.enabled if `true`, creates a Prometheus Operator ServiceMonitor (also requires `metrics.enabled` to be `true`)
## @param metrics.serviceMonitor.enabled if `true`, creates a Prometheus Operator ServiceMonitor
## (also requires `metrics.enabled` and either `singleService` or `uniqueServices` to be `true`)
##
enabled: false
## @param metrics.serviceMonitor.namespace Namespace in which Prometheus is running
Expand Down

0 comments on commit 12a4cd8

Please sign in to comment.