JG-mirror/Kubernetes/SMB/readme.md

14 lines
450 B
Markdown
Raw Normal View History

2023-12-06 22:25:29 +00:00
# Install CSI driver
```
curl -skSL https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/v1.13.0/deploy/install-driver.sh | bash -s v1.13.0 --
```
# Create SMB creds
```
kubectl create secret generic smbcreds --from-literal username=USERNAME --from-literal password="PASSWORD"
```
# Create storage class
```
2023-12-06 22:37:08 +00:00
kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/example/storageclass-smb.yaml
2023-12-06 22:25:29 +00:00
```