mirror of https://git.rancher.io/charts
28 lines
819 B
YAML
28 lines
819 B
YAML
{{- if .Values.kubeScheduler.enabled }}
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: {{ template "kube-prometheus-stack.fullname" . }}-kube-scheduler
|
|
labels:
|
|
app: {{ template "kube-prometheus-stack.name" . }}-kube-scheduler
|
|
jobLabel: kube-scheduler
|
|
{{ include "kube-prometheus-stack.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:
|
|
{{- if .Values.kubeScheduler.service.selector }}
|
|
{{ toYaml .Values.kubeScheduler.service.selector | indent 4 }}
|
|
{{- else}}
|
|
component: kube-scheduler
|
|
{{- end}}
|
|
{{- end }}
|
|
type: ClusterIP
|
|
{{- end -}}
|