0

Is it possible to deploy to GKE Autopilot cluster without YAML and just command line? I have inherited a project where deployment generates command line to deploy to CloudRun. I am in the process of migrating from CloudRun to GKE Autopilot and I would like to not need to parse or generate YAML files just for the purpose of deploying a service to GKE Autopilot. Is there a way to deploy with just command line like I can with CloudRun?

2
  • You can use kubectl run to create a Pod in a similar way to gcloud run deploy but the command deploys only Pods (and you may want to use Deployments|Services etc.). You can use kubectl create to create Deployments|Services etc. but this command supports fewer args (e.g. no --env). Just as with Cloud Run, you should consider creating YAML (or JSON) configs (or associated tools) to leverage the full power of the platform. Commented Feb 17, 2024 at 19:09
  • Given that Cloud Run is an implementation of knative, you may want to investigate using Cloud Run for Anthos. I've not used Anthos but IIUC it provides a way to deploy Cloud Run to Kubernetes clusters. Commented Feb 17, 2024 at 19:13

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.