diff --git a/tencentcloud/data_source_tc_eks_cluster_credential.go b/tencentcloud/data_source_tc_eks_cluster_credential.go index c887c91adb..c1962f66ed 100644 --- a/tencentcloud/data_source_tc_eks_cluster_credential.go +++ b/tencentcloud/data_source_tc_eks_cluster_credential.go @@ -1,5 +1,7 @@ /* -Provide a datasource to query EKS cluster credential info. +Provide a datasource to query EKS cluster credential info (offlined). + +~> **NOTE:** This resource was offline no longer supported. Example Usage @@ -42,7 +44,8 @@ import ( func datasourceTencentCloudEksClusterCredential() *schema.Resource { return &schema.Resource{ - Read: datasourceTencentCloudEksClusterCredentialRead, + DeprecationMessage: "This resource was offline no longer supported.", + Read: datasourceTencentCloudEksClusterCredentialRead, Importer: &schema.ResourceImporter{ State: schema.ImportStatePassthrough, diff --git a/tencentcloud/data_source_tc_eks_clusters.go b/tencentcloud/data_source_tc_eks_clusters.go index 0b30265c74..e2420f6bd6 100644 --- a/tencentcloud/data_source_tc_eks_clusters.go +++ b/tencentcloud/data_source_tc_eks_clusters.go @@ -1,5 +1,7 @@ /* -Use this data source to query elastic kubernetes cluster resource. +Use this data source to query elastic kubernetes cluster resource (offlined). + +~> **NOTE:** This resource was offline and no longer supported. Example Usage @@ -22,7 +24,8 @@ import ( func dataSourceTencentCloudEKSClusters() *schema.Resource { return &schema.Resource{ - Read: dataSourceTencentCloudEKSClustersRead, + DeprecationMessage: "This resource was offline and no longer supported.", + Read: dataSourceTencentCloudEKSClustersRead, Schema: map[string]*schema.Schema{ "cluster_id": { diff --git a/tencentcloud/provider.go b/tencentcloud/provider.go index 477772cd4d..8c9b3fc576 100644 --- a/tencentcloud/provider.go +++ b/tencentcloud/provider.go @@ -360,8 +360,6 @@ KMS Tencent Kubernetes Engine(TKE) Data Source tencentcloud_kubernetes_clusters - tencentcloud_eks_clusters - tencentcloud_eks_cluster_credential tencentcloud_kubernetes_cluster_levels tencentcloud_kubernetes_charts tencentcloud_kubernetes_cluster_common_names @@ -369,11 +367,8 @@ Tencent Kubernetes Engine(TKE) Resource tencentcloud_kubernetes_cluster tencentcloud_kubernetes_scale_worker - tencentcloud_kubernetes_as_scaling_group tencentcloud_kubernetes_cluster_attachment tencentcloud_kubernetes_node_pool - tencentcloud_eks_cluster - tencentcloud_eks_container_instance tencentcloud_kubernetes_auth_attachment tencentcloud_kubernetes_addon_attachment tencentcloud_kubernetes_cluster_endpoint diff --git a/tencentcloud/resource_tc_eks_cluster.go b/tencentcloud/resource_tc_eks_cluster.go index a28502aaff..da674be6e9 100644 --- a/tencentcloud/resource_tc_eks_cluster.go +++ b/tencentcloud/resource_tc_eks_cluster.go @@ -1,5 +1,7 @@ /* -Provides an elastic kubernetes cluster resource. +Provides an elastic kubernetes cluster resource (offlined). + +~> **NOTE:** This resource was offline and no longer supported. Example Usage @@ -67,10 +69,11 @@ import ( func resourceTencentCloudEksCluster() *schema.Resource { return &schema.Resource{ - Read: resourceTencentcloudEKSClusterRead, - Create: resourceTencentcloudEKSClusterCreate, - Update: resourceTencentcloudEKSClusterUpdate, - Delete: resourceTencentcloudEKSClusterDelete, + DeprecationMessage: "This resource was offline and no longer supported.", + Read: resourceTencentcloudEKSClusterRead, + Create: resourceTencentcloudEKSClusterCreate, + Update: resourceTencentcloudEKSClusterUpdate, + Delete: resourceTencentcloudEKSClusterDelete, Importer: &schema.ResourceImporter{ State: schema.ImportStatePassthrough, }, diff --git a/tencentcloud/resource_tc_eks_container_instance.go b/tencentcloud/resource_tc_eks_container_instance.go index b642c0a202..6230da696f 100644 --- a/tencentcloud/resource_tc_eks_container_instance.go +++ b/tencentcloud/resource_tc_eks_container_instance.go @@ -1,5 +1,7 @@ /* -Provides an elastic kubernetes service container instance. +Provides an elastic kubernetes service container instance (offlined). + +~> **NOTE:** This resource was offline and no longer supported. Example Usage @@ -707,10 +709,11 @@ func resourceEksCiContainerSchema(isInitContainer bool) map[string]*schema.Schem func resourceTencentCloudEksContainerInstance() *schema.Resource { return &schema.Resource{ - Read: resourceTencentcloudEKSContainerInstanceRead, - Create: resourceTencentcloudEKSContainerInstanceCreate, - Update: resourceTencentcloudEKSContainerInstanceUpdate, - Delete: resourceTencentcloudEKSContainerInstanceDelete, + DeprecationMessage: "This resource was offline and no longer supported.", + Read: resourceTencentcloudEKSContainerInstanceRead, + Create: resourceTencentcloudEKSContainerInstanceCreate, + Update: resourceTencentcloudEKSContainerInstanceUpdate, + Delete: resourceTencentcloudEKSContainerInstanceDelete, Importer: &schema.ResourceImporter{ State: schema.ImportStatePassthrough, }, diff --git a/tencentcloud/resource_tc_kubernetes_as_scaling_group.go b/tencentcloud/resource_tc_kubernetes_as_scaling_group.go index 58b9627f8f..4c04275205 100644 --- a/tencentcloud/resource_tc_kubernetes_as_scaling_group.go +++ b/tencentcloud/resource_tc_kubernetes_as_scaling_group.go @@ -1,7 +1,7 @@ /* Auto scaling group for kubernetes cluster (offlined). -~> **NOTE:** This resource was offline no longer suppored. +~> **NOTE:** This resource was offline and no longer supported. Example Usage @@ -65,10 +65,11 @@ import ( func ResourceTencentCloudKubernetesAsScalingGroup() *schema.Resource { return &schema.Resource{ - Create: resourceKubernetesAsScalingGroupCreate, - Read: resourceKubernetesAsScalingGroupRead, - Delete: resourceKubernetesAsScalingGroupDelete, - Update: resourceKubernetesAsScalingGroupUpdate, + DeprecationMessage: "This resource was offline and no longer supported.", + Create: resourceKubernetesAsScalingGroupCreate, + Read: resourceKubernetesAsScalingGroupRead, + Delete: resourceKubernetesAsScalingGroupDelete, + Update: resourceKubernetesAsScalingGroupUpdate, Schema: map[string]*schema.Schema{ "cluster_id": { Type: schema.TypeString, diff --git a/website/docs/d/eks_cluster_credential.html.markdown b/website/docs/d/eks_cluster_credential.html.markdown deleted file mode 100644 index 5a8d499da2..0000000000 --- a/website/docs/d/eks_cluster_credential.html.markdown +++ /dev/null @@ -1,73 +0,0 @@ ---- -subcategory: "Tencent Kubernetes Engine(TKE)" -layout: "tencentcloud" -page_title: "TencentCloud: tencentcloud_eks_cluster_credential" -sidebar_current: "docs-tencentcloud-datasource-eks_cluster_credential" -description: |- - Provide a datasource to query EKS cluster credential info. ---- - -# tencentcloud_eks_cluster_credential - -Provide a datasource to query EKS cluster credential info. - -## Example Usage - -```hcl -data "tencentcloud_eks_cluster_credential" "foo" { - cluster_id = "cls-xxxxxxxx" -} - -# example outputs -output "addresses" { - value = data.tencentcloud_eks_cluster_credential.cred.addresses -} - -output "ca_cert" { - value = data.tencentcloud_eks_cluster_credential.cred.credential.ca_cert -} - -output "token" { - value = data.tencentcloud_eks_cluster_credential.cred.credential.token -} - -output "public_lb_param" { - value = data.tencentcloud_eks_cluster_credential.cred.public_lb.0.extra_param -} - -output "internal_lb_subnet" { - value = data.tencentcloud_eks_cluster_credential.cred.internal_lb.0.subnet_id -} -``` - -## Argument Reference - -The following arguments are supported: - -* `cluster_id` - (Required, String) EKS Cluster ID. -* `result_output_file` - (Optional, String) Used for save result. - -## Attributes Reference - -In addition to all arguments above, the following attributes are exported: - -* `addresses` - List of IP Address information. - * `ip` - IP Address. - * `port` - Port. - * `type` - Type of IP, can be `advertise`, `public`, etc. -* `credential` - Credential info. - * `ca_cert` - CA root certification. - * `token` - Certification token. -* `internal_lb` - Cluster internal access LoadBalancer info. - * `enabled` - Indicates weather the internal access LB enabled. - * `subnet_id` - ID of subnet which related to Internal LB. -* `kube_config` - EKS cluster kubeconfig. -* `proxy_lb` - Indicates whether the new internal/public network function. -* `public_lb` - Cluster public access LoadBalancer info. - * `allow_from_cidrs` - List of CIDRs which allowed to access. - * `enabled` - Indicates weather the public access LB enabled. - * `extra_param` - Extra param text json. - * `security_group` - Security group. - * `security_policies` - List of security allow IP or CIDRs, default deny all. - - diff --git a/website/docs/d/eks_clusters.html.markdown b/website/docs/d/eks_clusters.html.markdown deleted file mode 100644 index 43083fa95a..0000000000 --- a/website/docs/d/eks_clusters.html.markdown +++ /dev/null @@ -1,51 +0,0 @@ ---- -subcategory: "Tencent Kubernetes Engine(TKE)" -layout: "tencentcloud" -page_title: "TencentCloud: tencentcloud_eks_clusters" -sidebar_current: "docs-tencentcloud-datasource-eks_clusters" -description: |- - Use this data source to query elastic kubernetes cluster resource. ---- - -# tencentcloud_eks_clusters - -Use this data source to query elastic kubernetes cluster resource. - -## Example Usage - -```hcl -data "tencentcloud_eks_clusters" "foo" { - cluster_id = "cls-xxxxxxxx" -} -``` - -## Argument Reference - -The following arguments are supported: - -* `cluster_id` - (Optional, String) ID of the cluster. Conflict with cluster_name, can not be set at the same time. -* `cluster_name` - (Optional, String) Name of the cluster. Conflict with cluster_id, can not be set at the same time. -* `result_output_file` - (Optional, String) Used to save results. - -## Attributes Reference - -In addition to all arguments above, the following attributes are exported: - -* `list` - EKS cluster list. - * `cluster_desc` - Description of the cluster. - * `cluster_id` - ID of the cluster. - * `cluster_name` - Name of the cluster. - * `created_time` - Create time of the clusters. - * `dns_servers` - List of cluster custom DNS Server info. - * `domain` - DNS Server domain. Empty indicates all domain. - * `servers` - List of DNS Server IP address. - * `enable_vpc_core_dns` - Indicates whether to enable dns in user cluster, default value is `true`. - * `k8s_version` - EKS cluster kubernetes version. - * `need_delete_cbs` - Indicates whether to delete CBS after EKS cluster remove. - * `service_subnet_id` - Subnet id of service. - * `status` - EKS status. - * `subnet_ids` - Subnet id list. - * `tags` - Tags of EKS cluster. - * `vpc_id` - Vpc id. - - diff --git a/website/docs/r/eks_cluster.html.markdown b/website/docs/r/eks_cluster.html.markdown deleted file mode 100644 index 22d2069ffa..0000000000 --- a/website/docs/r/eks_cluster.html.markdown +++ /dev/null @@ -1,105 +0,0 @@ ---- -subcategory: "Tencent Kubernetes Engine(TKE)" -layout: "tencentcloud" -page_title: "TencentCloud: tencentcloud_eks_cluster" -sidebar_current: "docs-tencentcloud-resource-eks_cluster" -description: |- - Provides an elastic kubernetes cluster resource. ---- - -# tencentcloud_eks_cluster - -Provides an elastic kubernetes cluster resource. - -## Example Usage - -```hcl -resource "tencentcloud_vpc" "vpc" { - name = "tf-eks-vpc" - cidr_block = "10.2.0.0/16" -} - -resource "tencentcloud_subnet" "sub" { - vpc_id = tencentcloud_vpc.vpc.id - name = "tf-as-subnet" - cidr_block = "10.2.11.0/24" - availability_zone = "ap-guangzhou-3" -} -resource "tencentcloud_subnet" "sub2" { - vpc_id = tencentcloud_vpc.vpc.id - name = "tf-as-subnet" - cidr_block = "10.2.10.0/24" - availability_zone = "ap-guangzhou-3" -} - -resource "tencentcloud_eks_cluster" "foo" { - cluster_name = "tf-test-eks" - k8s_version = "1.18.4" - vpc_id = tencentcloud_vpc.vpc.id - subnet_ids = [ - tencentcloud_subnet.sub.id, - tencentcloud_subnet.sub2.id, - ] - cluster_desc = "test eks cluster created by terraform" - service_subnet_id = tencentcloud_subnet.sub.id - dns_servers { - domain = "www.example1.com" - servers = ["1.1.1.1:8080", "1.1.1.1:8081", "1.1.1.1:8082"] - } - enable_vpc_core_dns = true - need_delete_cbs = true - tags = { - hello = "world" - } -} -``` - -## Argument Reference - -The following arguments are supported: - -* `cluster_name` - (Required, String) Name of EKS cluster. -* `k8s_version` - (Required, String, ForceNew) Kubernetes version of EKS cluster. -* `subnet_ids` - (Required, List: [`String`]) Subnet Ids for EKS cluster. -* `vpc_id` - (Required, String, ForceNew) Vpc Id of EKS cluster. -* `cluster_desc` - (Optional, String) Description of EKS cluster. -* `dns_servers` - (Optional, List) List of cluster custom DNS Server info. -* `enable_vpc_core_dns` - (Optional, Bool, ForceNew) Indicates whether to enable dns in user cluster, default value is `true`. -* `extra_param` - (Optional, Map, ForceNew) Extend parameters. -* `internal_lb` - (Optional, List) Cluster internal access LoadBalancer info. -* `need_delete_cbs` - (Optional, Bool) Delete CBS after EKS cluster remove. -* `public_lb` - (Optional, List) Cluster public access LoadBalancer info. -* `service_subnet_id` - (Optional, String) Subnet id of service. -* `tags` - (Optional, Map) Tags of EKS cluster. - -The `dns_servers` object supports the following: - -* `domain` - (Optional, String) DNS Server domain. Empty indicates all domain. -* `servers` - (Optional, List) List of DNS Server IP address, pattern: "ip[:port]". - -The `internal_lb` object supports the following: - -* `enabled` - (Required, Bool) Indicates weather the internal access LB enabled. -* `subnet_id` - (Optional, String) ID of subnet which related to Internal LB. - -The `public_lb` object supports the following: - -* `enabled` - (Required, Bool) Indicates weather the public access LB enabled. -* `allow_from_cidrs` - (Optional, List) List of CIDRs which allowed to access. -* `extra_param` - (Optional, String) Extra param text json. -* `security_policies` - (Optional, List) List of security allow IP or CIDRs, default deny all. - -## Attributes Reference - -In addition to all arguments above, the following attributes are exported: - -* `id` - ID of the resource. -* `kube_config` - EKS cluster kubeconfig. - - -## Import - -``` -terraform import tencentcloud_eks_cluster.foo cluster-id -``` - diff --git a/website/docs/r/eks_container_instance.html.markdown b/website/docs/r/eks_container_instance.html.markdown deleted file mode 100644 index fdfef3ce65..0000000000 --- a/website/docs/r/eks_container_instance.html.markdown +++ /dev/null @@ -1,217 +0,0 @@ ---- -subcategory: "Tencent Kubernetes Engine(TKE)" -layout: "tencentcloud" -page_title: "TencentCloud: tencentcloud_eks_container_instance" -sidebar_current: "docs-tencentcloud-resource-eks_container_instance" -description: |- - Provides an elastic kubernetes service container instance. ---- - -# tencentcloud_eks_container_instance - -Provides an elastic kubernetes service container instance. - -## Example Usage - -```hcl -data "tencentcloud_security_groups" "group" { -} - -data "tencentcloud_availability_zones_by_product" "zone" { - product = "cvm" -} - -resource "tencentcloud_vpc" "vpc" { - cidr_block = "10.0.0.0/24" - name = "tf-test-eksci" -} - -resource "tencentcloud_subnet" "sub" { - availability_zone = data.tencentcloud_availability_zones_by_product.zone.zones[0].name - cidr_block = "10.0.0.0/24" - name = "sub" - vpc_id = tencentcloud_vpc.vpc.id -} - -resource "tencentcloud_cbs_storage" "cbs" { - availability_zone = data.tencentcloud_availability_zones_by_product.zone.zones[0].name - storage_name = "cbs1" - storage_size = 10 - storage_type = "CLOUD_PREMIUM" -} - -resource "tencentcloud_eks_container_instance" "eci1" { - name = "foo" - vpc_id = tencentcloud_vpc.vpc.id - subnet_id = tencentcloud_subnet.sub.id - cpu = 2 - cpu_type = "intel" - restart_policy = "Always" - memory = 4 - security_groups = [data.tencentcloud_security_groups.group.security_groups[0].security_group_id] - cbs_volume { - name = "vol1" - disk_id = tencentcloud_cbs_storage.cbs.id - } - container { - name = "redis1" - image = "redis" - liveness_probe { - init_delay_seconds = 1 - timeout_seconds = 3 - period_seconds = 11 - success_threshold = 1 - failure_threshold = 3 - http_get_path = "/" - http_get_port = 443 - http_get_scheme = "HTTPS" - } - readiness_probe { - init_delay_seconds = 1 - timeout_seconds = 3 - period_seconds = 10 - success_threshold = 1 - failure_threshold = 3 - tcp_socket_port = 81 - } - } - container { - name = "nginx" - image = "nginx" - } - init_container { - name = "alpine" - image = "alpine:latest" - } -} -``` - -## Argument Reference - -The following arguments are supported: - -* `container` - (Required, List) List of container. -* `cpu` - (Required, Float64) The number of CPU cores. Check https://intl.cloud.tencent.com/document/product/457/34057 for specification references. -* `memory` - (Required, Float64) Memory size. Check https://intl.cloud.tencent.com/document/product/457/34057 for specification references. -* `name` - (Required, String) Name of EKS container instance. -* `security_groups` - (Required, List: [`String`]) List of security group id. -* `subnet_id` - (Required, String) Subnet ID of container instance. -* `vpc_id` - (Required, String) VPC ID. -* `auto_create_eip` - (Optional, Bool) Indicates whether to create EIP instead of specify existing EIPs. Conflict with `existed_eip_ids`. -* `cam_role_name` - (Optional, String) CAM role name authorized to access. -* `cbs_volume` - (Optional, List) List of CBS volume. -* `cpu_type` - (Optional, String) Type of cpu, which can set to `intel` or `amd`. It also support backup list like `amd,intel` which indicates using `intel` when `amd` sold out. -* `dns_config_options` - (Optional, Map, ForceNew) Map of DNS config options. -* `dns_names_servers` - (Optional, List: [`String`], ForceNew) IP Addresses of DNS Servers. -* `dns_searches` - (Optional, List: [`String`], ForceNew) List of DNS Search Domain. -* `eip_delete_policy` - (Optional, Bool) Indicates weather the EIP release or not after instance deleted. Conflict with `existed_eip_ids`. -* `eip_max_bandwidth_out` - (Optional, Int) Maximum outgoing bandwidth to the public network, measured in Mbps (Mega bits per second). Conflict with `existed_eip_ids`. -* `eip_service_provider` - (Optional, String) EIP service provider. Default is `BGP`, values `CMCC`,`CTCC`,`CUCC` are available for whitelist customer. Conflict with `existed_eip_ids`. -* `existed_eip_ids` - (Optional, List: [`String`]) Existed EIP ID List which used to bind container instance. Conflict with `auto_create_eip` and auto create EIP options. -* `gpu_count` - (Optional, Int) Count of GPU. Check https://intl.cloud.tencent.com/document/product/457/34057 for specification references. -* `gpu_type` - (Optional, String) Type of GPU. Check https://intl.cloud.tencent.com/document/product/457/34057 for specification references. -* `image_registry_credential` - (Optional, List) List of credentials which pull from image registry. -* `init_container` - (Optional, List) List of initialized container. -* `nfs_volume` - (Optional, List) List of NFS volume. -* `restart_policy` - (Optional, String) Container instance restart policy. Available values: `Always`, `Never`, `OnFailure`. - -The `cbs_volume` object supports the following: - -* `disk_id` - (Required, String) ID of CBS. -* `name` - (Required, String) Name of CBS volume. - -The `container` object supports the following: - -* `image` - (Required, String) Image of Container. -* `name` - (Required, String) Name of Container. -* `args` - (Optional, List) Container launch argument list. -* `commands` - (Optional, List) Container launch command list. -* `cpu` - (Optional, Float64) Number of cpu core of container. -* `env_vars` - (Optional, Map) Map of environment variables of container OS. -* `liveness_probe` - (Optional, List) Configuration block of LivenessProbe. -* `memory` - (Optional, Float64) Memory size of container. -* `readiness_probe` - (Optional, List) Configuration block of ReadinessProbe. -* `volume_mount` - (Optional, List) List of volume mount informations. -* `working_dir` - (Optional, String) Container working directory. - -The `image_registry_credential` object supports the following: - -* `name` - (Optional, String) Name of credential. -* `password` - (Optional, String) Password. -* `server` - (Optional, String) Address of image registry. -* `username` - (Optional, String) Username. - -The `init_container` object supports the following: - -* `image` - (Required, String) Image of Container. -* `name` - (Required, String) Name of Container. -* `args` - (Optional, List) Container launch argument list. -* `commands` - (Optional, List) Container launch command list. -* `cpu` - (Optional, Float64) Number of cpu core of container. -* `env_vars` - (Optional, Map) Map of environment variables of container OS. -* `memory` - (Optional, Float64) Memory size of container. -* `volume_mount` - (Optional, List) List of volume mount informations. -* `working_dir` - (Optional, String) Container working directory. - -The `liveness_probe` object supports the following: - -* `exec_commands` - (Optional, List) List of execution commands. -* `failure_threshold` - (Optional, Int) Minimum consecutive failures for the probe to be considered failed after having succeeded.Default: `3`. Minimum value is `1`. -* `http_get_path` - (Optional, String) HttpGet detection path. -* `http_get_port` - (Optional, Int) HttpGet detection port. -* `http_get_scheme` - (Optional, String) HttpGet detection scheme. Available values: `HTTP`, `HTTPS`. -* `init_delay_seconds` - (Optional, Int) Number of seconds after the container has started before probes are initiated. -* `period_seconds` - (Optional, Int) How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is `1`. -* `success_threshold` - (Optional, Int) Minimum consecutive successes for the probe to be considered successful after having failed. Default: `1`. Must be 1 for liveness. Minimum value is `1`. -* `tcp_socket_port` - (Optional, Int) TCP Socket detection port. -* `timeout_seconds` - (Optional, Int) Number of seconds after which the probe times out. -Defaults to 1 second. Minimum value is `1`. - -The `nfs_volume` object supports the following: - -* `name` - (Required, String) Name of NFS volume. -* `path` - (Required, String) NFS volume path. -* `server` - (Required, String) NFS server address. -* `read_only` - (Optional, Bool) Indicates whether the volume is read only. Default is `false`. - -The `readiness_probe` object supports the following: - -* `exec_commands` - (Optional, List) List of execution commands. -* `failure_threshold` - (Optional, Int) Minimum consecutive failures for the probe to be considered failed after having succeeded.Default: `3`. Minimum value is `1`. -* `http_get_path` - (Optional, String) HttpGet detection path. -* `http_get_port` - (Optional, Int) HttpGet detection port. -* `http_get_scheme` - (Optional, String) HttpGet detection scheme. Available values: `HTTP`, `HTTPS`. -* `init_delay_seconds` - (Optional, Int) Number of seconds after the container has started before probes are initiated. -* `period_seconds` - (Optional, Int) How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is `1`. -* `success_threshold` - (Optional, Int) Minimum consecutive successes for the probe to be considered successful after having failed. Default: `1`. Must be 1 for liveness. Minimum value is `1`. -* `tcp_socket_port` - (Optional, Int) TCP Socket detection port. -* `timeout_seconds` - (Optional, Int) Number of seconds after which the probe times out. -Defaults to 1 second. Minimum value is `1`. - -The `volume_mount` object supports the following: - -* `name` - (Required, String) Volume name. -* `path` - (Required, String) Volume mount path. -* `mount_propagation` - (Optional, String) Volume mount propagation. -* `read_only` - (Optional, Bool) Whether the volume is read-only. -* `sub_path_expr` - (Optional, String) Volume mount sub-path expression. -* `sub_path` - (Optional, String) Volume mount sub-path. - -## Attributes Reference - -In addition to all arguments above, the following attributes are exported: - -* `id` - ID of the resource. -* `auto_create_eip_id` - ID of EIP which create automatically. -* `created_time` - Container instance creation time. -* `eip_address` - EIP address. -* `private_ip` - Private IP address. -* `status` - Container instance status. - - -## Import - -``` -terraform import tencentcloud_eks_container_instance.foo container-instance-id -``` - diff --git a/website/docs/r/kubernetes_as_scaling_group.html.markdown b/website/docs/r/kubernetes_as_scaling_group.html.markdown deleted file mode 100644 index adcade267e..0000000000 --- a/website/docs/r/kubernetes_as_scaling_group.html.markdown +++ /dev/null @@ -1,91 +0,0 @@ ---- -subcategory: "Tencent Kubernetes Engine(TKE)" -layout: "tencentcloud" -page_title: "TencentCloud: tencentcloud_kubernetes_as_scaling_group" -sidebar_current: "docs-tencentcloud-resource-kubernetes_as_scaling_group" -description: |- - Auto scaling group for kubernetes cluster (offlined). ---- - -# tencentcloud_kubernetes_as_scaling_group - -Auto scaling group for kubernetes cluster (offlined). - -~> **NOTE:** This resource was offline no longer suppored. - -## Example Usage - - - -## Argument Reference - -The following arguments are supported: - -* `auto_scaling_config` - (Required, List, ForceNew) Auto scaling config parameters. -* `auto_scaling_group` - (Required, List) Auto scaling group parameters. -* `cluster_id` - (Required, String, ForceNew) ID of the cluster. -* `extra_args` - (Optional, List: [`String`], ForceNew) Custom parameter information related to the node. -* `labels` - (Optional, Map, ForceNew) Labels of kubernetes AS Group created nodes. -* `unschedulable` - (Optional, Int, ForceNew) Sets whether the joining node participates in the schedule. Default is '0'. Participate in scheduling. - -The `auto_scaling_config` object supports the following: - -* `configuration_name` - (Required, String, ForceNew) Name of a launch configuration. -* `instance_type` - (Required, String, ForceNew) Specified types of CVM instance. -* `data_disk` - (Optional, List, ForceNew) Configurations of data disk. -* `enhanced_monitor_service` - (Optional, Bool, ForceNew) To specify whether to enable cloud monitor service. Default is TRUE. -* `enhanced_security_service` - (Optional, Bool, ForceNew) To specify whether to enable cloud security service. Default is TRUE. -* `instance_tags` - (Optional, Map, ForceNew) A list of tags used to associate different resources. -* `internet_charge_type` - (Optional, String, ForceNew) Charge types for network traffic. Valid value: `BANDWIDTH_PREPAID`, `TRAFFIC_POSTPAID_BY_HOUR`, `TRAFFIC_POSTPAID_BY_HOUR` and `BANDWIDTH_PACKAGE`. -* `internet_max_bandwidth_out` - (Optional, Int) Max bandwidth of Internet access in Mbps. Default is `0`. -* `key_ids` - (Optional, List, ForceNew) ID list of keys. -* `password` - (Optional, String, ForceNew) Password to access. -* `project_id` - (Optional, Int, ForceNew) Specifys to which project the configuration belongs. -* `public_ip_assigned` - (Optional, Bool, ForceNew) Specify whether to assign an Internet IP address. -* `security_group_ids` - (Optional, List, ForceNew) Security groups to which a CVM instance belongs. -* `system_disk_size` - (Optional, Int, ForceNew) Volume of system disk in GB. Default is `50`. -* `system_disk_type` - (Optional, String, ForceNew) Type of a CVM disk. Valid value: `CLOUD_PREMIUM` and `CLOUD_SSD`. Default is `CLOUD_PREMIUM`. - -The `auto_scaling_group` object supports the following: - -* `max_size` - (Required, Int) Maximum number of CVM instances (0~2000). -* `min_size` - (Required, Int) Minimum number of CVM instances (0~2000). -* `scaling_group_name` - (Required, String, ForceNew) Name of a scaling group. -* `vpc_id` - (Required, String, ForceNew) ID of VPC network. -* `default_cooldown` - (Optional, Int, ForceNew) Default cooldown time in second, and default value is 300. -* `desired_capacity` - (Optional, Int, ForceNew) Desired volume of CVM instances, which is between max_size and min_size. -* `forward_balancer_ids` - (Optional, List, ForceNew) List of application load balancers, which can't be specified with load_balancer_ids together. -* `load_balancer_ids` - (Optional, List, ForceNew) ID list of traditional load balancers. -* `project_id` - (Optional, Int, ForceNew) Specifys to which project the scaling group belongs. -* `retry_policy` - (Optional, String, ForceNew) Available values for retry policies include `IMMEDIATE_RETRY` and `INCREMENTAL_INTERVALS`. -* `subnet_ids` - (Optional, List, ForceNew) ID list of subnet, and for VPC it is required. -* `tags` - (Optional, Map, ForceNew) Tags of a scaling group. -* `termination_policies` - (Optional, List, ForceNew) Available values for termination policies include `OLDEST_INSTANCE` and `NEWEST_INSTANCE`. -* `zones` - (Optional, List, ForceNew) List of available zones, for Basic network it is required. - -The `data_disk` object supports the following: - -* `disk_size` - (Optional, Int, ForceNew) Volume of disk in GB. Default is `0`. -* `disk_type` - (Optional, String, ForceNew) Types of disk. Valid value: `CLOUD_PREMIUM` and `CLOUD_SSD`. -* `snapshot_id` - (Optional, String, ForceNew) Data disk snapshot ID. - -The `forward_balancer_ids` object supports the following: - -* `listener_id` - (Required, String, ForceNew) Listener ID for application load balancers. -* `load_balancer_id` - (Required, String, ForceNew) ID of available load balancers. -* `target_attribute` - (Required, List, ForceNew) Attribute list of target rules. -* `rule_id` - (Optional, String, ForceNew) ID of forwarding rules. - -The `target_attribute` object supports the following: - -* `port` - (Required, Int, ForceNew) Port number. -* `weight` - (Required, Int, ForceNew) Weight. - -## Attributes Reference - -In addition to all arguments above, the following attributes are exported: - -* `id` - ID of the resource. - - - diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index b38f85ba56..9f9fc4b8e4 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -1626,12 +1626,6 @@
  • Data Sources