Deployments Client
Importing
Create the deployment spec
You can either create a deployment spec within your script, or import one from a YAML file on disk. For example,
Create the deployment
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.
Check the deployment status
We can monitor the status of our newly created deployment with the get_deployment
function:
Update the deployment
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:
Delete a deployment
At any point, you can delete a deployment and remove it from the web console and from all CLI output:
View and search existing deployments
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:
Last updated