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

Offer a simple dynamic storage provisioner in CRC? #1205

Closed
brightzheng100 opened this issue May 2, 2020 · 5 comments
Closed

Offer a simple dynamic storage provisioner in CRC? #1205

brightzheng100 opened this issue May 2, 2020 · 5 comments
Labels
status/stale Issue went stale; did not receive attention or no reply from the OP

Comments

@brightzheng100
Copy link

General information

  • OS: macOS
  • Hypervisor: hyperkit
  • Did you run crc setup before starting it (Yes/No)? Yes

CRC version

# Put the output of `crc version`
crc version: 1.9.0+a68b5e0
OpenShift version: 4.3.10 (embedded in binary)

CRC status

# Put the output of `crc status`
CRC VM:          Running
OpenShift:       Running (v4.3.10)
Disk Usage:      13.06GB of 32.72GB (Inside the CRC VM)
Cache Usage:     12.09GB
Cache Directory: /Users/brightzheng/.crc/cache

Steps to reproduce

I saw there is a list of pre-provisioned PVs:

NAME                      CAPACITY   ACCESS MODES   RECLAIM POLICY   STATUS      CLAIM                                                 STORAGECLASS   REASON   AGE
persistentvolume/pv0001   100Gi      RWO,ROX,RWX    Recycle          Bound       openshift-image-registry/crc-image-registry-storage                           15d
persistentvolume/pv0002   100Gi      RWO,ROX,RWX    Recycle          Available                                                                                 15d
...
persistentvolume/pv0030   100Gi      RWO,ROX,RWX    Recycle          Available                                                                                 15d

But no storageclass is available now.

Expected

There should be at least one StorageClass embedded to make a lot of things easier.
May refer to Kind's hostpath to bundle one?
kubernetes-sigs/kind#118

Actual

No dynamic storage available

@praveenkumar
Copy link
Member

@brightzheng100 can you try https://github.com/code-ready/crc/wiki/Dynamic-volume-provisioning one as let us know if that manual steps working for you and able to use for you workloads.

@brightzheng100
Copy link
Author

Yup, for now I'm using rancher/local-path-provisioner:

$ oc apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/master/deploy/local-path-storage.yaml
$ oc annotate storageclass/local-path storageclass.kubernetes.io/is-default-class=true
$ oc get sc
NAME                   PROVISIONER             AGE
local-path (default)   rancher.io/local-path   8m28s

Maybe it's just one of the FAQ items so the user can know what potential solutions can be used, or simply make one of the solutions embedded, as selectable add-ons, think of minikube?

@praveenkumar
Copy link
Member

@brightzheng100 yes, we are going to embed the kubevirt hostpath provisioner by default so user can use it for stroage classes. I am going to keep this issue open till we figure out where it would be.

@stale
Copy link

stale bot commented Jul 7, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the status/stale Issue went stale; did not receive attention or no reply from the OP label Jul 7, 2020
@grdryn
Copy link

grdryn commented Jul 15, 2021

yes, we are going to embed the kubevirt hostpath provisioner by default so user can use it for stroage classes. I am going to keep this issue open till we figure out where it would be.

@praveenkumar did this ever happen? In crc 1.28.0+ I don't see it at least, so it's not clear to me what provisioner to use for a StorageClass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/stale Issue went stale; did not receive attention or no reply from the OP
Projects
None yet
Development

No branches or pull requests

3 participants