kupe_cluster
Manages a Kupe Cloud cluster for a tenant.
Example Usage
Section titled “Example Usage”resource "kupe_cluster" "production" { name = "production" display_name = "Production" type = "shared" version = "1.32"
resources = { cpu = "4" memory = "16Gi" storage = "100Gi" }}Schema
Section titled “Schema”Required
Section titled “Required”display_name(String) Human-readable display name (immutable after creation).name(String) Cluster name (immutable after creation).type(String) Cluster type. Valid values are shared and dedicated. Immutable after creation.
Optional
Section titled “Optional”resources(Attributes) Resource limits for the cluster. (see below for nested schema)version(String) Kubernetes version (e.g., 1.31).
Read-Only
Section titled “Read-Only”created_at(String) Timestamp when the cluster was created.endpoint(String) Cluster API server endpoint.etag(String) Resource version used for optimistic locking during updates.phase(String) Current cluster phase, for example Pending, Provisioning, or Running.
Nested Schema for resources
Section titled “Nested Schema for resources”Optional:
cpu(String) CPU limit (e.g., 4, 500m).memory(String) Memory limit (e.g., 16Gi, 512Mi).storage(String) Storage limit (e.g., 100Gi).
Import
Section titled “Import”Import is supported using the following syntax:
The terraform import command can be used, for example:
terraform import kupe_cluster.production production