Troubleshoot file share access from GKE clusters

This page provides troubleshooting information to help address issues you might encounter while using Filestore with GKE.

Unable to access file share from GKE clusters

For more troubleshooting information relating to Kubernetes or Google Kubernetes Engine, you can also refer to the official Kubernetes troubleshooting guide and the GKE troubleshooting guide.

Error: Output: mount.nfs: access denied by server while mounting x.x.x.x:/file-share-name

Make sure that the values of the PV spec.nfs.path and spec.nfs.server match with the name of the file share and the IP address of the Filestore instance, respectively.

Example:

If your file share is named vol1 and the IP address of the Filestore instance is 10.0.0.2, the PV spec.nfs.path and spec.nfs.server must match those values:

apiVersion:v1
kind:PersistentVolume
metadata:
name:fileserver
spec:
capacity:
storage:2T
accessModes:
-ReadWriteMany
nfs:
path:/vol1
server:10.0.0.2

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月29日 UTC.