aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/prometheus-operator/templates/exporters/kube-etcd/service.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'vnfs/DAaaS/prometheus-operator/templates/exporters/kube-etcd/service.yaml')
-rw-r--r--vnfs/DAaaS/prometheus-operator/templates/exporters/kube-etcd/service.yaml23
1 files changed, 23 insertions, 0 deletions
diff --git a/vnfs/DAaaS/prometheus-operator/templates/exporters/kube-etcd/service.yaml b/vnfs/DAaaS/prometheus-operator/templates/exporters/kube-etcd/service.yaml
new file mode 100644
index 00000000..7b0cacb1
--- /dev/null
+++ b/vnfs/DAaaS/prometheus-operator/templates/exporters/kube-etcd/service.yaml
@@ -0,0 +1,23 @@
+{{- 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:
+ {{ include "prometheus-operator.rangeskipempty" .Values.kubeEtcd.service.selector | indent 4 }}
+{{- end }}
+ type: ClusterIP
+{{- end -}} \ No newline at end of file