Cannot delete files inside K8s container within mounted Azure File Share
All the things work fine on my side as the screenshot below shows:
But I met the same issue before. You can try to execute the command like this:
kubectl exec mypod-7ddbbb6c87-cwl76 -- bash -c "find /usr/bin/myprogram/logs -type f -mtime +14 -delete"