Phase 1 provisions the foundational infrastructure: a VPC and a CKS Kubernetes cluster. After this phase completes, you will have a running cluster and can download its kubeconfig to proceed to Phase 2, which adds node pools and DFS storage.Documentation Index
Fetch the complete documentation index at: https://docs.coreweave.com/llms.txt
Use this file to discover all available pages before exploring further.
Ensure you meet the prerequisites before starting, including the CKS Admin IAM role.
Clone the repository
Clone the CoreWeave reference architecture repository, navigate to theterraform/ folder, and copy the example Terraform variables file:
terraform.tfvars.example file contains example values which you can use as a starting point. You’ll edit the terraform.tfvars file to set your values.
Configuration
In this section, you’ll set your API token and configure your Terraform variables.Set your API token
Set the CoreWeave API token as an environment variable:Configure variables
Editterraform.tfvars and set the following values:
| Variable | Description |
|---|---|
zone | Deployment zone, for example US-EAST-02A. |
vpc_name | A name for your VPC. |
vpc_prefixes | CIDR blocks for pod, service, and internal LB networks. See VPC CIDR sizing for guidance. The example values in terraform.tfvars.example are valid defaults. |
cluster_name | A name for your CKS cluster (maximum 30 characters). |
create_nodepool and create_dfs_pvc as false for Phase 1.
Create and verify your VPC and CKS cluster
In this section, you’ll apply your Terraform configuration to create your VPC and CKS cluster, verify the outputs, and download the resulting kubeconfig.Apply your Terraform configuration
Run the following commands to initialize your Terraform configuration, plan your changes, and apply your changes to create your VPC and CKS cluster:Verify outputs
Afterterraform apply completes, verify the core outputs to ensure your VPC and CKS cluster were created successfully:
cks_status output should show the cluster as running.
Download kubeconfig
Download the kubeconfig for your new cluster from the CoreWeave Console. You need this file for Phase 2 (node pools and DFS) and forkubectl access.
- Log in to the CoreWeave Console.
- On the Clusters page, find your new cluster and click the vertical ellipsis on the far right of the screen next to the cluster name.
- Click Download kubeconfig.
- Save the kubeconfig file to your local machine.
KUBECONFIG environment variable to the path to the downloaded kubeconfig and verify connectivity:
Next steps
Your VPC and CKS cluster are ready. Continue to Phase 2 to add node pools and storage:- Add node pools and storage (Phase 2).