github.com/joomcode/cue@v0.4.4-0.20221111115225-539fe3512047/doc/tutorial/kubernetes/original/services/mon/nodeexporter/kube.yaml (about)

     1  apiVersion: v1
     2  kind: Service
     3  metadata:
     4    annotations:
     5      prometheus.io/scrape: 'true'
     6    name: node-exporter
     7    labels:
     8      app: node-exporter
     9  spec:
    10    type: ClusterIP
    11    clusterIP: None
    12    ports:
    13    - name: metrics
    14      port: 9100
    15      protocol: TCP
    16    selector:
    17      app: node-exporter
    18  ---
    19  apiVersion: apps/v1
    20  kind: DaemonSet
    21  metadata:
    22    name: node-exporter
    23  spec:
    24    template:
    25      metadata:
    26        labels:
    27          app: node-exporter
    28        name: node-exporter
    29      spec:
    30        hostNetwork: true
    31        hostPID: true
    32        containers:
    33        - image:  quay.io/prometheus/node-exporter:v0.16.0
    34          args:
    35          - "--path.procfs=/host/proc"
    36          - "--path.sysfs=/host/sys"
    37          name: node-exporter
    38          ports:
    39          - containerPort: 9100
    40            hostPort: 9100
    41            name: scrape
    42          resources:
    43            requests:
    44              memory: 30Mi
    45              cpu: 100m
    46            limits:
    47              memory: 50Mi
    48              cpu: 200m
    49          volumeMounts:
    50          - name: proc
    51            readOnly:  true
    52            mountPath: /host/proc
    53          - name: sys
    54            readOnly: true
    55            mountPath: /host/sys
    56        volumes:
    57        - name: proc
    58          hostPath:
    59            path: /proc
    60        - name: sys
    61          hostPath:
    62            path: /sys