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

I was trying to create a pvc with RWX access mode in the kind cluster. I see an error that it is not supported. #2371

Closed
HariHaraReddyD opened this issue Jul 15, 2021 · 3 comments
Assignees
Labels
kind/feature Categorizes issue or PR as related to a new feature. triage/duplicate Indicates an issue is a duplicate of other open issue.

Comments

@HariHaraReddyD
Copy link

HariHaraReddyD commented Jul 15, 2021

I was using kind cluster to create resources. As part of that I was creating a pvc with RWX access mode. I see the kind cluster comes with standard storage class as below-

NAME                     PROVISIONER             RECLAIMPOLICY   VOLUMEBINDINGMODE      ALLOWVOLUMEEXPANSION   AGE
standard (default)   rancher.io/local-path   Delete                   WaitForFirstConsumer         false                                         12h

It looks like the default storage class not allow to create pvc with Read Write Many access mode. Whereas the default storage class in minikube cluster environment allow us to create pvc with RWX mode.
Below error seen in pvc -
rancher.io/local-path_local-path-provisioner-bd4bb6b75-sbf49_ccebea37-56a9-405c-b76b-3cd0e113fb23 failed to provision volume with StorageClass "standard": Only support ReadWriteOnce access mode

Can someone please let me know if something is missing or is it a known issue?

  • kind version: (use kind version): kind v0.8.1 go1.14.2 linux/amd64
  • Kubernetes version: (use kubectl version): 1.19
  • Docker version: (use docker info): 19.03.11
  • OS (e.g. from /etc/os-release): Ubuntu 18.04.4
@HariHaraReddyD HariHaraReddyD added the kind/bug Categorizes issue or PR as related to a bug. label Jul 15, 2021
@xinydev
Copy link
Contributor

xinydev commented Jul 15, 2021

I think this is a limitation of rancher.io/local-path ,rancher/local-path-provisioner#70

@BenTheElder
Copy link
Member

Unlike minikube we need to support multi-node clusters. We use the driver above.

Most clusters do not have readwritemany out of the box. If you're not doing a special cased single node cluster where you can just bind mount a folder to all the pods you need some synchronized network attached storage like NFS. See #1487

/remove-kind bug
/kind feeature
/triage duplicate
#1487

@k8s-ci-robot k8s-ci-robot added the triage/duplicate Indicates an issue is a duplicate of other open issue. label Jul 15, 2021
@k8s-ci-robot
Copy link
Contributor

@BenTheElder: The label(s) kind/feeature cannot be applied, because the repository doesn't have them.

In response to this:

Unlike minikube we need to support multi-node clusters. We use the driver above.

Most clusters do not have readwritemany out of the box. If you're not doing a special cased single node cluster where you can just bind mount a folder to all the pods you need some synchronized network attached storage like NFS. See #1487

/remove-kind bug
/kind feeature
/triage duplicate
#1487

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@k8s-ci-robot k8s-ci-robot removed the kind/bug Categorizes issue or PR as related to a bug. label Jul 15, 2021
@BenTheElder BenTheElder added the kind/feature Categorizes issue or PR as related to a new feature. label Jul 15, 2021
@BenTheElder BenTheElder self-assigned this Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. triage/duplicate Indicates an issue is a duplicate of other open issue.
Projects
None yet
Development

No branches or pull requests

4 participants