Skip to content

Commit

Permalink
Add the Service from opencost-helm-chart, edited for exporter-only
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Ray <[email protected]>
  • Loading branch information
mattray committed Oct 7, 2023
1 parent bfeb215 commit c85d94e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions charts/prometheus-opencost-exporter/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{{- if .Values.service.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ include "prometheus-opencost-exporter.fullname" . }}
labels:
{{- include "prometheus-opencost-exporter.labels" . | nindent 4 }}
{{- with .Values.service.labels }}
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.service.annotations }}
annotations: {{- toYaml . | nindent 4 }}
{{- end }}
spec:
selector: {{- include "prometheus-opencost-exporter.selectorLabels" . | nindent 4 }}
type: {{ .Values.service.type }}
ports:
- name: http
port: 9003
targetPort: 9003
{{- end }}

0 comments on commit c85d94e

Please sign in to comment.