If you'd like to develop a Cloud Run service using Cloud Code and Anthos, you can use Cloud Code to create a Google Kubernetes Engine cluster with Cloud Run for Anthos enabled and easily deploy your app to your newly created cluster.
Creating a GKE cluster with Cloud Run for Anthos enabled
Using the GKE Explorer, you can quickly create a cluster with Cloud Run for Anthos support enabled:
- In the header of the Google Kubernetes Engine Explorer panel, click
on the plus icon
(visible only on mouseover) to launch the Create Cluster wizard.
- Then, choose your preferred project ID (or use the default one), zone/region, and configuration (cluster name, number of nodes and machine type).
- Select 'Enable Cloud Run for Anthos'.
- Click 'Create Cluster'.