k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/prometheus/manifests/master-ip/master-endpoints.yaml (about) 1 {{$PROMETHEUS_SCRAPE_NODE_EXPORTER := DefaultParam .PROMETHEUS_SCRAPE_NODE_EXPORTER false}} 2 {{$PROMETHEUS_SCRAPE_APISERVER_ONLY := DefaultParam .PROMETHEUS_SCRAPE_APISERVER_ONLY false}} 3 {{$PROMETHEUS_APISERVER_SCRAPE_PORT := DefaultParam .PROMETHEUS_APISERVER_SCRAPE_PORT 443}} 4 5 # Endpoints object for the kubelet running on master node. 6 apiVersion: v1 7 kind: Endpoints 8 metadata: 9 namespace: monitoring 10 name: master 11 labels: 12 k8s-app: master 13 subsets: 14 - addresses: 15 {{range .MasterIps}} 16 - ip: {{.}} 17 {{end}} 18 ports: 19 - name: apiserver 20 port: {{$PROMETHEUS_APISERVER_SCRAPE_PORT}} 21 {{if not $PROMETHEUS_SCRAPE_APISERVER_ONLY}} 22 - name: etcd-2379 23 port: 2379 24 - name: etcd-2382 25 port: 2382 26 - name: kubelet 27 port: 10250 28 - name: kube-scheduler 29 port: 10259 30 - name: kube-controller-manager 31 port: 10257 32 {{end}} 33 {{if $PROMETHEUS_SCRAPE_NODE_EXPORTER}} 34 - name: node-exporter 35 port: 9100 36 {{end}}