|
|
||
|---|---|---|
| .. | ||
| README.md | ||
| csi-proxy.yaml | ||
| deployment.yaml | ||
| statefulset.yaml | ||
README.md
CSI Driver on Windows
Note
Only use root share for one SMB server in one cluster and use subPath in deployment, if there is already \\smb-server\share\test1 mounted, would get error when mounting volume \\smb-server\share\test2 after Windows node reboot. Workaround is only use \\smb-server\share as source, details here.
Feature Status: GA
Prerequisite
- Install CSI-Proxy on Windows Node
- install csi-proxy on k8s 1.23+ Windows node using host process daemonset directly
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/example/windows/csi-proxy.yaml
Deploy a Windows pod with PVC mount
Create a Windows deployment
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/example/windows/statefulset.yaml
Enter pod container to verify
$ kubectl exec -it busybox-smb-0 -- bash
C:/ $ ls mnt/smb
In the above example, there is a c:\mnt\smb directory mounted as SMB filesystem.