mirror of https://git.rancher.io/charts
21 lines
619 B
YAML
21 lines
619 B
YAML
|
{{- if and .Values.kubeScheduler.enabled .Values.kubeScheduler.endpoints }}
|
||
|
apiVersion: v1
|
||
|
kind: Endpoints
|
||
|
metadata:
|
||
|
name: {{ template "kube-prometheus-stack.fullname" . }}-kube-scheduler
|
||
|
labels:
|
||
|
app: {{ template "kube-prometheus-stack.name" . }}-kube-scheduler
|
||
|
k8s-app: kube-scheduler
|
||
|
{{ include "kube-prometheus-stack.labels" . | indent 4 }}
|
||
|
namespace: kube-system
|
||
|
subsets:
|
||
|
- addresses:
|
||
|
{{- range .Values.kubeScheduler.endpoints }}
|
||
|
- ip: {{ . }}
|
||
|
{{- end }}
|
||
|
ports:
|
||
|
- name: http-metrics
|
||
|
port: {{ .Values.kubeScheduler.service.port }}
|
||
|
protocol: TCP
|
||
|
{{- end }}
|