Comments (7)
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.
- If we pass
localprovisioner.basePath
in helm values it reflects in the storage class. - 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.
I have tested this in 2.9.0
openebs version. @Sam-Lin-MillersLab PTAL if this solves your use case.
from charts.
Hi @shovanmaity -- is it possible to install the same chart with a modified value?
from charts.
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.
@Sam-Lin-MillersLab - do you still need a fix for this one?
from charts.
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.
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)
- init-pvc pod runs with priviledged security context
- ValidatingWebhookConfiguration object left behind after disabling cStor/legacy HOT 3
- node selection not available for openebs-ndm:ndmExporter
- Chart: Allow configuring of deployment strategy
- Installing the latest helm chart release 3.3.0 includes images tagged 3.2.0 HOT 1
- helm upgrade failed with "nil pointer evaluating interface {}.enabled" HOT 1
- 3.3.0 -> 3.4.0
- Chart 3.4.0 Referenced in Chart.yaml but no tar.gz exists HOT 1
- Enabling ndmExporter results in duplicate "name" keys HOT 1
- allowVolumeExpansion helm parameter for localPV device storage class
- upgrading to install jiva causes resource mapping not found
- typo in LVM driver image name HOT 2
- Support NDM `metaconfigs` HOT 2
- Upgrade 3.7.0->3.8.0 fails when there exists a volumesnapshotclass HOT 3
- Incorrect OPENEBS_IO_BASE_PATH when mayastor enabled
- Wrong override for jiva image in helm chart in release 3.10.0 HOT 1
- Publish to OCI
- Issue with webdocs deploying helmchart for OpenEBS
- Missing Chart for nfs provisioner HOT 1
- [Bug] DaemonSet openebs-ndm has too much RBAC permission which may leads the whole cluster being hijacked HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from charts.