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

configMap can't mounted as file on the NFS PVC #640

Open
dacrhu opened this issue Mar 30, 2024 · 0 comments
Open

configMap can't mounted as file on the NFS PVC #640

dacrhu opened this issue Mar 30, 2024 · 0 comments

Comments

@dacrhu
Copy link

dacrhu commented Mar 30, 2024

What happened:

volumes:
- name: my-pvc
persistentVolumeClaim:
claimName: my-pvc
- name: my-logo
configMap:
name: my-logo
defaultMode: 420
...
volumeMounts:
- name: my-pvc
mountPath: /app/private
- name: my-logo
mountPath: /app/private/logo
readOnly: true

Logo file is not mount to the folder.
if i change the mountPath to something other than nfs, it mounted.

What you expected to happen:
Be able to mount a configMap on NFS storage.

How to reproduce it:

  1. make a NFS stoargeClass
  2. make a PVC to NFS
  3. try mount a configMap as file to it

Environment:

  • CSI Driver version: v4.6.0
  • Kubernetes version (use kubectl version): v1.28.7 (microk8s)
  • OS (e.g. from /etc/os-release): Ubuntu 22.04.4
  • Kernel (e.g. uname -a): 5.15.0-101-generic
  • Install tools:
  • Others:
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

1 participant