When comparing Knative vs Cloud Run, the Slant community recommends Knative for most people. In the question“What are the best serverless frameworks?” Knative is ranked 4th while Cloud Run is ranked 11th. The most important reason people chose Knative is:
Works wherever Kubernetes works, which is pretty much everywhere. You can use Knative on Google Cloud, AWS, Azure, and even on-premise.
Ranked in these QuestionsQuestion Ranking
Pros
Pro Cross-platform and multi-cloud.
Works wherever Kubernetes works, which is pretty much everywhere. You can use Knative on Google Cloud, AWS, Azure, and even on-premise.
Pro Flexible
The system supports arbitrary code and dependencies, since it is based in containers rather than a particular programming language. This makes it far more flexible than most of the other options which require a specific language.
Pro Portable
The code doesn't need to make any Google-specific assumptions and can be easily deployed in other kinds of environments and frameworks.
Pro Secure
Cloud Run includes Identity & Access Management (IAM) integration, so that it is possible to limit access to specific microservices rather than granting wide access.
Pro Cost effective
Google's pricing for Cloud Run involves only charging when the service is in use, with the ability for the service to scale-down-to-zero, making it economical to use Cloud Run with microservices and websites that receive relatively low or spiky traffic.
Cons
Con More complex initial setup
While setup is easy assuming you already have a Kubernetes deployment and are familiar with Kubernetes, for beginning users who don't have a Kubernetes cluster, starting with Knative is likely to be a more complex undertaking than other solutions.
