Skip to content

Commit

Permalink
add debugPort value for tilt improvements
Browse files Browse the repository at this point in the history
Signed-off-by: Steven <[email protected]>
  • Loading branch information
saweber committed Jan 3, 2024
1 parent 922b34b commit 8e56355
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/opencost/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ keywords:
- kubecost
- opencost
- monitoring
version: 1.28.0
version: 1.28.1
maintainers:
- name: mattray
url: https://mattray.dev
Expand Down
5 changes: 5 additions & 0 deletions charts/opencost/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ spec:
port: {{ .Values.opencost.ui.uiPort }}
targetPort: {{ .Values.opencost.ui.uiPort }}
{{- end }}
{{- if .Values.opencost.exporter.debugPort }}
- name: debug-port
port: {{ .Values.opencost.exporter.debugPort }}
targetPort: {{ .Values.opencost.debugPort }}
{{- end }}
{{- with .Values.service.extraPorts }}
{{- toYaml . | nindent 4 }}
{{- end }}
Expand Down
1 change: 1 addition & 0 deletions charts/opencost/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ opencost:
exporter:
# API_PORT for the cost-model to listen on
apiPort: 9003
# debugPort: 40000 # for development purposes (debugging with delve) and not for production.
# -- The GCP Pricing API requires a key. This is supplied just for evaluation.
cloudProviderApiKey: ""
# -- Default cluster ID to use if cluster_id is not set in Prometheus metrics.
Expand Down

0 comments on commit 8e56355

Please sign in to comment.