summaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/prometheus-operator/templates/exporters/core-dns/service.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'vnfs/DAaaS/prometheus-operator/templates/exporters/core-dns/service.yaml')
-rw-r--r--vnfs/DAaaS/prometheus-operator/templates/exporters/core-dns/service.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/vnfs/DAaaS/prometheus-operator/templates/exporters/core-dns/service.yaml b/vnfs/DAaaS/prometheus-operator/templates/exporters/core-dns/service.yaml
new file mode 100644
index 00000000..f66d1c7d
--- /dev/null
+++ b/vnfs/DAaaS/prometheus-operator/templates/exporters/core-dns/service.yaml
@@ -0,0 +1,20 @@
+{{- if .Values.coreDns.enabled }}
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ template "prometheus-operator.fullname" . }}-coredns
+ labels:
+ app: {{ template "prometheus-operator.name" . }}-coredns
+ jobLabel: coredns
+{{ include "prometheus-operator.labels" . | indent 4 }}
+ namespace: kube-system
+spec:
+ clusterIP: None
+ ports:
+ - name: http-metrics
+ port: {{ .Values.coreDns.service.port }}
+ protocol: TCP
+ targetPort: {{ .Values.coreDns.service.targetPort }}
+ selector:
+{{ include "prometheus-operator.rangeskipempty" .Values.coreDns.service.selector | indent 4 }}
+{{- end }} \ No newline at end of file