Add mount options example
This commit is contained in:
parent
ce0d5e7704
commit
46da5a7002
2 changed files with 3 additions and 2 deletions
|
@ -6,8 +6,10 @@ metadata:
|
||||||
provisioner: ch.ctrox.csi.s3-driver
|
provisioner: ch.ctrox.csi.s3-driver
|
||||||
parameters:
|
parameters:
|
||||||
mounter: geesefs
|
mounter: geesefs
|
||||||
|
# you can set mount options here, for example limit memory cache size (recommended)
|
||||||
|
options: "--memory-limit 1000 --dir-mode 0777 --file-mode 0666"
|
||||||
# to use an existing bucket, specify it here:
|
# to use an existing bucket, specify it here:
|
||||||
# bucket: some-existing-bucket
|
#bucket: some-existing-bucket
|
||||||
csi.storage.k8s.io/provisioner-secret-name: csi-s3-secret
|
csi.storage.k8s.io/provisioner-secret-name: csi-s3-secret
|
||||||
csi.storage.k8s.io/provisioner-secret-namespace: kube-system
|
csi.storage.k8s.io/provisioner-secret-namespace: kube-system
|
||||||
csi.storage.k8s.io/controller-publish-secret-name: csi-s3-secret
|
csi.storage.k8s.io/controller-publish-secret-name: csi-s3-secret
|
||||||
|
|
|
@ -46,7 +46,6 @@ func (geesefs *geesefsMounter) Unstage(stageTarget string) error {
|
||||||
|
|
||||||
func (geesefs *geesefsMounter) Mount(source string, target string) error {
|
func (geesefs *geesefsMounter) Mount(source string, target string) error {
|
||||||
fullPath := fmt.Sprintf("%s:%s", geesefs.meta.BucketName, geesefs.meta.Prefix)
|
fullPath := fmt.Sprintf("%s:%s", geesefs.meta.BucketName, geesefs.meta.Prefix)
|
||||||
// FIXME Add memory limits
|
|
||||||
args := []string{
|
args := []string{
|
||||||
"--endpoint", geesefs.endpoint,
|
"--endpoint", geesefs.endpoint,
|
||||||
"--region", geesefs.region,
|
"--region", geesefs.region,
|
||||||
|
|
Loading…
Reference in a new issue