36 lines
892 B
HCL
36 lines
892 B
HCL
terraform {
|
|
required_providers {
|
|
vcluster = {
|
|
source = "local/vcluster/vcluster"
|
|
version = "0.1"
|
|
}
|
|
}
|
|
}
|
|
|
|
provider "vcluster" {
|
|
base_url = "http://localhost:8082"
|
|
|
|
# Credentials used for POST /login. The provider will automatically
|
|
# call /login, get the token from {"token": "..."} and send it as
|
|
# the Authorization header on subsequent API calls.
|
|
username = "admin"
|
|
password = "admin"
|
|
}
|
|
|
|
resource "vcluster_cluster" "example" {
|
|
name = "myttiny"
|
|
cluster_id = "2qjqhhqr"
|
|
control_plane = "k8s"
|
|
status = "Progressing"
|
|
cpu = "1"
|
|
memory = "1024"
|
|
platform_version = "v1.31.6"
|
|
health_check = ""
|
|
alert = ""
|
|
endpoint = ""
|
|
cluster_type = "tiny"
|
|
coredns_cpu = "0.3"
|
|
coredns_memory = "0.200Gi"
|
|
apiserver_cpu = "0.3"
|
|
apiserver_memory = "0.200Gi"
|
|
} |