-
Seems that your cluster does not have a default storage class. In this case, you will need to specify storage class explicitly via
--set persistence.storageClassName=<a storage class name>. Check here for all storage related settings: -
Thank you!
The following indeed worked for me:
# onedev-pv.yaml apiVersion: v1 kind: PersistentVolume metadata: name: onedev-pv namespace: onedev spec: capacity: storage: 100Gi accessModes: - ReadWriteOnce persistentVolumeReclaimPolicy: Retain storageClassName: onedev-storage hostPath: path: /kubernetes/pv/onedevhelm install onedev onedev/onedev -n onedev --create-namespace --set persistence.storageClassName=onedev-storage -
Previous Value Current Value Open
Closed
| Type |
Bug
|
| Priority |
Normal
|
| Assignee | |
| Affected Versions |
onedev-9.7.0
|
| Labels |
No labels
|
Issue Votes (0)
OneDev helm image (
helm repo add onedev https://dl.cloudsmith.io/public/onedev/onedev/helm/charts) doesn't seem to deploy Persistent Volume. Therefore, the pod stays on pending and is not reachable.