csi-driver-smb/deploy/example/windows
andyzhangx a0a6fe420e doc: use busybox in windows example 2020-06-09 06:22:04 +00:00
..
README.md chore: repo rename 2020-05-12 13:10:13 +00:00
deployment.yaml doc: use busybox in windows example 2020-06-09 06:22:04 +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/kubernetes-csi/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/kubernetes-csi/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.