github.com/google/cadvisor@v0.49.1/deploy/kubernetes/overlays/examples_perf/cadvisor-perf.yaml (about)

     1  # This patch is an example of setting arguments for the cAdvisor container to collect perf metrics 
     2  apiVersion: apps/v1 # for Kubernetes versions before 1.9.0 use apps/v1beta2
     3  kind: DaemonSet
     4  metadata:
     5    name: cadvisor
     6    namespace: cadvisor
     7  spec:
     8    template:
     9      spec:
    10        containers:
    11        - name: cadvisor
    12          args:
    13            - --perf_events_config=/etc/config/perf-non-hardware.json
    14          securityContext:
    15            privileged: true
    16          volumeMounts:
    17          - name: perf-volume
    18            mountPath: /etc/config/
    19        volumes:
    20          - name: perf-volume
    21            configMap:
    22              name: perf-config