Programmatic Deployment
Deploy and interact with Virtual Servers programmatically by using the Kubernetes REST API
Virtual Servers can be deployed onto CoreWeave Cloud programmatically by using the Kubernetes REST API. Any Kubernetes-compliant SDK can be used to deploy Virtual Servers.
This approach is an alternative to using the kubectl
command line tool, the standard tool for engaging with Kubernetes, which can also be used to deploy Virtual Servers onto CoreWeave Cloud.
Prerequisites
Before you can access CoreWeave Cloud, you must first request an account.
To use programmatic deployment as your deployment method, you will first need to obtain valid access credentials in the form of a kubeconfig
file. See Obtain Access Credentials for more information.
Examples
Here are some examples of popular languages being used to deploy Virtual Servers with the Kubernetes REST API.
📄️ Bash
An example of deploying and managing Virtual Servers using programmatic access to the Kubernetes REST API with Bash.
📄️ Python
An example Python implementation of a kubernetes client that interacts with the CoreWeave VirtualServer resource as well as the kubevirt subresource api.
📄️ NodeJS
An example implementation in NodeJS of a kubernetes client to interact with a Virtual Server resource on CoreWeave Cloud.
📄️ Golang
An example implementation in Golang of a kubernetes client to interact with a Virtual Server resource on CoreWeave Cloud.