aboutsummaryrefslogtreecommitdiffstats
path: root/kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/exporters/kube-proxy/endpoints.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/exporters/kube-proxy/endpoints.yaml')
-rwxr-xr-xkud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/exporters/kube-proxy/endpoints.yaml20
1 files changed, 20 insertions, 0 deletions
diff --git a/kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/exporters/kube-proxy/endpoints.yaml b/kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/exporters/kube-proxy/endpoints.yaml
new file mode 100755
index 00000000..3a71c397
--- /dev/null
+++ b/kud/tests/vnfs/comp-app/collection/app2/helm/prometheus-operator/templates/exporters/kube-proxy/endpoints.yaml
@@ -0,0 +1,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 }}