Skip to content

Commit

Permalink
doc: update csi-proxy install doc
Browse files Browse the repository at this point in the history
fix golint
  • Loading branch information
andyzhangx committed Jun 1, 2022
1 parent 95a3d72 commit f9aea1e
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 3 deletions.
11 changes: 8 additions & 3 deletions deploy/example/windows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,21 @@
Refer to [Windows-CSI-Support](https://github.com/kubernetes/enhancements/tree/master/keps/sig-windows/1122-windows-csi-support) for more details.

## Prerequisite
- [Install CSI-Proxy on Windows Node](https://github.com/Azure/aks-engine/blob/master/docs/topics/csi-proxy-windows.md)
- [Install CSI-Proxy on Windows Node](https://github.com/kubernetes-csi/csi-proxy#installation)
- install csi-proxy on k8s 1.23+ Windows node using host process daemonset directly
```console
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
```
```console
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/example/windows/statefulset.yaml
```

### Enter pod container to verify
```
```console
$ kubectl exec -it busybox-smb-0 -- bash
C:/ $ ls mnt/smb
```
Expand Down
27 changes: 27 additions & 0 deletions deploy/example/windows/csi-proxy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
k8s-app: csi-proxy
name: csi-proxy
namespace: kube-system
spec:
selector:
matchLabels:
k8s-app: csi-proxy
template:
metadata:
labels:
k8s-app: csi-proxy
spec:
nodeSelector:
"kubernetes.io/os": windows
securityContext:
windowsOptions:
hostProcess: true
runAsUserName: "NT AUTHORITY\\SYSTEM"
hostNetwork: true
containers:
- name: csi-proxy
image: ghcr.io/kubernetes-sigs/sig-windows/csi-proxy:v1.0.2

0 comments on commit f9aea1e

Please sign in to comment.