page_title | subcategory | description |
---|---|---|
twc_k8s_cluster Resource - Timeweb Cloud |
Resource for describing needed K8S cluster and provides actual information about its status |
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.22.17"
network_driver = "flannel"
ingress = true
preset_id = data.twc_k8s_preset.example-k8s-preset-master.id
}
name
(String) Name for K8S clusternetwork_driver
(String) Network driver for K8S cluster may be retrieved from APIpreset_id
(Number) Preset ID for K8S clusterversion
(String) K8S version may be retrieved from API
description
(String) Description for K8S clusterhigh_availability
(Boolean) High Availability for K8S clusteringress
(Boolean) Add ingress for K8S clusterproject_id
(Number) Project ID for K8S cluster
cpu
(Number) Sum of CPU count of all worker nodesdisk
(Number) Sum of disks volume of worker nodesid
(String) The ID of this resource.kubeconfig
(String, Sensitive) K8S cluster kubeconfigram
(Number) Sum of RAM count of all worker nodesstatus
(String) Current status of K8S cluster (installing
,provisioning
,active
,unpaid
,started
,not_installed
,failed
,unpaid_not_installed
,deletion
)