Skip to content

Commit 7fbd7d4

Browse files
committed
feat(tke): tke health check policy
1 parent 930d414 commit 7fbd7d4

File tree

3 files changed

+70
-5
lines changed

3 files changed

+70
-5
lines changed

tencentcloud/services/tke/resource_tc_kubernetes_health_check_policy.go

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
subcategory: "Tencent Kubernetes Engine(TKE)"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_kubernetes_health_check_policy"
5+
sidebar_current: "docs-tencentcloud-resource-kubernetes_health_check_policy"
6+
description: |-
7+
Provides a resource to create a tke kubernetes_health_check_policy
8+
---
9+
10+
# tencentcloud_kubernetes_health_check_policy
11+
12+
Provides a resource to create a tke kubernetes_health_check_policy
13+
14+
## Example Usage
15+
16+
```hcl
17+
resource "tencentcloud_kubernetes_health_check_policy" "kubernetes_health_check_policy" {
18+
cluster_id = "cls-xxxxx"
19+
name = "example"
20+
rules {
21+
name = "OOMKilling"
22+
auto_repair_enabled = true
23+
enabled = true
24+
}
25+
rules {
26+
name = "KubeletUnhealthy"
27+
auto_repair_enabled = true
28+
enabled = true
29+
}
30+
}
31+
```
32+
33+
## Argument Reference
34+
35+
The following arguments are supported:
36+
37+
* `cluster_id` - (Required, String) ID of the cluster.
38+
* `name` - (Required, String) Health Check Policy Name.
39+
* `rules` - (Required, List) Health check policy rule list.
40+
41+
The `rules` object supports the following:
42+
43+
* `auto_repair_enabled` - (Required, Bool) Enable repair or not.
44+
* `enabled` - (Required, Bool) Enable detection of this project or not.
45+
* `name` - (Required, String) Health check rule details.
46+
47+
## Attributes Reference
48+
49+
In addition to all arguments above, the following attributes are exported:
50+
51+
* `id` - ID of the resource.
52+
53+
54+
55+
## Import
56+
57+
tke kubernetes_health_check_policy can be imported using the id, e.g.
58+
59+
```
60+
terraform import tencentcloud_kubernetes_health_check_policy.kubernetes_health_check_policy cls-xxxxx#healthcheckpolicyname
61+
```
62+

website/tencentcloud.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4743,6 +4743,9 @@
47434743
<li>
47444744
<a href="/docs/providers/tencentcloud/r/kubernetes_encryption_protection.html">tencentcloud_kubernetes_encryption_protection</a>
47454745
</li>
4746+
<li>
4747+
<a href="/docs/providers/tencentcloud/r/kubernetes_health_check_policy.html">tencentcloud_kubernetes_health_check_policy</a>
4748+
</li>
47464749
<li>
47474750
<a href="/docs/providers/tencentcloud/r/kubernetes_native_node_pool.html">tencentcloud_kubernetes_native_node_pool</a>
47484751
</li>

0 commit comments

Comments
 (0)