Add NFS and iSCSI backed StorageClasses
This commit is contained in:
@@ -1,3 +1,19 @@
|
||||
---
|
||||
# ServiceAccount for the CSI driver
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: truenas-csi-controller-sa
|
||||
namespace: truenas-csi
|
||||
|
||||
---
|
||||
# ServiceAccount for node plugin
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: truenas-csi-node-sa
|
||||
namespace: truenas-csi
|
||||
|
||||
---
|
||||
# ClusterRole for CSI controller
|
||||
kind: ClusterRole
|
||||
@@ -300,6 +316,7 @@ spec:
|
||||
app: truenas-csi-node
|
||||
spec:
|
||||
serviceAccountName: truenas-csi-node-sa
|
||||
dnsPolicy: ClusterFirstWithHostNet
|
||||
hostNetwork: true
|
||||
hostPID: true
|
||||
hostIPC: true
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
allowVolumeExpansion: true
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: truenas-iscsi
|
||||
parameters:
|
||||
compression: LZ4
|
||||
iscsi.blocksize: "4096"
|
||||
protocol: iscsi
|
||||
volblocksize: 16K
|
||||
provisioner: csi.truenas.io
|
||||
reclaimPolicy: Delete
|
||||
volumeBindingMode: Immediate
|
||||
@@ -4,5 +4,7 @@ metadata:
|
||||
name: truenas-csi
|
||||
namespace: truenas-csi
|
||||
resources:
|
||||
- iscsi-storage-class.yaml
|
||||
- namespace.yaml
|
||||
- config.yaml
|
||||
- nfs-storage-class.yaml
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
allowVolumeExpansion: true
|
||||
apiVersion: storage.k8s.io/v1
|
||||
kind: StorageClass
|
||||
metadata:
|
||||
name: truenas-nfs
|
||||
parameters:
|
||||
compression: LZ4
|
||||
protocol: nfs
|
||||
provisioner: csi.truenas.io
|
||||
reclaimPolicy: Retain
|
||||
volumeBindingMode: Immediate
|
||||
Reference in New Issue
Block a user