~xdavidwu/flux

ref: 67d04cdc84a671a454a008742bd1a8b482146ace flux/monitoring/cadvisor/deployment.yaml -rw-r--r-- 1.3 KiB
67d04cdcPinghao Wu cadvisor: 0.52.1 a month ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
apiVersion: apps/v1
kind: Deployment
metadata:
  name: cadvisor
spec:
  replicas: 1
  template:
    metadata:
      annotations:
        prometheus.xdavidwu.link/instance: parto
      labels:
        metrics: metrics
    spec:
      containers:
        - name: cadvisor
          image: gcr.io/cadvisor/cadvisor:v0.52.1
          command:
            - /usr/bin/cadvisor
            - -logtostderr
            - -docker_only
            - -raw_cgroup_prefix_whitelist
            - /lxc.payload
            - -housekeeping_interval
            - 30s
          ports:
            - name: metrics
              containerPort: 8080
          volumeMounts:
            - name: cgroup
              mountPath: /sys/fs/cgroup
              readOnly: true
            - name: machine-id
              mountPath: /etc/machine-id
              readOnly: true
          readinessProbe:
            httpGet:
              port: metrics
              path: /healthz
      volumes:
        - name: cgroup
          hostPath:
            path: /sys/fs/cgroup
        - name: machine-id
          hostPath:
            path: /etc/machine-id
      nodeSelector:
        kubernetes.io/hostname: parto
      tolerations:
        - key: node-role.kubernetes.io/control-plane
          effect: NoSchedule
      securityContext:
        runAsUser: 1000
        runAsGroup: 1000