Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 1.81 KB

File metadata and controls

59 lines (45 loc) · 1.81 KB
page_title subcategory description
twc_k8s_cluster Resource - Timeweb Cloud
Resource for describing needed K8S cluster and provides actual information about its status

twc_k8s_cluster (Resource)

Resource for describing needed K8S cluster and provides actual information about its status

Примеры использования

# Select any preset for master node with 4 CPUs
data "twc_k8s_preset" "example-k8s-preset-master" {
  cpu = 4
  type = "master"
}

# Create example cluster with selected preset
resource "twc_k8s_cluster" "example-k8s-cluster" {
  name = "example-cluster"
  description = "some example cluster"

  high_availability = false
  version = "v1.26.7"
  network_driver = "flannel"
  ingress = true

  preset_id = data.twc_k8s_preset.example-k8s-preset-master.id
}

Schema

Required

Optional

  • description (String) Description for K8S cluster
  • high_availability (Boolean) High Availability for K8S cluster
  • ingress (Boolean) Add ingress for K8S cluster
  • project_id (Number) Project ID for K8S cluster

Read-Only

  • cpu (Number) Sum of CPU count of all worker nodes
  • disk (Number) Sum of disks volume of worker nodes
  • id (String) The ID of this resource.
  • kubeconfig (String, Sensitive) K8S cluster kubeconfig
  • ram (Number) Sum of RAM count of all worker nodes
  • status (String) Current status of K8S cluster (installing, provisioning, active, unpaid)