blob: f680ac36a8b9fe8dc1a9f7bdf9f8141d8168cbb5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{{- if .Values.kubeControllerManager.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ template "prometheus-operator.fullname" . }}-kube-controller-manager
labels:
app: {{ template "prometheus-operator.name" . }}-kube-controller-manager
jobLabel: kube-controller-manager
{{ include "prometheus-operator.labels" . | indent 4 }}
namespace: kube-system
spec:
clusterIP: None
ports:
- name: http-metrics
port: {{ .Values.kubeControllerManager.service.port }}
protocol: TCP
targetPort: {{ .Values.kubeControllerManager.service.targetPort }}
{{- if .Values.kubeControllerManager.endpoints }}{{- else }}
selector:
{{ include "prometheus-operator.rangeskipempty" .Values.kubeControllerManager.service.selector | indent 4 }}
{{- end }}
type: ClusterIP
{{- end }}
|