Giter Club home page Giter Club logo

Comments (7)

shovanmaity avatar shovanmaity commented on July 20, 2024

I hope this query is related to openebs hostpath volume.
By default /var/openebs/local is the path in the host where data is saved for the volumes. This information is present in the annotation of storage class.

kubectl get sc openebs-hostpath -o jsonpath='{.metadata.annotations.cas\.openebs\.io\/config}'

- name: StorageType
  value: "hostpath"
- name: BasePath
  value: /var/openebs/local

There are 2 options if we want to save the data in some other place in the host.

  1. If we pass localprovisioner.basePath in helm values it reflects in the storage class.
  2. We can create a new storageclass and consume that for our application.

Here is one sample storageclass

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  name: updated-openebs-hostpath
  annotations:
    openebs.io/cas-type: local
    cas.openebs.io/config: |
      - name: StorageType
        value: "hostpath"
      - name: BasePath
        value: "/var/openebs/local"
provisioner: openebs.io/local
volumeBindingMode: WaitForFirstConsumer
reclaimPolicy: Delete

from charts.

shovanmaity avatar shovanmaity commented on July 20, 2024

I have tested this in 2.9.0 openebs version. @Sam-Lin-MillersLab PTAL if this solves your use case.

from charts.

kmova avatar kmova commented on July 20, 2024

Hi @shovanmaity -- is it possible to install the same chart with a modified value?

from charts.

shovanmaity avatar shovanmaity commented on July 20, 2024

Yes it is possible, like point 1 in the comment.
This value is used in 2 places.

  • In default storage class.
  • As env in localpv-provisioner. This is useful when base path is not present in sc.
    If we helm upgrade of existing installation, storageclass will not be updated but env will be updated.

from charts.

kmova avatar kmova commented on July 20, 2024

@Sam-Lin-MillersLab - do you still need a fix for this one?

from charts.

Sam-Lin-MillersLab avatar Sam-Lin-MillersLab commented on July 20, 2024

well, sorry, I haven't had a chance to test it. you can close it if you want. i will report if it doesn't work.

from charts.

D1StrX avatar D1StrX commented on July 20, 2024

Fresh installation here.
I tried to define an alternative basepath in the values.yaml. But in my case the entire values.yaml is ignored.

helm install openebs-test -n open-ebs openebs/openebs -f values.yaml
  • The kubectl get sc openebs-hostpath -o jsonpath='{.metadata.annotations.cas\.openebs\.io\/config}' shows the default path. - When changing the SC name of the openebs-hostpath, it doesn't deploy the SC with the specified name.
  • When disabling the openebs-device SC, it ignores this and still deploys. (Tried both deprecated and new definition)
enableDeviceClass: false
...
  deviceClass:
    # Name of default device StorageClass.
    name: openebs-device

Also tried a fresh install with;

defaultStorageConfig:
  enabled: "false"

Anything else to check?

from charts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.