mirror of
https://github.com/JamesTurland/JimsGarage.git
synced 2024-11-21 15:30:19 +00:00
update
This commit is contained in:
parent
2f9621802e
commit
7468da18da
1 changed files with 1 additions and 20 deletions
|
@ -10,24 +10,5 @@ kubectl create secret generic smbcreds --from-literal username=USERNAME --from-l
|
|||
|
||||
# Create storage class
|
||||
```
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: smb
|
||||
provisioner: smb.csi.k8s.io
|
||||
parameters:
|
||||
source: //smb-server.default.svc.cluster.local/share
|
||||
# if csi.storage.k8s.io/provisioner-secret is provided, will create a sub directory
|
||||
# with PV name under source
|
||||
csi.storage.k8s.io/provisioner-secret-name: smbcreds
|
||||
csi.storage.k8s.io/provisioner-secret-namespace: default
|
||||
csi.storage.k8s.io/node-stage-secret-name: smbcreds
|
||||
csi.storage.k8s.io/node-stage-secret-namespace: default
|
||||
reclaimPolicy: Delete # available values: Delete, Retain
|
||||
volumeBindingMode: Immediate
|
||||
mountOptions:
|
||||
- dir_mode=0777
|
||||
- file_mode=0777
|
||||
- uid=1001
|
||||
- gid=1001
|
||||
kubectl create -f https://raw.githubusercontent.com/kubernetes-csi/csi-driver-smb/master/deploy/example/storageclass-smb.yaml
|
||||
```
|
Loading…
Reference in a new issue