k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/prometheus/manifests/default/kube-proxy-service.yaml (about) 1 {{$PROMETHEUS_SCRAPE_KUBE_PROXY := DefaultParam .PROMETHEUS_SCRAPE_KUBE_PROXY true}} 2 {{$PROMETHEUS_KUBE_PROXY_SELECTOR_KEY := DefaultParam .PROMETHEUS_KUBE_PROXY_SELECTOR_KEY "component"}} 3 4 {{if $PROMETHEUS_SCRAPE_KUBE_PROXY}} 5 apiVersion: v1 6 kind: Service 7 metadata: 8 namespace: kube-system 9 name: kube-proxy 10 labels: 11 k8s-app: kube-proxy 12 spec: 13 type: ClusterIP 14 clusterIP: None 15 ports: 16 - name: http-metrics 17 port: 10249 18 selector: 19 {{ (StructuralData $PROMETHEUS_KUBE_PROXY_SELECTOR_KEY) }}: kube-proxy 20 {{end}}