kubectl apply --kustomize "https://github.com/cloudfoundry/smb-csi-driver/deploy/overlays/alpha/?ref=master"
kubectl apply --kustomize "https://github.com/cloudfoundry/smb-csi-driver/deploy/overlays/dev/?ref=master"
- Edit the example (in
./example/pv.yaml
) to use your SMB server:
//SERVER/SHARE
: the SMB address of your server and shareUSERNAME
: username for the sharePASSWORD
: password for the sharemountOptions
: (optional) supported mount options are uid, gid and vers
- Deploy the example
kubectl apply -f ./example/pv.yaml
- Use the example nginx app by writing a file to the mounted directory
kubectl exec -it nginx bash
> echo hello > /usr/share/nginx/html/index.html
> apt-get update && apt-get install -y curl
> curl localhost:80
> hello
make fly