Skip to content

Commit

Permalink
Split metrics/local service types in values (#47)
Browse files Browse the repository at this point in the history
* Split metrics/local service types in values

* Add external traffic policy option
  • Loading branch information
cmmarslender authored May 2, 2024
1 parent c938d6b commit 5fb5cd4
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion charts/chia-blockchain/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.6.1
version: 0.7.0
2 changes: 1 addition & 1 deletion charts/chia-blockchain/templates/service-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
labels:
{{- include "chia-blockchain.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
type: {{ .Values.localService.type }}
internalTrafficPolicy: Local
ports:
- port: {{ .Values.chia.daemonPort }}
Expand Down
2 changes: 1 addition & 1 deletion charts/chia-blockchain/templates/service-metrics.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
type: {{ .Values.service.type }}
type: {{ .Values.metricsService.type }}
ports:
- port: 9914
targetPort: metrics
Expand Down
3 changes: 3 additions & 0 deletions charts/chia-blockchain/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ metadata:
{{- include "chia-blockchain.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
{{- if .Values.service.externalTrafficPolicy }}
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
{{- end }}
ports:
- port: {{ .Values.chia.daemonPort }}
targetPort: daemon
Expand Down
7 changes: 7 additions & 0 deletions charts/chia-blockchain/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ chiaExporter:

service:
type: ClusterIP
externalTrafficPolicy: ""

localService:
type: ClusterIP

metricsService:
type: ClusterIP

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit 5fb5cd4

Please sign in to comment.