Node Affinity
Learn more about configuring Kubernetes node affinity for Virtual Servers.
Kubernetes Affinities can be used to schedule Virtual Servers onto specific hardware or specific types of hardware. If no Affinity is set, Virtual Servers will be automatically load-balanced according to the internal CoreWeave Cloud orchestration algorithm.
See Advanced Label Selectors for more information.
- Cloud UI
- CLI
- Terraform
Deployment method: CoreWeave Cloud UI
From the Cloud UI, the affinity for the Virtual Server can be configured in the affinity
field in the YAML manifest as shown below.
affinity: {}
Deployment method: Kubernetes CLI
Defines the Kubernetes affinity for the Virtual Server, if there is one.
Field name | Type | Description | Default value |
---|---|---|---|
affinity | string | Defines the Kubernetes affinity for the Virtual Server, if there is one. | none |
Deployment method: Terraform
It is not currently possible to configure Node Affinity using the Terraform module. This setting may be configured in conjunction with use of the Cloud UI or the Kubernetes CLI. Alternatively, you may extend the Virtual Server Terraform module yourself.