Fehler: Output: mount.nfs: access denied by server while mounting x.x.x.x:/file-share-name
Achten Sie darauf, dass die Werte spec.nfs.path und spec.nfs.server des PV mit dem Namen der Dateifreigabe bzw. der IP-Adresse der Filestore-Instanz übereinstimmen.
Example:
Wenn Ihre Dateifreigabe den Namen vol1 und die IP-Adresse der Filestore-Instanz 10.0.0.2 ist, müssen spec.nfs.path und spec.nfs.server des PV diesen Werten entsprechen:
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-09-04 (UTC)."],[[["\u003cp\u003eThis page offers troubleshooting guidance for resolving issues when using Filestore with GKE.\u003c/p\u003e\n"],["\u003cp\u003eA common problem is the inability to access file shares from GKE clusters.\u003c/p\u003e\n"],["\u003cp\u003eAn "access denied" error can often be resolved by ensuring the PersistentVolume (PV) \u003ccode\u003espec.nfs.path\u003c/code\u003e and \u003ccode\u003espec.nfs.server\u003c/code\u003e values correctly match the file share name and Filestore instance IP address.\u003c/p\u003e\n"],["\u003cp\u003eAdditional troubleshooting resources for Kubernetes and GKE are available in their respective official guides.\u003c/p\u003e\n"]]],[],null,["# Troubleshoot file share access from GKE clusters\n\nThis page provides troubleshooting information to help address issues you might\nencounter while using Filestore with GKE.\n\nUnable to access file share from GKE clusters\n---------------------------------------------\n\nFor more troubleshooting information relating to Kubernetes or Google Kubernetes Engine, you\ncan also refer to the official\n[Kubernetes troubleshooting guide](https://kubernetes.io/docs/tasks/debug-application-cluster/troubleshooting/)\nand the\n[GKE troubleshooting guide](/kubernetes-engine/docs/troubleshooting).\n\n### Error: Output: mount.nfs: access denied by server while mounting x.x.x.x:/file-share-name\n\nMake sure that the values of the PV `spec.nfs.path` and `spec.nfs.server` match\nwith the name of the file share and the IP address of the Filestore\ninstance, respectively.\n\n**Example:**\n\nIf your file share is named `vol1` and the IP address of the\nFilestore instance is `10.0.0.2`, the PV `spec.nfs.path` and\n`spec.nfs.server` must match those values: \n\n apiVersion: v1\n kind: PersistentVolume\n metadata:\n name: fileserver\n spec:\n capacity:\n storage: 2T\n accessModes:\n - ReadWriteMany\n nfs:\n path: /vol1\n server: 10.0.0.2"]]