rancher-partner-charts/charts/kubecost/cost-analyzer/2.2.4/templates/aggregator-cloud-cost-servi...

17 lines
430 B
YAML

{{- if not (eq (include "aggregator.deployMethod" .) "disabled") -}}
kind: Service
apiVersion: v1
metadata:
name: {{ template "cloudCost.serviceName" . }}
namespace: {{ .Release.Namespace }}
labels:
{{ include "cloudCost.commonLabels" . | nindent 4 }}
spec:
selector:
{{ include "cloudCost.selectorLabels" . | nindent 4 }}
type: "ClusterIP"
ports:
- name: tcp-api
port: 9005
targetPort: 9005
{{- end }}