Closed GRuuuuu closed 4 years ago
On bare metal OpenShift 3.18 I'm trying to consume a NFS server by helm recipt create as in readme:
helm install stable/nfs-client-provisioner --set nfs.server=x.x.x.x --set nfs.path=/exported/path
No way to have any PVC: the requests remain in "pending" state
Tryed also to replicate as describe here https://www.chernsan.com/2020/03/07/nfs-dynamic-provisioning-for-pvc/, no change :(
Any idea how to investigate the issue?
@GRuuuuu, I had the same problem, nfs-provisioner wasn't creating folders in nfs share
As far as I understand, the nfs-provisioner-v
has to be mounted specifically to /persistentvolumes
in that container, so a (hopefully) fixed provisioner config should look like this:
apiVersion: apps/v1
metadata:
name: nfs-provisioner
spec:
selector:
matchLabels:
app: nfs-provisioner
replicas: 1
strategy:
type: Recreate
template:
metadata:
labels:
app: nfs-provisioner
spec:
serviceAccount: nfs-pod-provisioner-sa
containers:
- name: nfs-provisioner
image: quay.io/external_storage/nfs-client-provisioner:latest
volumeMounts:
- name: nfs-provisioner-v
mountPath: /persistentvolumes
env:
- name: PROVISIONER_NAME # do not change
value: nfs-test-00 # SAME AS PROVISONER NAME VALUE IN STORAGECLASS
- name: NFS_SERVER # do not change
value: x.x.x.x # Ip of the NFS SERVER
- name: NFS_PATH # do not change
value: /share/00 # path to nfs directory setup
imagePullPolicy: "IfNotPresent"
volumes:
- name: nfs-provisioner-v # same as volumemouts name
nfs:
server: x.x.x.x
path: /share/00
you should have a volumeMount with mountPath:/persistentvolumes volumeMounts:
Thanks for reporting the issue!
This repo is no longer being maintained and we are in the process of archiving this repo. Please see https://github.com/kubernetes/org/issues/1563 for more details.
If your issue relates to nfs provisioners, please create a new issue in https://github.com/kubernetes-sigs/nfs-ganesha-server-and-external-provisioner or https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner.
Going to close this issue in order to archive this repo. Apologies for the churn and thanks for your patience! :pray:
Environment
Openshift version : v4.3.8
Kubernetes version : v1.16.2
Used Image : quay.io/external_storage/nfs-client-provisioner:latest
Problem
storageclass.yaml
RBAC
provisioner
After applying these yaml files, It seemed all ok.
pv and pvc created well, and provisioner log was successed!
It seemed good! but when I check my NFS, no folders were created.
It seemed nfs-client-provisioner can not make folder in NFS server.
by the way, I can mount folder in my worker node and can make folder as I can.
Now I'm confused with this situation. Why nfs-client-provisioner couldn't make folder in NFS even though provisioner log was succeeded?