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