k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/prometheus/manifests/master-ip/master-service.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  
     4  # Service object for the kubelet running on master node.
     5  apiVersion: v1
     6  kind: Service
     7  metadata:
     8    namespace: monitoring
     9    name: master
    10    labels:
    11      k8s-app: master
    12  spec:
    13    type: ClusterIP
    14    clusterIP: None
    15    ports:
    16      - name: apiserver
    17        port: 443
    18      {{if not $PROMETHEUS_SCRAPE_APISERVER_ONLY}}
    19      - name: etcd-2379
    20        port: 2379
    21      - name: etcd-2382
    22        port: 2382
    23      - name: kubelet
    24        port: 10250
    25      - name: kube-scheduler
    26        port: 10259
    27      - name: kube-controller-manager
    28        port: 10257
    29      {{end}}
    30      {{if $PROMETHEUS_SCRAPE_NODE_EXPORTER}}
    31      - name: node-exporter
    32        port: 9100
    33      {{end}}