We'll use the create_deployment method to create our new deployment. Optionally, we can also pass cluster_id=<cluster> if you want to deploy onto a specific private cluster. You can safely omit this field if you are not using private clusters.
You can also modify an existing deployment at any time, and can change any of the attributes that you have specified in its deployment spec. For instance, here we are scaling the number of replicas in our deployment down to 0, and changing the instance type to a CPU-only option:
We also provide a list_deployments method which allows you to view all active deployments. You can also optionally filter by any or all of cluster ID, project ID, and deployment name: