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

Persistent Volume Claims with a subPath cause to a "no such file or directory" error #403

Closed
pbalogh-sa opened this issue Mar 26, 2019 · 2 comments

Comments

@pbalogh-sa
Copy link

pbalogh-sa commented Mar 26, 2019

In case of PVC with subpath causes an "no such file or deirectory" error

      volumeMounts:
      - mountPath: /var/lib/postgresql/data/pgdata
        name: data
        subPath: postgresql-db
Warning  Failed     14s (x5 over 40s)  kubelet, kind-control-plane  Error: stat /tmp/hostpath_pv/3fd8ed04-4f9a-11e9-8a5b-0242d7acb934: no such file or directory

Kind version: 0.3.0-alpha
kubectl version

Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.4", GitCommit:"c27b913fddd1a6c480c229191a087698aa92f0b1", GitTreeState:"clean", BuildDate:"2019-03-01T23:34:27Z", GoVersion:"go1.12", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.4", GitCommit:"c27b913fddd1a6c480c229191a087698aa92f0b1", GitTreeState:"clean", BuildDate:"2019-03-20T16:54:39Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"}
@aojea
Copy link
Contributor

aojea commented Mar 26, 2019

This seems related kubernetes/minikube#2256
I guess that the solution is to fix this #118
@pbalogh-sa can you check if the local-path-provisioner solve the issue? #118 (comment)

@pbalogh-sa
Copy link
Author

thanks @aojea , it works

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants