We are migrating .net app from on perm to GCP. I need suggestion to solve one of the use case problem.
Problem Statement
The application is a .NET API which is containerized and hosted in Cloud Run.
We have a Microstrategy Commmand Manager Tool that will be hosted in a GCE windows VM.
The application would create a script file which should be placed in a folder of the disk which the command manager tool could access internally in the GCE instance (A specific folder in the persistent disk) and would pick it up to run. The command manager would place the log files in a different folder which should be accessed by the .NET App hosted in Cloud run
PS: the .NET app runs on the "mcr.microsoft.com/dotnet/aspnet:3.1" base image
What would be the right approach to tackle this scenario? Please suggest.
Is it possible to sync specific folders of persistent disk with a GCS bucket and have the app connect to the GCS bucket? Or is there a way to directly connect to the persistent disk and access the file.
Existing setup on-premise
Currently in the on-premise setup, the application is hosted on the same Windows Server machine where the command manager is installed. So the script file will be placed locally in a folder and the command manager could access it.
Please suggest the right approach for this scenario.
You can't share a persistent disk with Cloud Run. It's the design cloud run, it's stateless and persistent disk can't be shared.
However, you have 3 solutions: