You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You will need to enable the feature gate `CSIInlineVolume` when starting your Kubernets binary components:
350
+
```
351
+
CSIInlineVolume=true
352
+
```
353
+
354
+
To test this feature, redeploy the CSI Hostpath plugin YAML by updating the `hostpath` container to use the inline ephemeral mode by setting the `ephemeral` flag, of the driver binary, to true as shown in the following setup:
Notice the addition of the `ephemeral=true` flag used in the `args:` block in the previous snippet.
377
+
378
+
Once the driver plugin has been deployed, it can be tested by deploying a simple pod which has an inline volume specified in the spec:
379
+
380
+
```yaml
381
+
kind: Pod
382
+
apiVersion: v1
383
+
metadata:
384
+
name: my-csi-app
385
+
spec:
386
+
containers:
387
+
- name: my-frontend
388
+
image: busybox
389
+
volumeMounts:
390
+
- mountPath: "/data"
391
+
name: my-csi-volume
392
+
command: [ "sleep", "1000000" ]
393
+
volumes:
394
+
- name: my-csi-volume
395
+
csi:
396
+
driver: csi-hostpath
397
+
```
398
+
399
+
> See sample YAML file [here](./examples/csi-app-inline.yaml).
400
+
401
+
Notice the CSI driver is now specified directly in the container spec inside the `volumes:` block. You can use the [same steps as above][Confirm Hostpath driver works]
402
+
to verify that the volume has been created and deleted (when the pod is removed).
403
+
344
404
345
405
## Building the binaries
346
406
If you want to build the driver yourself, you can do so with the following command from the root directory:
0 commit comments