-
Notifications
You must be signed in to change notification settings - Fork 736
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
v4 support and read only mounts #329
Comments
It sounds like you don't need a provisioner, but a simple PV or just a volume option.
|
thanks for the hint. i indeed was aware of this, but since i am using k3s as distribution, there NFS is not available out of the box so i am not sure what to do to install it |
check if your host has all the tools for mounting nfs (e.g. on debian |
hi there, i had checked k3s doc already and could not find out any official way to install a new nfs "storageclass" although i wouldnt call it that way in the case of k8s. currently i am mounting the nfs volume manually on the host (i.e. outside k8s) and then i pods are accessing via hostPath mount ... which is not ideal of course. that's why i was looking for a way to deal with it directly in k8s ... should i perhaps try a different approach and use rather a cifs provider ? https://www.datree.io/helm-chart/cifs-share-lippertmarkus |
Can you specify again exactly what you are trying to do? In the original post you said you have an NFSv4 server, that already contains data. What i don't get is why you want to use a provisioner for that. |
Why don't you just create a PV from your NFSv4 server, and then use that in your pod? https://kubernetes.io/docs/concepts/storage/volumes/#nfs apiVersion: v1
kind: PersistentVolume
metadata:
name: nfs
spec:
capacity:
storage: 1Mi
accessModes:
- ReadOnlyMany
nfs:
server: nfs-server.default.svc.cluster.local
path: "/"
mountOptions:
- nfsvers=4.2 That should also work with k3s no problem. |
i will try that once again, but i recall having given it a shot and it was not working. as also highlighted in this recent post: https://zaher.dev/blog/k3s-with-nfs-storage-class |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/remove-lifecycle stale |
hi there, my use case:
so basically i already have data in nfs server and need the container to access that in readonly mode ...
the problem is that if i create a PVC the provisioner complains with "read only file system" ... which is correct ... but how to achieve this then ?
The text was updated successfully, but these errors were encountered: