csi-driver-smb/deploy/example/windows
andyzhangx 847b2f335c doc: update docs 2020-05-10 14:13:09 +00:00
..
README.md doc: update docs 2020-05-10 14:13:09 +00:00
deployment.yaml feat: first working version 2020-05-10 03:36:28 +00:00

README.md

CSI on Windows example

Feature Status: Alpha

CSI on Windows support is an alpha feature since Kubernetes v1.18, refer to Windows-CSI-Support for more details.

Prerequisite

  • Install CSI-Proxy on Windows Node

csi-proxy installation is supported with aks-engine v0.48.0.

Install CSI Driver

curl -skSL https://raw.githubusercontent.com/csi-driver/csi-driver-smb/master/deploy/install-driver.sh | bash -s master,windows --

Deploy a Windows pod with PVC mount

Create Windows pod

kubectl apply -f https://raw.githubusercontent.com/csi-driver/csi-driver-smb/master/deploy/example/windows/statefulset.yaml

Enter pod container to do validation

$ kubectl exec -it aspnet-smb-0 -- cmd
Microsoft Windows [Version 10.0.17763.1098]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\inetpub\wwwroot>cd c:\mnt\smb

c:\mnt\smb>echo hello > 20200328

c:\mnt\smb>dir
 Volume in drive C has no label.
 Volume Serial Number is DE36-B78A

 Directory of c:\mnt\smb

03/28/2020  05:48 AM    <DIR>          .
03/28/2020  05:48 AM    <DIR>          ..
03/28/2020  05:49 AM                 8 20200328
               1 File(s)              8 bytes
               2 Dir(s)  107,374,116,864 bytes free

In the above example, there is a c:\mnt\smb directory mounted as NTFS filesystem.