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