-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add weka storageclass for RWX volumes
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
...splugin/base/storage.k8s.io/storageclasses/storageclass-wekafs-dir-api/kustomization.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
39 changes: 39 additions & 0 deletions
39
...fsplugin/base/storage.k8s.io/storageclasses/storageclass-wekafs-dir-api/storageclass.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |