init project

This commit is contained in:
behrooz
2025-12-01 19:38:12 +03:30
commit 2c614fcab2
8 changed files with 593 additions and 0 deletions

36
example/main.tf Normal file
View File

@@ -0,0 +1,36 @@
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"
}