Skip to content

Commit

Permalink
Add DFKE examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ducvm29 committed Sep 5, 2024
1 parent 81b8405 commit 2e79156
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
30 changes: 30 additions & 0 deletions examples/resources/fptcloud_dfke/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
resource "fptcloud_dedicated_kubernetes_engine_v1" "test" {
cluster_name = "terraform-test-3"
k8s_version = "v1.25.6"
# master_type = data.fptcloud_flavor_v1.master.id
master_type = "c89d97cd-c9cb-4d70-a0c1-01f190ea1b02"
master_count = 1
master_disk_size = 76
# worker_type = data.fptcloud_flavor_v1.worker.id
# worker_type = "5ca3036e-85d6-497f-a37b-076aa8b9adde"
worker_type = "c89d97cd-c9cb-4d70-a0c1-01f190ea1b02"
worker_disk_size = 103
# network_id = data.fptcloud_subnet_v1.xplat_network.id
network_id = "urn:vcloud:network:11980234-8474-4e2e-8925-8087177a43ca"
lb_size = "standard"
pod_network = "10.244.0.0/16"
service_network = "172.30.0.0/16"
network_node_prefix = 23
max_pod_per_node = 110
nfs_status = ""
nfs_disk_size = 100
storage_policy = "Premium-SSD-4000"
edge_id = "4d4bfe05-af32-4354-b20a-de814c8b3713"
scale_min = 1
scale_max = 1
node_dns = "1.1.1.1"
ip_public_firewall = ""
ip_private_firewall = ""
vpc_id = "188af427-269b-418a-90bb-0cb27afc6c1e"
region_id = "saigon-vn"
}
5 changes: 5 additions & 0 deletions examples/resources/fptcloud_dfke_state/resource.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resource "fptcloud_dedicated_kubernetes_engine_v1_state" "test_state" {
id = "your-cluster-uuid"
vpc_id = "your-vpc-id"
is_running = true
}

0 comments on commit 2e79156

Please sign in to comment.