blob: 3a71c397e623b3390c715ccc52e74893f877d23f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{{- if and .Values.kubeProxy.enabled .Values.kubeProxy.endpoints }}
apiVersion: v1
kind: Endpoints
metadata:
name: {{ template "prometheus-operator.fullname" . }}-kube-proxy
labels:
app: {{ template "prometheus-operator.name" . }}-kube-proxy
k8s-app: kube-proxy
{{ include "prometheus-operator.labels" . | indent 4 }}
namespace: kube-system
subsets:
- addresses:
{{- range .Values.kubeProxy.endpoints }}
- ip: {{ . }}
{{- end }}
ports:
- name: http-metrics
port: {{ .Values.kubeProxy.service.port }}
protocol: TCP
{{- end }}
|