mirror of
https://github.com/cristicalin/synology-csi.git
synced 2026-05-07 05:22:40 +00:00
Update to version 1.1.0
This commit is contained in:
20
deploy/example/storageclass-smb.yaml
Normal file
20
deploy/example/storageclass-smb.yaml
Normal file
@@ -0,0 +1,20 @@
|
||||
---
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: synology-smb-storage
|
||||
provisioner: csi.san.synology.com
|
||||
parameters:
|
||||
protocol: "smb" # required for smb protocol
|
||||
# Before creating an SMB storage class, you must create a secret and specify the DSM user whom you want to give permissions to.
|
||||
csi.storage.k8s.io/node-stage-secret-name: "cifs-csi-credentials" # required for smb protocol
|
||||
csi.storage.k8s.io/node-stage-secret-namespace: "default" # required for smb protocol
|
||||
# dsm: "1.1.1.1"
|
||||
# location: '/volume1'
|
||||
# mountOptions:
|
||||
# - dir_mode=0777
|
||||
# - file_mode=0777
|
||||
# - uid=0
|
||||
# - gid=0
|
||||
reclaimPolicy: Delete
|
||||
allowVolumeExpansion: true
|
||||
@@ -46,6 +46,9 @@ rules:
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents"]
|
||||
verbs: ["get", "list"]
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["get"]
|
||||
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
@@ -140,7 +143,7 @@ spec:
|
||||
capabilities:
|
||||
add: ["SYS_ADMIN"]
|
||||
allowPrivilegeEscalation: true
|
||||
image: synology/synology-csi:v1.0.1
|
||||
image: synology/synology-csi:v1.1.0
|
||||
args:
|
||||
- --nodeid=NotUsed
|
||||
- --endpoint=$(CSI_ENDPOINT)
|
||||
|
||||
@@ -86,7 +86,7 @@ spec:
|
||||
securityContext:
|
||||
privileged: true
|
||||
imagePullPolicy: IfNotPresent
|
||||
image: synology/synology-csi:v1.0.1
|
||||
image: synology/synology-csi:v1.1.0
|
||||
args:
|
||||
- --nodeid=$(KUBE_NODE_NAME)
|
||||
- --endpoint=$(CSI_ENDPOINT)
|
||||
|
||||
@@ -81,7 +81,7 @@ spec:
|
||||
capabilities:
|
||||
add: ["SYS_ADMIN"]
|
||||
allowPrivilegeEscalation: true
|
||||
image: synology/synology-csi:v1.0.1
|
||||
image: synology/synology-csi:v1.1.0
|
||||
args:
|
||||
- --nodeid=NotUsed
|
||||
- --endpoint=$(CSI_ENDPOINT)
|
||||
|
||||
@@ -7,5 +7,5 @@ metadata:
|
||||
driver: csi.san.synology.com
|
||||
deletionPolicy: Delete
|
||||
# parameters:
|
||||
# description: 'Kubernetes CSI'
|
||||
# description: 'Kubernetes CSI' # only for iscsi protocol
|
||||
# is_locked: 'false'
|
||||
@@ -46,6 +46,9 @@ rules:
|
||||
- apiGroups: ["snapshot.storage.k8s.io"]
|
||||
resources: ["volumesnapshotcontents"]
|
||||
verbs: ["get", "list"]
|
||||
- apiGroups: [""]
|
||||
resources: ["secrets"]
|
||||
verbs: ["get"]
|
||||
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
@@ -140,7 +143,7 @@ spec:
|
||||
capabilities:
|
||||
add: ["SYS_ADMIN"]
|
||||
allowPrivilegeEscalation: true
|
||||
image: synology/synology-csi:v1.0.1
|
||||
image: synology/synology-csi:v1.1.0
|
||||
args:
|
||||
- --nodeid=NotUsed
|
||||
- --endpoint=$(CSI_ENDPOINT)
|
||||
|
||||
@@ -86,7 +86,7 @@ spec:
|
||||
securityContext:
|
||||
privileged: true
|
||||
imagePullPolicy: IfNotPresent
|
||||
image: synology/synology-csi:v1.0.1
|
||||
image: synology/synology-csi:v1.1.0
|
||||
args:
|
||||
- --nodeid=$(KUBE_NODE_NAME)
|
||||
- --endpoint=$(CSI_ENDPOINT)
|
||||
|
||||
@@ -81,7 +81,7 @@ spec:
|
||||
capabilities:
|
||||
add: ["SYS_ADMIN"]
|
||||
allowPrivilegeEscalation: true
|
||||
image: synology/synology-csi:v1.0.1
|
||||
image: synology/synology-csi:v1.1.0
|
||||
args:
|
||||
- --nodeid=NotUsed
|
||||
- --endpoint=$(CSI_ENDPOINT)
|
||||
|
||||
@@ -7,5 +7,5 @@ metadata:
|
||||
driver: csi.san.synology.com
|
||||
deletionPolicy: Delete
|
||||
# parameters:
|
||||
# description: 'Kubernetes CSI'
|
||||
# description: 'Kubernetes CSI' # only for iscsi protocol
|
||||
# is_locked: 'false'
|
||||
Reference in New Issue
Block a user