Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specify "--cache-xz" option in yaml when create PV #330

Closed
yangchi opened this issue Jan 8, 2025 · 2 comments · Fixed by #356
Closed

How to specify "--cache-xz" option in yaml when create PV #330

yangchi opened this issue Jan 8, 2025 · 2 comments · Fixed by #356
Labels
documentation Improvements or additions to documentation

Comments

@yangchi
Copy link

yangchi commented Jan 8, 2025

In the v1.11.0 release note, it's mentioned that mountpoint v1.13.0 is now supported and with this version "--cache-xz" option is available. But it's not clear to me how to set this in yaml file when I create the PersistentVolume. Can you please provide an example of such config in the examples folder? Thank you very much!

@yangchi yangchi changed the title How to specify "--cache-xz" option in yaml How to specify "--cache-xz" option in yaml when create PV Jan 8, 2025
@muddyfish muddyfish added the documentation Improvements or additions to documentation label Jan 8, 2025
@muddyfish
Copy link
Contributor

Hi, you can specify this with the CSI Driver using the argument list mountOptions.

Here's an example that uses the cache-xz argument:

apiVersion: v1
kind: PersistentVolume
metadata:
  name: s3-pv
spec:
  capacity:
    storage: 1200Gi # Ignored, required
  accessModes:
    - ReadWriteMany # Supported options: ReadWriteMany / ReadOnlyMany
  storageClassName: "" # Required for static provisioning
  claimRef: # To ensure no other PVCs can claim this PV
    namespace: default # Namespace is required even though it's in "default" namespace.
    name: s3-pvc # Name of your PVC
  mountOptions:
    - allow-delete
    - region us-west-2
    - prefix some-s3-prefix/
    - cache-xz amzn-s3-demo-bucket--usw2-az1--x-s3
  csi:
    driver: s3.csi.aws.com # Required
    volumeHandle: s3-csi-driver-volume
    volumeAttributes:
      bucketName: s3-csi-driver

I'll leave this open until we push an update with an example to the codebase however

@yangchi
Copy link
Author

yangchi commented Jan 10, 2025

thank you!

github-merge-queue bot pushed a commit that referenced this issue Jan 24, 2025
Resolves #330

Creation of a new example including shared cache usage and based on the
existing `static_provisioning.yaml`.

By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.

---------

Signed-off-by: Renan Magagnin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants