一、描述
容器集群访问端口,产品介绍
二、示例
resource "tencentcloud_kubernetes_cluster_endpoint" "foo" { cluster_id = "cls-xxxxxxxx" cluster_internet = true cluster_intranet = true cluster_intranet_subnet_id = "subnet-xxxxxxxx"}、
三、参数说明
| 类型 | 名称 | 数据类型 | 说明 |
| 必填 | region | string | 地域,如:ap-guangzhou,默认使用 provider 中定义的 region 也可以在 resource 中指定地域,覆盖默认设置 |
| 必填 | cluster_id | string | 容器集群 ID |
| 可选 | availability_zone | string | 可用区 |
| 可选 | count | int | 资源数量,默认为 1 如果为 0 则不创建资源 |
| 可选 | activity_id | int | 计费活动 ID,保留字段 |
| 可选 | cluster_internet | boolean | 外网访问 |
| 可选 | cluster_intranet | boolean | 内网访问 |
| 可选 | cluster_internet_security_group | string | 使用的安全组,只有外网访问需要传递(开启外网访问时必传) |
| 可选 | managed_cluster_internet_security_policies | string | 安全规则 |
| 可选 | cluster_internet_domain | string | 外网访问设置域名 |
| 可选 | cluster_intranet_domain | string | 内网访问设置域名 |
| 可选 | extensive_parameters | string | 创建lb参数,只有外网访问需要设置,是一个json格式化后的字符串 |
| 可选 | cluster_intranet_subnet_id | string | 集群端口所在的子网ID (仅在开启非外网访问时需要填,必须为集群所在VPC内的子网) |
| 生成 | id | string | 资源实例 ID |
| 生成 | create_time | string | 资源创建时间 |
| 生成 | cluster_deploy_type | string | – |
| 生成 | user_name | string | 集群的账号名称 |
| 生成 | password | string | 集群的访问密码 |
| 生成 | certification_authority | string | 集群访问CA证书 |
| 生成 | cluster_external_endpoint | string | 集群访问的地址 |
| 生成 | domain | string | 集群访问的域名 |
| 生成 | pgw_endpoint | string | 集群Endpoint地址 |