Skip to content

Commit

Permalink
add debugPort value for tilt improvements (#163)
Browse files Browse the repository at this point in the history
* add debugPort value for tilt improvements

Signed-off-by: Steven <[email protected]>

* Update Chart.yaml

Signed-off-by: Steven Weber <[email protected]>

---------

Signed-off-by: Steven <[email protected]>
Signed-off-by: Steven Weber <[email protected]>
  • Loading branch information
saweber authored Jan 15, 2024
1 parent eea720b commit c6eaa8f
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.2
version: 1.28.3
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 @@ -82,6 +82,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 c6eaa8f

Please sign in to comment.