Skip to content

Commit f9aea1e

Browse files
committed
doc: update csi-proxy install doc
fix golint
1 parent 95a3d72 commit f9aea1e

File tree

2 files changed

+35
-3
lines changed

2 files changed

+35
-3
lines changed

deploy/example/windows/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,21 @@
77
Refer to [Windows-CSI-Support](https://github.com/kubernetes/enhancements/tree/master/keps/sig-windows/1122-windows-csi-support) for more details.
88

99
## Prerequisite
10-
- [Install CSI-Proxy on Windows Node](https://github.com/Azure/aks-engine/blob/master/docs/topics/csi-proxy-windows.md)
10+
- [Install CSI-Proxy on Windows Node](https://github.com/kubernetes-csi/csi-proxy#installation)
11+
- install csi-proxy on k8s 1.23+ Windows node using host process daemonset directly
12+
```console
13+
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/example/windows/csi-proxy.yaml
14+
```
15+
1116

1217
## Deploy a Windows pod with PVC mount
1318
### Create a Windows deployment
14-
```
19+
```console
1520
kubectl apply -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/example/windows/statefulset.yaml
1621
```
1722

1823
### Enter pod container to verify
19-
```
24+
```console
2025
$ kubectl exec -it busybox-smb-0 -- bash
2126
C:/ $ ls mnt/smb
2227
```
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
apiVersion: apps/v1
3+
kind: DaemonSet
4+
metadata:
5+
labels:
6+
k8s-app: csi-proxy
7+
name: csi-proxy
8+
namespace: kube-system
9+
spec:
10+
selector:
11+
matchLabels:
12+
k8s-app: csi-proxy
13+
template:
14+
metadata:
15+
labels:
16+
k8s-app: csi-proxy
17+
spec:
18+
nodeSelector:
19+
"kubernetes.io/os": windows
20+
securityContext:
21+
windowsOptions:
22+
hostProcess: true
23+
runAsUserName: "NT AUTHORITY\\SYSTEM"
24+
hostNetwork: true
25+
containers:
26+
- name: csi-proxy
27+
image: ghcr.io/kubernetes-sigs/sig-windows/csi-proxy:v1.0.2

0 commit comments

Comments
 (0)