k8s.io/kubernetes@v1.29.3/test/e2e/testing-manifests/storage-csi/mock/csi-mock-driver.yaml (about) 1 kind: StatefulSet 2 apiVersion: apps/v1 3 metadata: 4 name: csi-mockplugin 5 spec: 6 selector: 7 matchLabels: 8 app: csi-mockplugin 9 replicas: 1 10 template: 11 metadata: 12 labels: 13 app: csi-mockplugin 14 spec: 15 serviceAccountName: csi-mock 16 containers: 17 - name: csi-provisioner 18 image: registry.k8s.io/sig-storage/csi-provisioner:v3.4.0 19 args: 20 - "--csi-address=$(ADDRESS)" 21 # Topology support is needed for the pod rescheduling test 22 # ("storage capacity" in csi_mock_volume.go). 23 - "--feature-gates=Topology=true" 24 - "-v=5" 25 # Needed for fsGroup support. 26 - "--default-fstype=ext4" 27 # We don't need much concurrency and having many gouroutines 28 # makes klog.Fatal during shutdown very long. 29 - "--worker-threads=5" 30 env: 31 - name: ADDRESS 32 value: /csi/csi.sock 33 volumeMounts: 34 - mountPath: /csi 35 name: socket-dir 36 - name: driver-registrar 37 image: registry.k8s.io/sig-storage/csi-node-driver-registrar:v2.5.1 38 args: 39 - --v=5 40 - --csi-address=/csi/csi.sock 41 - --kubelet-registration-path=/var/lib/kubelet/plugins/csi-mock/csi.sock 42 env: 43 - name: KUBE_NODE_NAME 44 valueFrom: 45 fieldRef: 46 apiVersion: v1 47 fieldPath: spec.nodeName 48 securityContext: 49 privileged: true 50 volumeMounts: 51 - mountPath: /csi 52 name: socket-dir 53 - mountPath: /registration 54 name: registration-dir 55 - name: mock 56 image: registry.k8s.io/sig-storage/hostpathplugin:v1.9.0 57 args: 58 - "--drivername=mock.storage.k8s.io" 59 - "--nodeid=$(KUBE_NODE_NAME)" 60 - "--endpoint=/csi/csi.sock" 61 - "--statedir=/tmp/csi-hotpath-data" 62 - "-v=5" # enabled the gRPC call logging 63 env: 64 - name: CSI_ENDPOINT 65 value: /csi/csi.sock 66 - name: KUBE_NODE_NAME 67 valueFrom: 68 fieldRef: 69 apiVersion: v1 70 fieldPath: spec.nodeName 71 securityContext: 72 privileged: true 73 volumeMounts: 74 - mountPath: /csi 75 name: socket-dir 76 - mountPath: /var/lib/kubelet/pods 77 name: kubelet-pods-dir 78 - mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi 79 name: kubelet-csi-dir 80 - mountPath: /dev 81 name: dev-dir 82 volumes: 83 - hostPath: 84 path: /var/lib/kubelet/plugins/csi-mock 85 type: DirectoryOrCreate 86 name: socket-dir 87 - hostPath: 88 path: /var/lib/kubelet/pods 89 type: Directory 90 # mock driver doesn't make mounts and therefore doesn't need mount propagation. 91 # mountPropagation: Bidirectional 92 name: kubelet-pods-dir 93 - hostPath: 94 path: /var/lib/kubelet/plugins/kubernetes.io/csi 95 type: DirectoryOrCreate 96 name: kubelet-csi-dir 97 - hostPath: 98 path: /var/lib/kubelet/plugins_registry 99 type: Directory 100 name: registration-dir 101 - hostPath: 102 path: /dev 103 type: Directory 104 name: dev-dir