Skip to content

Commit

Permalink
add weka storageclass for RWX volumes
Browse files Browse the repository at this point in the history
  • Loading branch information
jtriley committed Nov 19, 2024
1 parent af84c8a commit 6bc2371
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions csi-wekafsplugin/base/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ resources:
- core/serviceaccounts/csi-wekafsplugin-node
- core/serviceaccounts/csi-wekafsplugin-controller
- storage.k8s.io/csidrivers/csi.weka.io
- storage.k8s.io/storageclasses/storageclass-wekafs-dir-api
- security.openshift.io/securitycontextconstraints/csi-wekafsplugin-node-scc
- security.openshift.io/securitycontextconstraints/csi-wekafsplugin-controller-scc
- rbac.authorization.k8s.io/clusterrolebindings/csi-wekafsplugin-node
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- storageclass.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
name: storageclass-wekafs-dir-api
provisioner: csi.weka.io
reclaimPolicy: Delete
volumeBindingMode: Immediate
allowVolumeExpansion: true
parameters:
volumeType: dir/v1
filesystemName: default
# optional parameters setting UID, GID and permissions on volume
# UID of the volume owner, default 0 (root)
# ownerUid: "1000"

# GID of the volume owner, default 0 (root)
# ownerGid: "1000"

# permissions in Unix octal format, default "0750"
# permissions: "0775"

# capacity enforcement mode (either SOFT or HARD)
# - HARD or unspecified: pod will not be able to write above quota
# - SOFT: warning will be issued on Weka cluster, but writing will not be blocked
capacityEnforcement: HARD
# name of the secret that stores API credentials for a cluster
# change the name of secret to match secret of a particular cluster (if you have several Weka clusters)
csi.storage.k8s.io/provisioner-secret-name: &secretName csi-wekafs-api-secret
# change the name of the namespace in which the cluster API credentials
csi.storage.k8s.io/provisioner-secret-namespace: &secretNamespace csi-wekafsplugin
# do not change anything below this line, or set to same parameters as above
csi.storage.k8s.io/controller-publish-secret-name: *secretName
csi.storage.k8s.io/controller-publish-secret-namespace: *secretNamespace
csi.storage.k8s.io/controller-expand-secret-name: *secretName
csi.storage.k8s.io/controller-expand-secret-namespace: *secretNamespace
csi.storage.k8s.io/node-stage-secret-name: *secretName
csi.storage.k8s.io/node-stage-secret-namespace: *secretNamespace
csi.storage.k8s.io/node-publish-secret-name: *secretName
csi.storage.k8s.io/node-publish-secret-namespace: *secretNamespace

0 comments on commit 6bc2371

Please sign in to comment.