|
1 | | -## Set up a SMB server and a deployment to access SMB server on a Kubernetes cluster |
| 1 | +## Set up a Samba Server and a deployment to access Samba Server on a Kubernetes cluster |
2 | 2 | This page will show you how to: |
3 | | - - set up a SMB server deployment on a Kubernetes cluster, the file share data is stored on local disk. |
4 | | - - set up a deployment to access SMB server on a Kubernetes cluster |
| 3 | + - set up a Samba Server deployment on a Kubernetes cluster, the file share data is stored on local disk. |
| 4 | + - set up a deployment to access Samba Server on a Kubernetes cluster |
5 | 5 |
|
6 | 6 | ### Stey-by-step |
7 | 7 | - Use `kubectl create secret` to create `smbcreds` with SMB username, password |
8 | 8 | ```console |
9 | 9 | kubectl create secret generic smbcreds --from-literal username=USERNAME --from-literal password="PASSWORD" |
10 | 10 | ``` |
11 | 11 |
|
12 | | - - Create a SMB server deployment |
| 12 | + - Create a Samba Server deployment |
13 | 13 | > modify `/smbshare-volume` in deployment to specify different path for smb share data store |
14 | 14 | ```console |
15 | 15 | kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/example/smb-provisioner/smb-server.yaml |
16 | 16 | ``` |
17 | 17 |
|
18 | 18 | After deployment, a new service `smb-server` is created, file share path is `//smb-server.default.svc.cluster.local/share` |
19 | 19 |
|
20 | | - - Create a deployment to access above SMB server |
| 20 | + - Create a deployment to access above Samba Server |
21 | 21 | ```console |
22 | | -kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/example/smb-provisioner/pv-smb-csi.yaml |
23 | | -kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/example/pvc-smb-csi-static.yaml |
| 22 | +kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/example/smb-provisioner/pv-smb.yaml |
| 23 | +kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/example/pvc-smb-static.yaml |
24 | 24 | kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/example/deployment.yaml |
25 | 25 | ``` |
26 | 26 |
|
|
0 commit comments