When to use Cloud Run
It is the view of the author that Google Cloud Run should be the default deployment environment when containers are under discussion. The question then becomes, when should we not use Google Cloud Run to host our containers?
The following list includes some of the reasons when we would not use Google Cloud Run to host our containers:
- We need stateful containers.
- We need to use ConfigMaps or Secrets.
- We need to have complex ingress routing.
- We need the services to be hosted on a VPC (it is possible to use a VPC connector to access private IP addresses, but Google Cloud Run is not hosted in our VPC).
- We always need to have at least one instance of our container active (it is not currently possible to set the minimum number of instances to anything other than zero).
There are exceptions to the preceding list, specifically around ConfigMaps and Secrets, and the VPC. If we are using Google Cloud Run for Anthos instead of fully managed...