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

Volume mount does not work in Azure AKS #16

Open
ananthkamath opened this issue Jul 28, 2021 · 2 comments
Open

Volume mount does not work in Azure AKS #16

ananthkamath opened this issue Jul 28, 2021 · 2 comments

Comments

@ananthkamath
Copy link

I followed the steps in the blogpost https://blog.meain.io/2020/mounting-s3-bucket-kube/, but when the daemonset get created when i bash into the pod i see below in /var directory.

bash-4.3# ls /var
cache   db      empty   git     lib     lock    log     run     s3fs    s3fs:shared  spool   tmp

Just wanted to check if I am missing anything here which needs to be done for Azure AKS or does this setup not work for Azure AKS?

Daemonset.yaml

spec:
      containers:
      - name: s3fuse
        image: meain/s3-mounter
        lifecycle:
          preStop:
            exec:
              command: ["/bin/sh","-c","umount -f /var/s3fs"]
        securityContext:
          privileged: true
          capabilities:
            add:
            - SYS_ADMIN
        envFrom:
        - configMapRef:
            name: s3-config
        volumeMounts:
        - name: devfuse
          mountPath: /dev/fuse
        - name: mntdatas3fs
          mountPath: /var/s3fs:shared
      volumes:
      - name: devfuse
        hostPath:
          path: /dev/fuse
      - name: mntdatas3fs
        hostPath:
          path: /mnt/s3-data

examplepod.yaml

spec:
  containers:
  - image: nginx
    name: s3-test-container
    securityContext:
      privileged: true
    volumeMounts:
    - name: mntdatas3fs
      mountPath: /var/s3fs:shared
  volumes:
  - name: mntdatas3fs
    hostPath:
      path: /mnt/s3-data
@schantier
Copy link

I have the same problem, did you find a solution?

@apatil4
Copy link

apatil4 commented Jun 29, 2023

seeing the same things for AWS EKS

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

3 participants