github.com/google/cadvisor@v0.49.1/deploy/kubernetes/base/daemonset.yaml (about)

     1  apiVersion: apps/v1 # for Kubernetes versions before 1.9.0 use apps/v1beta2
     2  kind: DaemonSet
     3  metadata:
     4    name: cadvisor
     5    namespace: cadvisor
     6    annotations:
     7        seccomp.security.alpha.kubernetes.io/pod: 'docker/default'
     8  spec:
     9    selector:
    10      matchLabels:
    11        name: cadvisor
    12    template:
    13      metadata:
    14        labels:
    15          name: cadvisor
    16      spec:
    17        serviceAccountName: cadvisor
    18        containers:
    19        - name: cadvisor
    20          image: gcr.io/cadvisor/cadvisor:v0.45.0
    21          resources:
    22            requests:
    23              memory: 400Mi
    24              cpu: 400m
    25            limits:
    26              memory: 2000Mi
    27              cpu: 800m
    28          volumeMounts:
    29          - name: rootfs
    30            mountPath: /rootfs
    31            readOnly: true
    32          - name: var-run
    33            mountPath: /var/run
    34            readOnly: true
    35          - name: sys
    36            mountPath: /sys
    37            readOnly: true
    38          - name: docker
    39            mountPath: /var/lib/docker
    40            readOnly: true
    41          - name: disk
    42            mountPath: /dev/disk
    43            readOnly: true
    44          ports:
    45            - name: http
    46              containerPort: 8080
    47              protocol: TCP
    48        automountServiceAccountToken: false
    49        terminationGracePeriodSeconds: 30
    50        volumes:
    51        - name: rootfs
    52          hostPath:
    53            path: /
    54        - name: var-run
    55          hostPath:
    56            path: /var/run
    57        - name: sys
    58          hostPath:
    59            path: /sys
    60        - name: docker
    61          hostPath:
    62            path: /var/lib/docker
    63        - name: disk
    64          hostPath:
    65            path: /dev/disk