8000 Add TKE node pool resource by gailwang · Pull Request #572 · tencentcloudstack/terraform-provider-tencentcloud · GitHub
[go: up one dir, main page]

Skip to content

Add TKE node pool resource #572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 39 commits into from
Dec 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
ce8a3e7
CLB support import
gailwang Nov 12, 2020
c73b11d
Merge remote-tracking branch 'upstream/master'
gailwang Nov 13, 2020
a6ffe6c
fix doc
gailwang Nov 13, 2020
a1f96ed
Merge remote-tracking branch 'upstream/master'
gailwang Nov 16, 2020
545e5af
Merge remote-tracking branch 'upstream/master'
gailwang Nov 23, 2020
0e8edc7
add tcr
gailwang Nov 25, 2020
27b41fe
Update service_tencentcloud_clb.go
gailwang Nov 25, 2020
980b684
Delete test.go
gailwang Nov 27, 2020
4f7383b
Delete variable.tf
gailwang Nov 27, 2020
f059548
Delete variables.tf
gailwang Nov 27, 2020
49d0b5f
Merge remote-tracking branch 'upstream/master'
gailwang Nov 27, 2020
1169429
remove useless log
gailwang Nov 27, 2020
b70384a
Merge remote-tracking branch 'upstream/master'
gailwang Nov 30, 2020
76f408f
Merge remote-tracking branch 'upstream/master'
gailwang Dec 2, 2020
e0b5a0e
add resource and data source parameter template
gailwang Dec 3, 2020
8e35ab8
Merge remote-tracking branch 'upstream/master'
gailwang Dec 7, 2020
4e25a6d
add argument `protocol_template` and `address_template` with resourc…
gailwang Dec 7, 2020
c4d36d3
rename examples
gailwang Dec 7, 2020
9623576
modify changelog
gailwang Dec 8, 2020
731dffa
fix description
gailwang Dec 8, 2020
b02e4c0
Merge remote-tracking branch 'upstream/master'
gailwang Dec 10, 2020
d5279fd
add resource and data source tcr vpc attachment and support k8s name …
gailwang Dec 14, 2020
39833fc
Merge remote-tracking branch 'upstream/master'
gailwang Dec 14, 2020
aa17fef
add changelog
gailwang Dec 14, 2020
7634807
add docs
gailwang Dec 15, 2020
f68df95
Merge remote-tracking branch 'upstream/master'
gailwang Dec 15, 2020
3ae30b2
cos log enable & kubernetes attachment set extra_args
gailwang Dec 22, 2020
ea27d22
add changelog
gailwang Dec 22, 2020
4979c19
fix bugs that double apply will make a fake change
gailwang Dec 22, 2020
0f2947c
remove terraform key word in error message
gailwang Dec 22, 2020
45bbd1b
add example usage
gailwang Dec 22, 2020
a1f501c
fix link
gailwang Dec 22, 2020
e98f588
remove extra log
gailwang Dec 22, 2020
9e0c38a
fix link again
gailwang Dec 22, 2020
81a3f20
Delete service_template_group.html.markdown
gailwang Dec 22, 2020
93ba5ed
Delete service_template.html.markdown
gailwang Dec 22, 2020
0f2b8c0
Merge remote-tracking branch 'upstream/master'
gailwang Dec 22, 2020
78dd871
add resource tke node pool
gailwang Dec 28, 2020
994e451
add deprecated log
gailwang Dec 28, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
## 1.51.2 (Unreleased)
## 1.52.0 (Unreleased)

FEATURES:

* **New Resource**: `tencentcloud_kubernetes_node_pool` to support node management.

DEPRECATED:

* Resource: `tencentcloud_kubernetes_as_scaling_group` replaced by `tencentcloud_kubernetes_node_pool`.


## 1.51.1 (December 22, 2020)

ENHANCEMENTS:
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ require (
github.com/mattn/go-colorable v0.1.6 // indirect
github.com/mitchellh/go-homedir v1.1.0
github.com/pkg/errors v0.9.1
github.com/tencentcloud/tencentcloud-sdk-go v1.0.67
github.com/tencentcloud/tencentcloud-sdk-go v1.0.76
github.com/yangwenmai/ratelimit v0.0.0-20180104140304-44221c2292e1
github.com/zclconf/go-cty v1.4.2 // indirect
golang.org/x/sys v0.0.0-20200523222454-059865788121 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
github.com/tdakkota/asciicheck v0.0.0-20200416190851-d7f85be797a2 h1:Xr9gkxfOP0KQWXKNqmwe8vEeSUiUj4Rlee9CMVX2ZUQ=
github.com/tdakkota/asciicheck v0.0.0-20200416190851-d7f85be797a2/go.mod h1:yHp0ai0Z9gUljN3o0xMhYJnH/IcvkdTBOX2fmJ93JEM=
github.com/tencentcloud/tencentcloud-sdk-go v1.0.67 h1:fKSwJ7hrvHTxr33EcmrbKcavYJ/U2zNIH8Lvsj2FNTE=
github.com/tencentcloud/tencentcloud-sdk-go v1.0.67/go.mod h1:asUz5BPXxgoPGaRgZaVm1iGcUAuHyYUo1nXqKa83cvI=
github.com/tencentcloud/tencentcloud-sdk-go v1.0.76 h1:fVggxeCzlYcIliDjPKC4yGpbfQibWY6HmT9dbS7BKf8=
github.com/tencentcloud/tencentcloud-sdk-go v1.0.76/go.mod h1:asUz5BPXxgoPGaRgZaVm1iGcUAuHyYUo1nXqKa83cvI=
github.com/tetafro/godot v0.3.7 h1:+mecr7RKrUKB5UQ1gwqEMn13sDKTyDR8KNIquB9mm+8=
github.com/tetafro/godot v0.3.7/go.mod h1:/7NLHhv08H1+8DNj0MElpAACw1ajsCuf3TKNQxA5S+0=
github.com/timakin/bodyclose v0.0.0-20190930140734-f7f2e9bca95e h1:RumXZ56IrCj4CL+g1b9OL/oH0QnsF976bC8xQFYUD5Q=
Expand Down
2 changes: 2 additions & 0 deletions tencentcloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ Tencent Kubernetes Engine(TKE)
tencentcloud_kubernetes_scale_worker
tencentcloud_kubernetes_as_scaling_group
tencentcloud_kubernetes_cluster_attachment
tencentcloud_kubernetes_node_pool

MongoDB
Data Source
Expand Down Expand Up @@ -816,6 +817,7 @@ func Provider() terraform.ResourceProvider {
"tencentcloud_kubernetes_as_scaling_group": ResourceTencentCloudKubernetesAsScalingGroup(),
"tencentcloud_kubernetes_scale_worker": resourceTencentCloudTkeScaleWorker(),
"tencentcloud_kubernetes_cluster_attachment": resourceTencentCloudTkeClusterAttachment(),
"tencentcloud_kubernetes_node_pool": ResourceTencentCloudKubernetesNodePool(),
"tencentcloud_mysql_backup_policy": resourceTencentCloudMysqlBackupPolicy(),
"tencentcloud_mysql_account": resourceTencentCloudMysqlAccount(),
"tencentcloud_mysql_account_privilege": resourceTencentCloudMysqlAccountPrivilege(),
Expand Down
2 changes: 1 addition & 1 deletion tencentcloud/resource_tc_kubernetes_as_scaling_group.go
10000
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
Provide a resource to create an auto scaling group for kubernetes cluster.

~> **NOTE:** It has been deprecated and replaced by `tencentcloud_cluster_node_pool`.
~> **NOTE:** To use the custom Kubernetes component startup parameter function (parameter `extra_args`), you need to submit a ticket for application.

Example Usage
Expand Down
3 changes: 2 additions & 1 deletion tencentcloud/resource_tc_kubernetes_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
Provide a resource to create a kubernetes cluster.

~> **NOTE:** To use the custom Kubernetes component startup parameter function (parameter `extra_args`), you need to submit a ticket for application.
~> **NOTE:** We recommend the usage of one cluster without worker config + node pool to manage cluster and nodes. It's a more flexible way than manage worker config with tencentcloud_kubernetes_cluster, tencentcloud_kubernetes_scale_worker or exist node management of `tencentcloud_kubernetes_attachment`. Cause some unchangeable parameters of `worker_config` may cause the whole cluster resource `force new`.

Example Usage

Expand Down Expand Up @@ -500,7 +501,7 @@ func resourceTencentCloudTkeCluster() *schema.Resource {
Optional: true,
Default: TKE_DEPLOY_TYPE_MANAGED,
ValidateFunc: validateAllowedStringValue(TKE_DEPLOY_TYPES),
Description: "Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER', Default is 'MANAGED_CLUSTER'.",
Description: "Deployment type of the cluster, the available values include: 'MANAGED_CLUSTER' and 'INDEPENDENT_CLUSTER'. Default is 'MANAGED_CLUSTER'.",
},
"cluster_version": {
Type: schema.TypeString,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ resource "tencentcloud_kubernetes_cluster_attachment" "test_attach" {
"test1" = "test1",
"test2" = "test2",
}

extra_args = [
"root-dir=/var/lib/kubelet"
]
}
`
}
Loading
0