Skip to content

Commit 39fa4fe

Browse files
authored
fix workload doc (#1209)
1 parent d6ef473 commit 39fa4fe

File tree

1 file changed

+11
-20
lines changed

1 file changed

+11
-20
lines changed

website/docs/r/tem_workload.html.markdown

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,28 +15,19 @@ Provides a resource to create a tem workload
1515

1616
```hcl
1717
resource "tencentcloud_tem_workload" "workload" {
18-
application_id = "app-3j29aa2p"
19-
environment_id = "en-853mggjm"
20-
deploy_version = "hello-world"
21-
deploy_mode = "IMAGE"
22-
img_repo = "tem_demo/tem_demo"
23-
init_pod_num = 1
24-
cpu_spec = 1
25-
memory_spec = 1
26-
security_group_ids = [""]
27-
env_conf {
28-
key = "key"
29-
value = "value"
30-
type = "default"
31-
config = "config-name"
32-
secret = "secret-name"
33-
34-
}
18+
application_id = "app-3j29aa2p"
19+
environment_id = "en-853mggjm"
20+
deploy_version = "hello-world"
21+
deploy_mode = "IMAGE"
22+
img_repo = "tem_demo/tem_demo"
23+
init_pod_num = 1
24+
cpu_spec = 1
25+
memory_spec = 1
3526
liveness {
3627
type = "HttpGet"
3728
protocol = "HTTP"
3829
path = "/"
39-
port = 80
30+
port = 8080
4031
initial_delay_seconds = 0
4132
timeout_seconds = 1
4233
period_seconds = 10
@@ -46,7 +37,7 @@ resource "tencentcloud_tem_workload" "workload" {
4637
type = "HttpGet"
4738
protocol = "HTTP"
4839
path = "/"
49-
port = 80
40+
port = 8000
5041
initial_delay_seconds = 0
5142
timeout_seconds = 1
5243
period_seconds = 10
@@ -56,7 +47,7 @@ resource "tencentcloud_tem_workload" "workload" {
5647
type = "HttpGet"
5748
protocol = "HTTP"
5849
path = "/"
59-
port = 80
50+
port = 36000
6051
initial_delay_seconds = 0
6152
timeout_seconds = 1
6253
period_seconds = 10

0 commit comments

Comments
 (0)