Skip to content

Commit

Permalink
chore(CLOUDDEV-1074): Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Semenov committed Dec 10, 2024
1 parent 36d32ff commit 6ef254d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 8 deletions.
14 changes: 14 additions & 0 deletions docs/resources/cdn_resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,20 @@ provider "edgecenter" {
permanent_api_token = "251$d3361.............1b35f26d8"
}
resource "edgecenter_cdn_origingroup" "origin_group_1" {
name = "origin_group_1"
use_next = true
origin {
source = "example.com"
enabled = true
}
origin {
source = "mirror.example.com"
enabled = true
backup = true
}
consistent_balancing = true
}
resource "edgecenter_cdn_resource" "cdn_example_com" {
cname = "cdn.example.com"
Expand Down
24 changes: 16 additions & 8 deletions docs/resources/lbpool.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,26 +17,34 @@ provider "edgecenter" {
permanent_api_token = "251$d3361.............1b35f26d8"
}
resource "edgecenter_loadbalancer" "lb" {
resource "edgecenter_loadbalancerv2" "lb" {
project_id = 1
region_id = 1
name = "test1"
name = "test"
flavor = "lb1-1-2"
listener {
name = "test"
protocol = "HTTP"
protocol_port = 80
metadata_map = {
tag1 = "tag1_value"
}
}
resource "edgecenter_lblistener" "listener" {
project_id = 1
region_id = 1
name = "test"
protocol = "TCP"
protocol_port = 36621
allowed_cidrs = ["127.0.0.0/24", "192.168.0.0/24"]
loadbalancer_id = edgecenter_loadbalancerv2.lb.id
}
resource "edgecenter_lbpool" "pl" {
project_id = 1
region_id = 1
name = "test_pool1"
protocol = "HTTP"
lb_algorithm = "LEAST_CONNECTIONS"
loadbalancer_id = edgecenter_loadbalancer.lb.id
listener_id = edgecenter_loadbalancer.lb.listener.0.id
loadbalancer_id = edgecenter_loadbalancerv2.lb.id
listener_id = edgecenter_lblistener.listener.id
health_monitor {
type = "PING"
delay = 60
Expand Down

0 comments on commit 6ef254d

Please sign in to comment.