...

Text file src/k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/mock/csi-mock-driver-snapshotter.yaml

Documentation: k8s.io/kubernetes/test/e2e/testing-manifests/storage-csi/mock

     1kind: StatefulSet
     2apiVersion: apps/v1
     3metadata:
     4  name: csi-mockplugin-snapshotter
     5spec:
     6  replicas: 1
     7  selector:
     8    matchLabels:
     9      app: csi-mockplugin-snapshotter
    10  template:
    11    metadata:
    12      labels:
    13        app: csi-mockplugin-snapshotter
    14    spec:
    15      serviceAccountName: csi-mock
    16      containers:
    17        - name: csi-snapshotter
    18          image: registry.k8s.io/sig-storage/csi-snapshotter:v7.0.1
    19          args:
    20            - "--v=5"
    21            - "--csi-address=$(ADDRESS)"
    22            - "--leader-election=false"
    23          env:
    24            - name: ADDRESS
    25              value: /csi/csi.sock
    26          securityContext:
    27            privileged: true
    28          imagePullPolicy: Always
    29          volumeMounts:
    30            - name: socket-dir
    31              mountPath: /csi
    32      volumes:
    33        - name: socket-dir
    34          hostPath:
    35            path: /var/lib/kubelet/plugins/csi-mock
    36            type: DirectoryOrCreate

View as plain text