26 lines
666 B
YAML
26 lines
666 B
YAML
{{- if not (eq (include "aggregator.deployMethod" .) "disabled") -}}
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: {{ template "aggregator.serviceName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
{{ include "aggregator.commonLabels" . | nindent 4 }}
|
|
spec:
|
|
selector:
|
|
{{ include "aggregator.selectorLabels" . | nindent 4 }}
|
|
type: "ClusterIP"
|
|
ports:
|
|
- name: tcp-api
|
|
port: 9004
|
|
targetPort: 9004
|
|
{{- if or .Values.saml.enabled .Values.oidc.enabled}}
|
|
- name: apiserver
|
|
port: 9008
|
|
targetPort: 9008
|
|
{{- end }}
|
|
{{- with .Values.kubecostAggregator.extraPorts }}
|
|
{{- toYaml . | nindent 4 }}
|
|
{{- end }}
|
|
{{- end }}
|