Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mikatong committed Jul 15, 2024
1 parent e45b09c commit c6a20a3
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
44 changes: 44 additions & 0 deletions website/docs/r/kubernetes_addon_config.html.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
subcategory: "Tencent Kubernetes Engine(TKE)"
layout: "tencentcloud"
page_title: "TencentCloud: tencentcloud_kubernetes_addon_config"
sidebar_current: "docs-tencentcloud-resource-kubernetes_addon_config"
description: |-
Provide a resource to configure addon that kubernetes comes with.
---

# tencentcloud_kubernetes_addon_config

Provide a resource to configure addon that kubernetes comes with.

## Example Usage

### Update cluster-autoscaler addon

```hcl
resource "tencentcloud_kubernetes_addon_config" "kubernetes_addon_config" {
cluster_id = "cls-xxxxxx"
addon_name = "cluster-autoscaler"
raw_values = "{\"extraArgs\":{\"scale-down-enabled\":true,\"max-empty-bulk-delete\":11,\"scale-down-delay-after-add\":\"10mm\",\"scale-down-unneeded-time\":\"10mm\",\"scale-down-utilization-threshold\":0.005,\"ignore-daemonsets-utilization\":false,\"skip-nodes-with-local-storage\":true,\"skip-nodes-with-system-pods\":true}}"
}
`
```

## Argument Reference

The following arguments are supported:

* `addon_name` - (Required, String, ForceNew) Name of addon.
* `cluster_id` - (Required, String, ForceNew) ID of cluster.
* `addon_version` - (Optional, String) Version of addon.
* `raw_values` - (Optional, String) Params of addon, base64 encoded json format.

## Attributes Reference

In addition to all arguments above, the following attributes are exported:

* `id` - ID of the resource.
* `phase` - Status of addon.
* `reason` - Reason of addon failed.


3 changes: 3 additions & 0 deletions website/tencentcloud.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4583,6 +4583,9 @@
<li>
<a href="/docs/providers/tencentcloud/r/kubernetes_addon_attachment.html">tencentcloud_kubernetes_addon_attachment</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/r/kubernetes_addon_config.html">tencentcloud_kubernetes_addon_config</a>
</li>
<li>
<a href="/docs/providers/tencentcloud/r/kubernetes_auth_attachment.html">tencentcloud_kubernetes_auth_attachment</a>
</li>
Expand Down

0 comments on commit c6a20a3

Please sign in to comment.