21 lines
461 B
Terraform
21 lines
461 B
Terraform
|
resource "vultr_kubernetes" "k8s" {
|
||
|
region = "ewr"
|
||
|
version = "v1.29.2+1"
|
||
|
label = "cluster00"
|
||
|
ha_controlplanes = false
|
||
|
enable_firewall = false
|
||
|
|
||
|
node_pools {
|
||
|
node_quantity = 1
|
||
|
plan = "vc2-2c-2gb"
|
||
|
label = "cluster00-worker-2c-2g"
|
||
|
auto_scaler = false
|
||
|
}
|
||
|
}
|
||
|
|
||
|
resource "local_sensitive_file" "kubeconfig" {
|
||
|
content_base64 = vultr_kubernetes.k8s.kube_config
|
||
|
filename = "~/.kube/vultr"
|
||
|
file_permission = "0600"
|
||
|
}
|