Hello ERAS2 Hamburg, thank you for posting your query here!
Firstly, apologies for the delay in response.
I understand that you're encountering intermittent access denied errors to Azure Storage when running .NET Core applications in Kubernetes.
The error message indicates a file system permission issue. It’s possible that the application does not have the necessary permissions to write to the specified path in the container. You could try using an initContainer to change the ownership or permissions of the /app/CustomerFileShare directory before the application container starts.
You could set the fsGroup in the pod’s security context. This will change the ownership of the volume to the specified group ID, and any processes in the pod that run with this group ID will be able to write to the volume.
Also, please verify if the keys for the Azure Storage account were rotated recently and if the Kubernetes secret was updated accordingly.
Do let us know if you have any further queries. I’m happy to assist you further.