k8s.io/perf-tests/clusterloader2@v0.0.0-20240304094227-64bdb12da87e/pkg/imagepreload/manifests/daemonset.yaml (about)

     1  apiVersion: apps/v1
     2  kind: DaemonSet
     3  metadata:
     4    name: preload
     5    namespace: preload
     6  spec:
     7    selector:
     8      matchLabels:
     9        name: preload
    10    template:
    11      metadata:
    12        labels:
    13          name: preload
    14      spec:
    15        initContainers:
    16        {{range $idx, $image := .Images}}
    17        - name: preload-{{$idx}}
    18          image: gcr.io/k8s-testimages/perf-tests-util/containerd:v0.0.1
    19          command: ["sh", "-c", "ctr -n=k8s.io image pull {{$image}} 2>&1 | tee /var/log/cl2-image-preload-{{$idx}}.log"]
    20          volumeMounts:
    21          - name: containerd
    22            mountPath: /run/containerd
    23          - name: logs-volume
    24            mountPath: /var/log
    25        {{end}}
    26        volumes:
    27        - name: containerd
    28          hostPath:
    29            path: /run/containerd
    30        - name: logs-volume
    31          hostPath:
    32            path: /var/log
    33        containers:
    34        - name: pause
    35          image: gcr.io/google_containers/pause