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

Error while mounting nfs in a pod #68

Open
abhilashdk2016 opened this issue Aug 1, 2021 · 3 comments
Open

Error while mounting nfs in a pod #68

abhilashdk2016 opened this issue Aug 1, 2021 · 3 comments

Comments

@abhilashdk2016
Copy link

abhilashdk2016 commented Aug 1, 2021

Hi sir,

Thank you for this wonderful project.

I was able to start the server in Ubuntu 20.04.

Screenshot 2021-08-01 at 12 50 47 PM

Now I am trying to use this nfs server as volume mount using the below yaml definition:
`

apiVersion: apps/v1

kind: Deployment
metadata:
  labels:
    app: busybox
  name: busybox
 spec:
  replicas: 1
  selector:
    matchLabels:
      app: busybox
  template:
    metadata:
      labels:
        app: busybox
    spec:
      containers:
      - image: busybox
        name: busybox
        command: ["/bin/sh"]
        args: ["-c","echo 'At Work!' >> /mnt/log.txt; while true; do date >> /mnt/log.txt; sleep 10; done;"]
        volumeMounts:
          - name: nfs
            mountPath: "/mnt"
      volumes:
      - name: nfs
        nfs:
          server: nfs-server
          path: /

But nfs is not being mounted and I am getting the following error:
Screenshot 2021-08-01 at 12 57 40 PM

Could you please help me in understanding how to mount a volume based of your nfs-server.

Thanks in advance.

@rakesh0022
Copy link

@abhilashdk2016 I am facing similar issue, did you find any solution for the above issue ?

@abhilashdk2016
Copy link
Author

@rakesh0022 Please do check my another issue https://github.com/phcollignon/kubernetes_storage/issues/1 Here you might find something useful.

@rakesh0022
Copy link

thanks @abhilashdk2016

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

2 participants