init project
This commit is contained in:
36
example/main.tf
Normal file
36
example/main.tf
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user