kind: Pod apiVersion: v1 metadata: name: my-csi-app-inline spec: affinity: nodeAffinity: requiredDuringSchedulingIgnoredDuringExecution: nodeSelectorTerms: - matchExpressions: - key: topology.hostpath.csi/node operator: Exists containers: - name: my-frontend image: busybox volumeMounts: - mountPath: "/data" name: my-csi-volume command: [ "sleep", "1000000" ] volumes: - name: my-csi-volume csi: driver: hostpath.csi.k8s.io