File tree 1 file changed +30
-2
lines changed
tencentcloud/services/tke 1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -767,18 +767,46 @@ resource "tencentcloud_kubernetes_cluster" "managed_cluster" {
767
767
768
768
event_persistence {
769
769
enabled = true
770
- log_set_id = "" # optional
770
+ log_set_id = "" # optional
771
771
topic_id = "" # optional
772
772
}
773
773
774
774
cluster_audit {
775
775
enabled = true
776
- log_set_id = "" # optional
776
+ log_set_id = "" # optional
777
777
topic_id = "" # optional
778
778
}
779
779
}
780
780
```
781
781
782
+ Create cluster with cdc_id
783
+ ```
784
+ resource "tencentcloud_kubernetes_cluster" "cdc_cluster" {
785
+ cdc_id = "cluster-xxxxx"
786
+ vpc_id = "vpc-xxxxx"
787
+ cluster_cidr = "192.168.0.0/16"
788
+ cluster_max_pod_num = 64
789
+ cluster_name = "test-cdc"
790
+ cluster_desc = "test cluster desc"
791
+ cluster_max_service_num = 1024
792
+ cluster_version = "1.30.0"
793
+
794
+ cluster_os = "tlinux3.1x86_64"
795
+ cluster_level = "L20"
796
+ cluster_deploy_type = "INDEPENDENT_CLUSTER"
797
+
798
+ container_runtime = "containerd"
799
+ runtime_version = "1.6.9"
800
+ pre_start_user_script = "aXB0YWJsZXMgLUEgSU5QVVQgLXAgdGNwIC1zIDE2OS4yNTQuMC4wLzE5IC0tdGNwLWZsYWdzIFNZTixSU1QgU1lOIC1qIFRDUE1TUyAtLXNldC1tc3MgMTE2MAppcHRhYmxlcyAtQSBPVVRQVVQgLXAgdGNwIC1kIDE2OS4yNTQuMC4wLzE5IC0tdGNwLWZsYWdzIFNZTixSU1QgU1lOIC1qIFRDUE1TUyAtLXNldC1tc3MgMTE2MAoKZWNobyAnCmlwdGFibGVzIC1BIElOUFVUIC1wIHRjcCAtcyAxNjkuMjU0LjAuMC8xOSAtLXRjcC1mbGFncyBTWU4sUlNUIFNZTiAtaiBUQ1BNU1MgLS1zZXQtbXNzIDExNjAKaXB0YWJsZXMgLUEgT1VUUFVUIC1wIHRjcCAtZCAxNjkuMjU0LjAuMC8xOSAtLXRjcC1mbGFncyBTWU4sUlNUIFNZTiAtaiBUQ1BNU1MgLS1zZXQtbXNzIDExNjAKJyA+PiAvZXRjL3JjLmQvcmMubG9jYWw="
801
+ exist_instance {
802
+ node_role = "MASTER_ETCD"
803
+ instances_para {
804
+ instance_ids = ["ins-eeijdk16", "ins-84ku5rba", "ins-8oa3im2s"]
805
+ }
806
+ }
807
+ }
808
+ ```
809
+
782
810
Import
783
811
784
812
tke cluster can be imported, e.g.
You can’t perform that action at this time.
0 commit comments