EFS

  • Troubleshooting EFS
    kubectl logs deployment/efs-csi-controller -n kube-system -c efs-plugin
    kubectl logs daemonset/efs-csi-node -n kube-system -c efs-plugin
  • /etc/amazon/efs/efs-utils.conf
  • EFS Setup on Instance
    fs-06c4376af4814cd83:/ /mnt/efs efs _netdev,tls 0 0
    /mnt/efs/x-stage/data /home/ubuntu/deploy/data none bind 0 0
    /mnt/efs/x-stage/docker /home/ubuntu/deploy/docker none bind 0 0
    
    findmnt --real
  • Trouble with ACL
    # efs mounted data dir
    setfacl -R -m u:www-data:rwX -m u:"$(whoami)":rwX var
    setfacl -dR -m u:www-data:rwX -m u:"$(whoami)":rwX var