File: cadvisor-perf.yaml

package info (click to toggle)
cadvisor 0.38.7%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,508 kB
  • sloc: ansic: 839; sh: 310; python: 101; makefile: 93
file content (22 lines) | stat: -rw-r--r-- 622 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This patch is an example of setting arguments for the cAdvisor container to collect perf metrics 
apiVersion: apps/v1 # for Kubernetes versions before 1.9.0 use apps/v1beta2
kind: DaemonSet
metadata:
  name: cadvisor
  namespace: cadvisor
spec:
  template:
    spec:
      containers:
      - name: cadvisor
        args:
          - --perf_events_config=/etc/config/perf-non-hardware.json
        securityContext:
          privileged: true
        volumeMounts:
        - name: perf-volume
          mountPath: /etc/config/
      volumes:
        - name: perf-volume
          configMap:
            name: perf-config