tccli 3.0.1243.1__py2.py3-none-any.whl → 3.0.1245.1__py2.py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- tccli/__init__.py +1 -1
- tccli/services/aca/v20210323/api.json +107 -107
- tccli/services/aca/v20210323/examples.json +5 -5
- tccli/services/asr/v20190614/examples.json +6 -6
- tccli/services/cbs/v20170312/api.json +9 -0
- tccli/services/cdwdoris/v20211228/api.json +22 -2
- tccli/services/cdwdoris/v20211228/examples.json +1 -1
- tccli/services/cls/v20201016/api.json +185 -156
- tccli/services/cls/v20201016/examples.json +5 -5
- tccli/services/cvm/v20170312/api.json +8 -8
- tccli/services/cvm/v20170312/examples.json +4 -4
- tccli/services/dbbrain/dbbrain_client.py +57 -4
- tccli/services/dbbrain/v20210527/api.json +145 -0
- tccli/services/dbbrain/v20210527/examples.json +8 -0
- tccli/services/dts/v20211206/api.json +9 -0
- tccli/services/dts/v20211206/examples.json +1 -1
- tccli/services/essbasic/v20210526/api.json +1 -1
- tccli/services/hunyuan/v20230901/api.json +1 -1
- tccli/services/lighthouse/v20200324/api.json +1 -1
- tccli/services/lke/v20231130/api.json +30 -0
- tccli/services/mna/v20210119/examples.json +1 -1
- tccli/services/monitor/v20180724/api.json +55 -0
- tccli/services/scf/scf_client.py +118 -65
- tccli/services/scf/v20180416/api.json +570 -475
- tccli/services/scf/v20180416/examples.json +52 -44
- tccli/services/tcb/v20180608/api.json +13 -13
- tccli/services/tcm/v20210413/api.json +52 -48
- tccli/services/tcm/v20210413/examples.json +7 -7
- tccli/services/tcr/v20190924/api.json +435 -407
- tccli/services/tcr/v20190924/examples.json +49 -49
- tccli/services/teo/v20220901/api.json +3 -3
- tccli/services/tke/v20180525/api.json +1544 -1258
- tccli/services/tke/v20180525/examples.json +165 -165
- tccli/services/tke/v20220501/api.json +16 -16
- tccli/services/tke/v20220501/examples.json +2 -2
- tccli/services/trocket/trocket_client.py +57 -4
- tccli/services/trocket/v20230308/api.json +143 -51
- tccli/services/trocket/v20230308/examples.json +11 -3
- tccli/services/vclm/v20240523/api.json +3 -3
- tccli/services/vpc/v20170312/api.json +182 -154
- tccli/services/vpc/v20170312/examples.json +12 -34
- tccli/services/waf/v20180125/api.json +1 -1
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1245.1.dist-info}/METADATA +2 -2
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1245.1.dist-info}/RECORD +47 -47
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1245.1.dist-info}/WHEEL +0 -0
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1245.1.dist-info}/entry_points.txt +0 -0
- {tccli-3.0.1243.1.dist-info → tccli-3.0.1245.1.dist-info}/license_files/LICENSE +0 -0
@@ -27,15 +27,15 @@
|
|
27
27
|
"AddNodeToNodePool": [
|
28
28
|
{
|
29
29
|
"document": "将集群内节点移入节点池",
|
30
|
-
"input": "https://tke.tencentcloudapi.com/?Action=AddNodeToNodePool\n&ClusterId=cls-
|
31
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
30
|
+
"input": "https://tke.tencentcloudapi.com/?Action=AddNodeToNodePool\n&ClusterId=cls-e55paxnt\n&NodePoolId=np-e55paxnt\n&InstanceIds.0=ins-e55paxnt\n&<公共请求参数>",
|
31
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"d174dcb6-659b-4ab6-9533-e470a7d91e43\"\n }\n}",
|
32
32
|
"title": "将集群内节点移入节点池"
|
33
33
|
}
|
34
34
|
],
|
35
35
|
"AddVpcCniSubnets": [
|
36
36
|
{
|
37
37
|
"document": "当用户选择了VPC-CNI网络模式时,创建集群时选择的子网资源IP可能将来不足,需要增加子网。",
|
38
|
-
"input": "https://tke.tencentcloudapi.com/?Action=AddVpcCniSubnets\n&VpcId=vpc-
|
38
|
+
"input": "https://tke.tencentcloudapi.com/?Action=AddVpcCniSubnets\n&VpcId=vpc-e55paxnt\n&ClusterId=cls-e55paxnt\n&SubnetIds.0=subnet-e55paxnt\n&<公共请求参数>",
|
39
39
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
40
40
|
"title": "为VPC-CNI模式集群增加子网"
|
41
41
|
}
|
@@ -51,7 +51,7 @@
|
|
51
51
|
"CheckEdgeClusterCIDR": [
|
52
52
|
{
|
53
53
|
"document": "",
|
54
|
-
"input": "https://tke.tencentcloudapi.com/?Action=CheckEdgeClusterCIDR\n&VpcId=vpc-
|
54
|
+
"input": "https://tke.tencentcloudapi.com/?Action=CheckEdgeClusterCIDR\n&VpcId=vpc-e55paxnt\n&PodCIDR=10.0.1.10/24\n&ServiceCIDR=192.168.0.0/16\n&<公共请求参数>",
|
55
55
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\",\n \"ConflictCode\": 0,\n \"ConflictMsg\": \"OK\"\n }\n}",
|
56
56
|
"title": "检查边缘计算集群的CIDR是否冲突示例"
|
57
57
|
}
|
@@ -60,7 +60,7 @@
|
|
60
60
|
{
|
61
61
|
"document": "检查节点是否可升级",
|
62
62
|
"input": "https://tke.tencentcloudapi.com/?Action=CheckInstancesUpgradeAble\n&ClusterId=cls-7ph3twqe\n&InstanceIds.0=ins-q40fqbso\n&InstanceIds.1=ins-hvldgo6w\n&InstanceIds.2=ins-hrtaxazg\n&<公共请求参数>",
|
63
|
-
"output": "{\n \"Response\": {\n \"ClusterVersion\": \"1.22.5\",\n \"LatestVersion\": \"1.22.5\",\n \"Total\": 3,\n \"RequestId\": \"
|
63
|
+
"output": "{\n \"Response\": {\n \"ClusterVersion\": \"1.22.5\",\n \"LatestVersion\": \"1.22.5\",\n \"Total\": 3,\n \"RequestId\": \"342ea0aa-e45a-41dd-84f5-f7a2929d3fac\",\n \"UnavailableVersionReason\": [\n {\n \"InstanceId\": \"ins-mq0fqbso\",\n \"Reason\": \"instance already the master latest version\"\n }\n ],\n \"UpgradeAbleInstances\": [\n {\n \"InstanceId\": \"ins-q40fqbso\",\n \"LatestVersion\": \"1.22.5\",\n \"Version\": \"1.20.6\",\n \"RuntimeVersion\": \"docker-18.9\",\n \"RuntimeLatestVersion\": \"docker-18.9\"\n },\n {\n \"InstanceId\": \"ins-hvldgo6w\",\n \"LatestVersion\": \"1.22.5\",\n \"Version\": \"1.20.6\",\n \"RuntimeVersion\": \"docker-18.9\",\n \"RuntimeLatestVersion\": \"docker-18.9\"\n },\n {\n \"InstanceId\": \"ins-hrtaxazg\",\n \"LatestVersion\": \"1.22.5\",\n \"Version\": \"1.20.6\",\n \"RuntimeVersion\": \"docker-18.9\",\n \"RuntimeLatestVersion\": \"docker-18.9\"\n }\n ]\n }\n}",
|
64
64
|
"title": "检查节点是否可升级"
|
65
65
|
}
|
66
66
|
],
|
@@ -83,7 +83,7 @@
|
|
83
83
|
"CreateCluster": [
|
84
84
|
{
|
85
85
|
"document": "创建托管集群",
|
86
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCluster\n<公共请求参数>\n\n{\n \"ClusterType\": \"MANAGED_CLUSTER\",\n \"ClusterBasicSettings\": {\n \"ClusterOs\": \"centos8.0x86_64\",\n \"OsCustomizeType\": \"GENERAL\",\n \"ClusterVersion\": \"1.26.1\",\n \"ClusterName\": \"
|
86
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateCluster\n<公共请求参数>\n\n{\n \"ClusterType\": \"MANAGED_CLUSTER\",\n \"ClusterBasicSettings\": {\n \"ClusterOs\": \"centos8.0x86_64\",\n \"OsCustomizeType\": \"GENERAL\",\n \"ClusterVersion\": \"1.26.1\",\n \"ClusterName\": \"tke\",\n \"ClusterDescription\": \"测试集群\",\n \"VpcId\": \"vpc-135qxjgs\",\n \"ProjectId\": 0,\n \"NeedWorkSecurityGroup\": false,\n \"TagSpecification\": [\n {\n \"ResourceType\": \"cluster\",\n \"Tags\": [\n {\n \"Key\": \"product\",\n \"Value\": \"tke\"\n }\n ]\n }\n ],\n \"ClusterLevel\": \"L5\",\n \"AutoUpgradeClusterLevel\": {\n \"IsAutoUpgrade\": true\n }\n },\n \"ClusterCIDRSettings\": {\n \"ClusterCIDR\": \"172.24.0.0/16\",\n \"IgnoreClusterCIDRConflict\": false,\n \"MaxNodePodNum\": 64,\n \"MaxClusterServiceNum\": 1024\n },\n \"ClusterAdvancedSettings\": {\n \"AsEnabled\": false,\n \"IPVS\": true,\n \"ContainerRuntime\": \"containerd\",\n \"RuntimeVersion\": \"1.6.9\",\n \"NodeNameType\": \"lan-ip\",\n \"ExtraArgs\": {\n \"KubeAPIServer\": [],\n \"KubeControllerManager\": [],\n \"KubeScheduler\": []\n },\n \"NetworkType\": \"GR\",\n \"DeletionProtection\": true,\n \"AuditEnabled\": true,\n \"AuditLogsetId\": \"\",\n \"AuditLogTopicId\": \"\",\n \"EnableCustomizedPodCIDR\": false,\n \"IsDualStack\": false,\n \"QGPUShareEnable\": true\n },\n \"InstanceAdvancedSettings\": {\n \"DataDisks\": [],\n \"DockerGraphPath\": \"/var/lib/containerd\",\n \"Unschedulable\": 0,\n \"PreStartUserScript\": \"\",\n \"UserScript\": \"\",\n \"Labels\": [],\n \"Taints\": [],\n \"GPUArgs\": {},\n \"DesiredPodNumber\": 0\n },\n \"ExtensionAddons\": [\n {\n \"AddonName\": \"CBS\",\n \"AddonParam\": \"{\\\"kind\\\":\\\"App\\\",\\\"spec\\\":{\\\"chart\\\":{\\\"chartName\\\":\\\"cbs\\\",\\\"chartVersion\\\":\\\"1.1.3\\\"},\\\"values\\\":{\\\"values\\\":[],\\\"rawValues\\\":\\\"e30=\\\",\\\"rawValuesType\\\":\\\"json\\\"}}}\"\n },\n {\n \"AddonName\": \"APP\",\n \"AddonParam\": \"{\\\"kind\\\":\\\"App\\\",\\\"spec\\\":{\\\"chart\\\":{\\\"chartName\\\":\\\"user-group-access-control\\\",\\\"chartVersion\\\":\\\"1.0.0\\\"}}}\"\n },\n {\n \"AddonName\": \"QGPU\",\n \"AddonParam\": \"{\\\"kind\\\":\\\"App\\\",\\\"spec\\\":{\\\"chart\\\":{\\\"chartName\\\":\\\"qgpu\\\",\\\"chartVersion\\\":\\\"1.0.19\\\"},\\\"values\\\":{\\\"values\\\":[\\\"config.priority=binpack\\\",\\\"config.nodepriority=spread\\\",\\\"config.rootdir=/var/lib/kubelet\\\"]}}}\"\n },\n {\n \"AddonName\": \"KMS\",\n \"AddonParam\": \"{\\\"kind\\\":\\\"App\\\",\\\"spec\\\":{\\\"chart\\\":{\\\"chartName\\\":\\\"tke-kms-plugin\\\",\\\"chartVersion\\\":\\\"1.0.0\\\"},\\\"name\\\":\\\"tke-kms-plugin\\\",\\\"values\\\":{\\\"values\\\":[\\\"keyId=7d90e454-8458-11ee-b601-525400741137\\\",\\\"region=ap-guangzhou\\\",\\\"resource=secrets\\\"]}}}\"\n }\n ],\n \"RunInstancesForNode\": [\n {\n \"NodeRole\": \"WORKER\",\n \"RunInstancesPara\": [\n \"{\\\"Version\\\":\\\"2017-03-12\\\",\\\"InstanceChargeType\\\":\\\"POSTPAID_BY_HOUR\\\",\\\"Placement\\\":{\\\"Zone\\\":\\\"ap-shanghai-1\\\",\\\"ProjectId\\\":0},\\\"TagSpecification\\\":[{\\\"ResourceType\\\":\\\"instance\\\",\\\"Tags\\\":[{\\\"Key\\\":\\\"aa\\\",\\\"Value\\\":\\\"cc\\\"}]}],\\\"InstanceType\\\":\\\"S2.MEDIUM2\\\",\\\"ImageId\\\":\\\"img-25szkc8t\\\",\\\"SystemDisk\\\":{\\\"DiskType\\\":\\\"CLOUD_BSSD\\\",\\\"DiskSize\\\":50},\\\"VirtualPrivateCloud\\\":{\\\"VpcId\\\":\\\"vpc-135qxjgs\\\",\\\"SubnetId\\\":\\\"subnet-rtp4p7q3\\\",\\\"Ipv6AddressCount\\\":0},\\\"InternetAccessible\\\":{\\\"InternetChargeType\\\":\\\"TRAFFIC_POSTPAID_BY_HOUR\\\",\\\"InternetMaxBandwidthOut\\\":1,\\\"PublicIpAssigned\\\":true},\\\"InstanceCount\\\":1,\\\"InstanceName\\\":\\\"\\\",\\\"LoginSettings\\\":{\\\"KeyIds\\\":[\\\"skey-4h43fuxj\\\"]},\\\"SecurityGroupIds\\\":[\\\"sg-hjsb4ai4\\\"],\\\"EnhancedService\\\":{\\\"SecurityService\\\":{\\\"Enabled\\\":true},\\\"MonitorService\\\":{\\\"Enabled\\\":true}},\\\"PurchaseSource\\\":\\\"docker_dashboard\\\",\\\"UserData\\\":\\\"\\\"}\"\n ],\n \"InstanceAdvancedSettingsOverrides\": [\n {\n \"DataDisks\": [],\n \"MountTarget\": \"\",\n \"DockerGraphPath\": \"/var/lib/containerd\",\n \"Unschedulable\": 0,\n \"PreStartUserScript\": \"\",\n \"UserScript\": \"\",\n \"DesiredPodNumber\": 0,\n \"Labels\": [],\n \"Taints\": [],\n \"ExtraArgs\": {\n \"Kubelet\": []\n },\n \"GPUArgs\": {\n \"MIGEnable\": false,\n \"Driver\": {\n \"Version\": \"\",\n \"Name\": \"\"\n },\n \"CUDA\": {\n \"Version\": \"\",\n \"Name\": \"\"\n },\n \"CUDNN\": {\n \"Version\": \"\",\n \"Name\": \"\",\n \"DocName\": \"\",\n \"DevName\": \"\"\n }\n }\n }\n ]\n }\n ],\n \"InstanceDataDiskMountSettings\": []\n}",
|
87
87
|
"output": "{\n \"Response\": {\n \"ClusterId\": \"cls-7ph3twqe\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
88
88
|
"title": "创建托管集群示例"
|
89
89
|
},
|
@@ -97,7 +97,7 @@
|
|
97
97
|
"CreateClusterEndpoint": [
|
98
98
|
{
|
99
99
|
"document": "创建集群访问端口",
|
100
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterEndpoint\n<公共请求参数>\n\n{\n \"SubnetId\": \"subnet-
|
100
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterEndpoint\n<公共请求参数>\n\n{\n \"SubnetId\": \"subnet-e55paxnt\",\n \"ClusterId\": \"cls-e55paxnt\",\n \"IsExtranet\": true,\n \"SecurityGroup\": \"sg-e55paxnt\",\n \"ExtensiveParameters\": \"{\\\"InternetAccessible\\\":{\\\"InternetChargeType\\\":\\\"TRAFFIC_POSTPAID_BY_HOUR\\\",\\\"InternetMaxBandwidthOut\\\":200}}\"\n}",
|
101
101
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
102
102
|
"title": "创建集群访问端口"
|
103
103
|
}
|
@@ -105,7 +105,7 @@
|
|
105
105
|
"CreateClusterEndpointVip": [
|
106
106
|
{
|
107
107
|
"document": "创建托管集群外网访问端口",
|
108
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterEndpointVip\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
108
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterEndpointVip\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\"\n}",
|
109
109
|
"output": "{\n \"Response\": {\n \"RequestFlowId\": \"100000\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
110
110
|
"title": "创建托管集群外网访问端口"
|
111
111
|
}
|
@@ -113,22 +113,22 @@
|
|
113
113
|
"CreateClusterInstances": [
|
114
114
|
{
|
115
115
|
"document": "扩展集群节点",
|
116
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterInstances\n<公共请求参数>\n\n{\n \"RunInstancePara\": \"{\\\"Placement\\\":{\\\"Zone\\\":\\\"ap-guangzhou-4\\\"},\\\"InstanceType\\\":\\\"S3.SMALL1\\\"}\",\n \"ClusterId\": \"cls-
|
117
|
-
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-
|
116
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterInstances\n<公共请求参数>\n\n{\n \"RunInstancePara\": \"{\\\"Placement\\\":{\\\"Zone\\\":\\\"ap-guangzhou-4\\\"},\\\"InstanceType\\\":\\\"S3.SMALL1\\\"}\",\n \"ClusterId\": \"cls-e55paxnt\"\n}",
|
117
|
+
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-e55paxnt\"\n ],\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
118
118
|
"title": "扩展集群节点示例"
|
119
119
|
},
|
120
120
|
{
|
121
121
|
"document": "添加带有多个数据盘的节点到集群\n注意1: InstanceAdvancedSettings设置DataDisks, 多盘数据盘挂载信息,后端会根据盘的类型、大小匹配数据盘ID,将对应的路径挂载\n注意2: RunInstancePara设置DataDisks, 此参数透传给CVM,购买多块数据盘\n注意3: InstanceAdvancedSettings的MountTarget早期是支持单盘的,多盘场景废弃,无需填写",
|
122
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterInstances\n<公共请求参数>\n\n{\n \"ClusterId\": \"
|
123
|
-
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-
|
122
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterInstances\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-nfjdk3n0\",\n \"InstanceAdvancedSettings\": {\n \"DesiredPodNumber\": 120,\n \"Taints\": null,\n \"DataDisks\": [\n {\n \"AutoFormatAndMount\": true,\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_BSSD\",\n \"FileSystem\": \"ext4\",\n \"MountTarget\": \"/run\",\n \"DiskPartition\": \"/dev/vda\"\n },\n {\n \"AutoFormatAndMount\": true,\n \"DiskSize\": 50,\n \"DiskType\": \"CLOUD_BSSD\",\n \"FileSystem\": \"ext4\",\n \"MountTarget\": \"/var/lib/data2\",\n \"DiskPartition\": \"/dev/vda\"\n }\n ],\n \"DockerGraphPath\": \"\",\n \"GPUArgs\": {\n \"CUDA\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CUDNN\": {\n \"DevName\": \"\",\n \"DocName\": \"\",\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"Driver\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"MIGEnable\": false\n },\n \"PreStartUserScript\": \"\",\n \"Unschedulable\": 0,\n \"UserScript\": \"\"\n },\n \"RunInstancePara\": \"{\\\"InstanceChargeType\\\":\\\"POSTPAID_BY_HOUR\\\",\\\"Placement\\\":{\\\"Zone\\\":\\\"ap-beijing-1\\\",\\\"ProjectId\\\":0},\\\"InstanceType\\\":\\\"S5.LARGE8\\\",\\\"SystemDisk\\\":{\\\"DiskType\\\":\\\"CLOUD_BSSD\\\",\\\"DiskSize\\\":50},\\\"DataDisks\\\":[{\\\"DiskType\\\":\\\"CLOUD_BSSD\\\",\\\"DiskSize\\\":50},{\\\"DiskType\\\":\\\"CLOUD_BSSD\\\",\\\"DiskSize\\\":50}],\\\"VirtualPrivateCloud\\\":{\\\"VpcId\\\":\\\"vpc-fcccepnm\\\",\\\"SubnetId\\\":\\\"subnet-f6c7fr8d\\\",\\\"AsVpcGateway\\\":false,\\\"Ipv6AddressCount\\\":0},\\\"InternetAccessible\\\":{\\\"InternetChargeType\\\":\\\"TRAFFIC_POSTPAID_BY_HOUR\\\",\\\"InternetMaxBandwidthOut\\\":0,\\\"PublicIpAssigned\\\":false},\\\"InstanceCount\\\":1,\\\"ImageId\\\":\\\"img-fqais24x\\\",\\\"HostName\\\":\\\"tke\\\",\\\"InstanceName\\\":\\\"tke\\\",\\\"LoginSettings\\\":{\\\"KeyIds\\\":[\\\"skey-f6c7fr8d\\\"]},\\\"SecurityGroupIds\\\":[\\\"sg-f6c7fr8d\\\"],\\\"EnhancedService\\\":{\\\"SecurityService\\\":{\\\"Enabled\\\":true},\\\"MonitorService\\\":{\\\"Enabled\\\":true}}}\"\n}",
|
123
|
+
"output": "{\n \"Response\": {\n \"InstanceIdSet\": [\n \"ins-e55paxnt\"\n ],\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
124
124
|
"title": "添加集群节点(多块数据盘)"
|
125
125
|
}
|
126
126
|
],
|
127
127
|
"CreateClusterNodePool": [
|
128
128
|
{
|
129
129
|
"document": "",
|
130
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterNodePool\n<公共请求参数>\n\n{\n \"AutoScalingGroupPara\": \"{\\\"AutoScalingGroupName\\\":\\\"\\\",\\\"MaxSize\\\":20,\\\"MinSize\\\":0,\\\"DesiredCapacity\\\":2,\\\"VpcId\\\":\\\"vpc-2ln96dly\\\",\\\"SubnetIds\\\":[\\\"subnet-40bgrdix\\\"],\\\"MultiZoneSubnetPolicy\\\":\\\"PRIORITY\\\",\\\"RetryPolicy\\\":\\\"IMMEDIATE_RETRY\\\",\\\"ServiceSettings\\\":{\\\"ScalingMode\\\":\\\"CLASSIC_SCALING\\\"}}\",\n \"ClusterId\": \"cls-
|
131
|
-
"output": "{\n \"Response\": {\n \"NodePoolId\": \"np-
|
130
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterNodePool\n<公共请求参数>\n\n{\n \"AutoScalingGroupPara\": \"{\\\"AutoScalingGroupName\\\":\\\"\\\",\\\"MaxSize\\\":20,\\\"MinSize\\\":0,\\\"DesiredCapacity\\\":2,\\\"VpcId\\\":\\\"vpc-2ln96dly\\\",\\\"SubnetIds\\\":[\\\"subnet-40bgrdix\\\"],\\\"MultiZoneSubnetPolicy\\\":\\\"PRIORITY\\\",\\\"RetryPolicy\\\":\\\"IMMEDIATE_RETRY\\\",\\\"ServiceSettings\\\":{\\\"ScalingMode\\\":\\\"CLASSIC_SCALING\\\"}}\",\n \"ClusterId\": \"cls-e55paxnt\",\n \"ContainerRuntime\": \"docker\",\n \"DeletionProtection\": true,\n \"EnableAutoscale\": true,\n \"InstanceAdvancedSettings\": {\n \"DataDisks\": [\n {\n \"AutoFormatAndMount\": true,\n \"DiskSize\": 500,\n \"DiskPartition\": \"\",\n \"DiskType\": \"CLOUD_BSSD\",\n \"FileSystem\": \"xfs\",\n \"MountTarget\": \"/var/lib/docker\"\n }\n ],\n \"Taints\": [\n {\n \"Value\": \"value\",\n \"Key\": \"key\",\n \"Effect\": \"NoExecute\"\n }\n ],\n \"DockerGraphPath\": \"/var/lib/docker\",\n \"DesiredPodNumber\": 0,\n \"PreStartUserScript\": \"aGVsbG8gd29ybGQK\",\n \"GPUArgs\": {\n \"CUDA\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CUDNN\": {\n \"DevName\": \"\",\n \"DocName\": \"\",\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"Driver\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"MIGEnable\": false\n },\n \"Unschedulable\": 0,\n \"UserScript\": \"Y3VybCAtcyxcmVzb2x2LmNvbmY=\"\n },\n \"Taints\": [\n {\n \"Value\": \"value\",\n \"Key\": \"key\",\n \"Effect\": \"NoExecute\"\n }\n ],\n \"Labels\": [\n {\n \"Name\": \"node-pool\",\n \"Value\": \"tencent\"\n }\n ],\n \"Annotations\": [\n {\n \"Name\": \"tke.cloud.tencent.com/test\",\n \"Value\": \"true\"\n }\n ],\n \"LaunchConfigurePara\": \"{\\\"LaunchConfigurationName\\\":\\\"\\\",\\\"InstanceType\\\":\\\"S6.8XLARGE64\\\",\\\"SystemDisk\\\":{\\\"DiskType\\\":\\\"CLOUD_BSSD\\\",\\\"DiskSize\\\":50},\\\"DataDisks\\\":[{\\\"DiskType\\\":\\\"CLOUD_BSSD\\\",\\\"DiskSize\\\":500}],\\\"InternetAccessible\\\":{\\\"InternetChargeType\\\":\\\"TRAFFIC_POSTPAID_BY_HOUR\\\",\\\"InternetMaxBandwidthOut\\\":0,\\\"PublicIpAssigned\\\":false},\\\"LoginSettings\\\":{\\\"KeyIds\\\":[\\\"skey-e55paxnt\\\"]},\\\"SecurityGroupIds\\\":[\\\"sg-e55paxnt\\\"],\\\"EnhancedService\\\":{\\\"SecurityService\\\":{\\\"Enabled\\\":true},\\\"MonitorService\\\":{\\\"Enabled\\\":true}},\\\"HostNameSettings\\\":{\\\"HostName\\\":\\\"foundation-node\\\",\\\"HostNameStyle\\\":\\\"UNIQUE\\\"},\\\"InstanceNameSettings\\\":{\\\"InstanceName\\\":\\\"node\\\",\\\"InstanceNameStyle\\\":\\\"UNIQUE\\\"},\\\"InstanceChargeType\\\":\\\"PREPAID\\\",\\\"InstanceChargePrepaid\\\":{\\\"Period\\\":1,\\\"RenewFlag\\\":\\\"NOTIFY_AND_AUTO_RENEW\\\"}}\",\n \"Name\": \"node-pool\",\n \"NodePoolOs\": \"centos7.6.0_x64\",\n \"OsCustomizeType\": \"GENERAL\",\n \"RuntimeVersion\": \"19.3\"\n}",
|
131
|
+
"output": "{\n \"Response\": {\n \"NodePoolId\": \"np-e55paxnt\",\n \"RequestId\": \"d174dcb6-659b-4ab6-9533-e470a7d91e43\"\n }\n}",
|
132
132
|
"title": "创建节点池"
|
133
133
|
}
|
134
134
|
],
|
@@ -151,7 +151,7 @@
|
|
151
151
|
"CreateClusterRouteTable": [
|
152
152
|
{
|
153
153
|
"document": "",
|
154
|
-
"input": "https://tke.tencentcloudapi.com/?Action=CreateClusterRouteTable\r\n&RouteTableName=MANAGED_CLUSTER\r\n&RouteTableCidrBlock=10.4.0.0/16\r\n&VpcId=vpc-
|
154
|
+
"input": "https://tke.tencentcloudapi.com/?Action=CreateClusterRouteTable\r\n&RouteTableName=MANAGED_CLUSTER\r\n&RouteTableCidrBlock=10.4.0.0/16\r\n&VpcId=vpc-e55paxnt\r\n&<公共请求参数>",
|
155
155
|
"output": "{\n \"Response\": {\n \"RequestId\": \"a1be36f0-1aa4-4af2-a289-da021bcef89f\"\n }\n}",
|
156
156
|
"title": "创建集群路由表"
|
157
157
|
}
|
@@ -159,23 +159,23 @@
|
|
159
159
|
"CreateClusterVirtualNode": [
|
160
160
|
{
|
161
161
|
"document": "创建按量计费超级节点",
|
162
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterVirtualNode\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
163
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\",\n \"NodeName\": \"eklet-subnet-
|
162
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterVirtualNode\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"NodePoolId\": \"np-e55paxnt\",\n \"SubnetId\": \"subnet-e55paxnt\"\n}",
|
163
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\",\n \"NodeName\": \"eklet-subnet-qbc3zefo-0\"\n }\n}",
|
164
164
|
"title": "创建按量计费超级节点"
|
165
165
|
}
|
166
166
|
],
|
167
167
|
"CreateClusterVirtualNodePool": [
|
168
168
|
{
|
169
169
|
"document": "创建超级节点池",
|
170
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterVirtualNodePool\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
171
|
-
"output": "{\n \"Response\": {\n \"NodePoolId\": \"np-
|
170
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateClusterVirtualNodePool\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"Name\": \"vk-nodepoll\",\n \"SubnetIds\": [\n \"subnet-e55paxnt\"\n ],\n \"SecurityGroupIds\": [\n \"sg-e55paxnt\"\n ]\n}",
|
171
|
+
"output": "{\n \"Response\": {\n \"NodePoolId\": \"np-e55paxnt\",\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\"\n }\n}",
|
172
172
|
"title": "创建超级节点池"
|
173
173
|
}
|
174
174
|
],
|
175
175
|
"CreateECMInstances": [
|
176
176
|
{
|
177
177
|
"document": "创建边缘计算ECM机器",
|
178
|
-
"input": "https://tke.tencentcloudapi.com/?Action=CreateECMInstances\n&ClusterID=cls-
|
178
|
+
"input": "https://tke.tencentcloudapi.com/?Action=CreateECMInstances\n&ClusterID=cls-e55paxnt\n&ZoneInstanceCountISPSet.0.Zone=ap-zhengzhou-1\n&ZoneInstanceCountISPSet.0.InstanceCount=2\n&ZoneInstanceCountISPSet.0.ISP=CMCC\n&ImageId=img-q9fy0if9\n&HostName=oldhen_4986\n\n&ModuleId=em-0vag13d1\n&InstanceName=直播弹幕\n&EnhancedService.SecurityService.Enabled=false\n&EnhancedService.MonitorService.Enabled=false\n&<公共请求参数>",
|
179
179
|
"output": "{\n \"Response\": {\n \"RequestId\": \"d40cdb72-7bc0-4b48-b3aa-25e8401f6999\",\n \"EcmIdSet\": [\n \"ecm-197252sp\",\n \"ecm-19725win\",\n \"ecm-19623ash\"\n ]\n }\n}",
|
180
180
|
"title": "创建边缘计算ECM机器"
|
181
181
|
}
|
@@ -183,15 +183,15 @@
|
|
183
183
|
"CreateEKSCluster": [
|
184
184
|
{
|
185
185
|
"document": "创建托管集群",
|
186
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEKSCluster\n<公共请求参数>\n\n{\n \"ServiceSubnetId\": \"subnet-
|
187
|
-
"output": "{\n \"Response\": {\n \"ClusterId\": \"cls-
|
186
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEKSCluster\n<公共请求参数>\n\n{\n \"ServiceSubnetId\": \"subnet-j0hy001q\",\n \"VpcId\": \"vpc-j0hy001q\",\n \"K8SVersion\": \"1.12.4\",\n \"ClusterName\": \"tke\",\n \"SubnetIds\": [\n \"subnet-j0hy001q\"\n ],\n \"DnsServers\": [\n {\n \"Domain\": \"exam.com\",\n \"DnsServers\": [\n \"10.2.2.88:53\"\n ]\n }\n ],\n \"ClusterDesc\": \"tke cluster\"\n}",
|
187
|
+
"output": "{\n \"Response\": {\n \"ClusterId\": \"cls-j0hy001q\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
188
188
|
"title": "创建弹性集群示例"
|
189
189
|
}
|
190
190
|
],
|
191
191
|
"CreateEKSContainerInstances": [
|
192
192
|
{
|
193
193
|
"document": "创建容器实例",
|
194
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEKSContainerInstances\n<公共请求参数>\n\n{\n \"AutoCreateEipAttribute\": {\n \"InternetMaxBandwidthOut\": 1,\n \"DeletePolicy\": \"Immediate\",\n \"InternetServiceProvider\": \"BGP\"\n },\n \"CamRoleName\": \"TkeRole\",\n \"VpcId\": \"vpc-
|
194
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateEKSContainerInstances\n<公共请求参数>\n\n{\n \"AutoCreateEipAttribute\": {\n \"InternetMaxBandwidthOut\": 1,\n \"DeletePolicy\": \"Immediate\",\n \"InternetServiceProvider\": \"BGP\"\n },\n \"CamRoleName\": \"TkeRole\",\n \"VpcId\": \"vpc-1cghduvc\",\n \"DnsConfig\": {\n \"Nameservers\": [\n \"server\"\n ],\n \"Searches\": [\n \"\"\n ],\n \"Options\": [\n {\n \"Name\": \"\",\n \"Value\": \"\"\n }\n ]\n },\n \"Replicas\": 1,\n \"ImageRegistryCredentials\": [\n {\n \"Username\": \"devops\",\n \"Password\": \"\",\n \"Name\": \"ta-habor-registry-0\",\n \"Server\": \"docker-ta.thinkingdata.cn\"\n }\n ],\n \"EksCiVolume\": {\n \"CbsVolumes\": [\n {\n \"CbsDiskId\": \"disk-45b3agyu\",\n \"Name\": \"disk-45b3agyu\"\n }\n ],\n \"NfsVolumes\": [\n {\n \"Path\": \"/5g326fcf/localfolder\",\n \"ReadOnly\": true,\n \"Name\": \"vol\",\n \"Server\": \"9.19.101.170\"\n }\n ]\n },\n \"GpuCount\": 1,\n \"ExistedEipIds\": [\n \"eip-1cghduvc\"\n ],\n \"AutoCreateEip\": true,\n \"RestartPolicy\": \"Always\",\n \"Cpu\": 1.0,\n \"Memory\": 2.0,\n \"SubnetId\": \"subnet-1cghduvc\",\n \"CpuType\": \"amd,intel\",\n \"SecurityGroupIds\": [\n \"sg-1cghduvc\"\n ],\n \"Containers\": [\n {\n \"Commands\": [\n \"sleep\"\n ],\n \"Name\": \"nginx\",\n \"GpuLimit\": 1,\n \"WorkingDir\": \"/var\",\n \"Image\": \"nginx:latest\",\n \"Args\": [\n \"10000\"\n ],\n \"VolumeMounts\": [\n {\n \"MountPropagation\": \"\",\n \"ReadOnly\": true,\n \"MountPath\": \"/images/mnt\",\n \"SubPath\": \"/images/mnt\",\n \"Name\": \"disk-45b3agyi\"\n }\n ],\n \"RestartCount\": 1,\n \"EnvironmentVars\": [\n {\n \"Name\": \"EKS_LOGS_OUTPUT_TYPE\",\n \"Value\": \"cls\"\n }\n ],\n \"Memory\": 0.0,\n \"Cpu\": 0.0\n }\n ],\n \"EksCiName\": \"for-imc-je2ytppo\"\n}",
|
195
195
|
"output": "{\n \"Response\": {\n \"RequestId\": \"51d9ea5a-6e9e-4384-88da-84229e212220\",\n \"EksCiIds\": [\n \"eksci-bd80pz8s\"\n ]\n }\n}",
|
196
196
|
"title": "创建容器实例"
|
197
197
|
}
|
@@ -199,7 +199,7 @@
|
|
199
199
|
"CreateEdgeCVMInstances": [
|
200
200
|
{
|
201
201
|
"document": "创建边缘容器CVM机器",
|
202
|
-
"input": "https://tke.tencentcloudapi.com/?Action=CreateEdgeCVMInstances\n&ClusterID=cls-
|
202
|
+
"input": "https://tke.tencentcloudapi.com/?Action=CreateEdgeCVMInstances\n&ClusterID=cls-e55paxnt\n&CvmRegion=ap-guangzhou\n&CvmCount=3\n&UserScript=whoami\n&RunInstancePara={\"InstanceChargeType\":\"POSTPAID_BY_HOUR\",\"Placement\":{\"Zone\":\"ap-guangzhou-3\",\"ProjectId\":0},\"InstanceType\":\"S5.SMALL2\",\"SystemDisk\":{\"DiskType\":\"CLOUD_BSSD\",\"DiskSize\":50},\"VirtualPrivateCloud\":{\"VpcId\":\"vpc-e55paxnt\",\"SubnetId\":\"subnet-e55paxnt\",\"AsVpcGateway\":false},\"InternetAccessible\":{\"InternetChargeType\":\"TRAFFIC_POSTPAID_BY_HOUR\",\"InternetMaxBandwidthOut\":1,\"PublicIpAssigned\":true},\"InstanceCount\":1,\"ImageId\":\"img-e55paxnt\",\"InstanceName\":\"tkeedge_cls-e55paxnt_worker\",\"LoginSettings\":{\"KeyIds\":[\"skey-e55paxnt\"]},\"SecurityGroupIds\":[\"sg-e55paxnt\"],\"EnhancedService\":{\"SecurityService\":{\"Enabled\":true},\"MonitorService\":{\"Enabled\":true}}}\n&EnableEni=true\n&<公共请求参数>",
|
203
203
|
"output": "{\n \"Response\": {\n \"RequestId\": \"d40cdb72-7bc0-4b48-b3aa-25e8401f6999\",\n \"CvmIdSet\": [\n \"cvm-197252sp\",\n \"cvm-19725win\",\n \"cvm-19623ash\"\n ]\n }\n}",
|
204
204
|
"title": "创建边缘容器CVM机器"
|
205
205
|
}
|
@@ -207,7 +207,7 @@
|
|
207
207
|
"CreateEdgeLogConfig": [
|
208
208
|
{
|
209
209
|
"document": "创建边缘集群日志采集规则",
|
210
|
-
"input": "https://tke.tencentcloudapi.com/?Action=CreateEdgeLogConfig\n&LogConfig={\"apiVersion\":\"cls.cloud.tencent.com/v1\",\"kind\":\"LogConfig\"... }\n&ClusterId=cls-
|
210
|
+
"input": "https://tke.tencentcloudapi.com/?Action=CreateEdgeLogConfig\n&LogConfig={\"apiVersion\":\"cls.cloud.tencent.com/v1\",\"kind\":\"LogConfig\"... }\n&ClusterId=cls-2wds9k9p\n&<公共请求参数>",
|
211
211
|
"output": "{\n \"Response\": {\n \"RequestId\": \"f12a6e20-f950-4af9-8f8b-b6329a4961c2\"\n }\n}",
|
212
212
|
"title": "创建日志采集规则"
|
213
213
|
}
|
@@ -240,7 +240,7 @@
|
|
240
240
|
{
|
241
241
|
"document": "新增告警,并选择使用模板",
|
242
242
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreatePrometheusAlertRule\n<公共请求参数>\n\n{\n \"InstanceId\": \"prom-test\",\n \"AlertRule\": {\n \"TemplateId\": \"temp-test\",\n \"Name\": \"test\",\n \"Rules\": [\n {\n \"Describe\": \"pod处于NotReady状态超过15分钟\",\n \"Name\": \"KubePodNotReady\",\n \"For\": \"\",\n \"Labels\": [\n {\n \"Name\": \"severity\",\n \"Value\": \"warning\"\n }\n ],\n \"Rule\": \"sum by (cluster,namespace, pod) (\\n max by(cluster,namespace, pod) (\\n kube_pod_status_phase{job=\\\"kube-state-metrics\\\", phase=~\\\"Pending|Unknown\\\"}\\n ) * on(cluster,namespace, pod) group_left(owner_kind) topk by(cluster,namespace, pod) (\\n 1, max by(cluster,namespace, pod, owner_kind) (kube_pod_owner{owner_kind!=\\\"Job\\\"})\\n )\\n) > 0\\n\",\n \"Template\": \"集群 {{ $labels.cluster }}/namespace {{ $labels.namespace }}/Pod {{ $labels.pod }}处于NotReady状态超过15分钟\",\n \"Annotations\": [\n {\n \"Name\": \"content\",\n \"Value\": \"pod crash\"\n }\n ]\n }\n ],\n \"Notification\": {\n \"RepeatInterval\": \"5h\",\n \"TimeRangeStart\": \"00:00:00\",\n \"Enabled\": true,\n \"PhoneNotifyOrder\": [\n 1\n ],\n \"PhoneInnerInterval\": 0,\n \"PhoneCircleInterval\": 0,\n \"NotifyWay\": [\n \"SMS\"\n ],\n \"ReceiverGroups\": [\n 1\n ],\n \"PhoneArriveNotice\": true,\n \"PhoneCircleTimes\": 0,\n \"Type\": \"amp\",\n \"TimeRangeEnd\": \"23:59:59\"\n }\n }\n}",
|
243
|
-
"output": "{\n \"Response\": {\n \"Id\": \"alert-
|
243
|
+
"output": "{\n \"Response\": {\n \"Id\": \"alert-qbc3zefo\",\n \"RequestId\": \"85438a95-6e0d-422e-a099-qbc3zefo\"\n }\n}",
|
244
244
|
"title": "新增告警"
|
245
245
|
}
|
246
246
|
],
|
@@ -323,8 +323,8 @@
|
|
323
323
|
"CreateTKEEdgeCluster": [
|
324
324
|
{
|
325
325
|
"document": "创建边缘计算集群",
|
326
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateTKEEdgeCluster\n<公共请求参数>\n\n{\n \"ClusterName\": \"for_test\",\n \"PodCIDR\": \"172.16.0.0/20\",\n \"VpcId\": \"vpc-
|
327
|
-
"output": "{\n \"Response\": {\n \"ClusterId\": \"cls-
|
326
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: CreateTKEEdgeCluster\n<公共请求参数>\n\n{\n \"ClusterName\": \"for_test\",\n \"PodCIDR\": \"172.16.0.0/20\",\n \"VpcId\": \"vpc-e55paxnt\",\n \"ServiceCIDR\": \"192.168.0.0/18\",\n \"K8SVersion\": \"1.12.4\"\n}",
|
327
|
+
"output": "{\n \"Response\": {\n \"ClusterId\": \"cls-e55paxnt\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
328
328
|
"title": "创建边缘计算集群示例"
|
329
329
|
}
|
330
330
|
],
|
@@ -355,7 +355,7 @@
|
|
355
355
|
"DeleteClusterAsGroups": [
|
356
356
|
{
|
357
357
|
"document": "删除集群伸缩组",
|
358
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DeleteClusterAsGroups\r\n&ClusterId=cls-
|
358
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DeleteClusterAsGroups\r\n&ClusterId=cls-2wds9k9p\r\n&AutoScalingGroupIds.0=asg-2wds9k9p\r\n&KeepInstance=false\r\n&<公共请求参数>",
|
359
359
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
360
360
|
"title": "删除集群伸缩组"
|
361
361
|
}
|
@@ -371,7 +371,7 @@
|
|
371
371
|
"DeleteClusterEndpointVip": [
|
372
372
|
{
|
373
373
|
"document": "",
|
374
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DeleteClusterEndpointVip\r\n&ClusterId=cls-
|
374
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DeleteClusterEndpointVip\r\n&ClusterId=cls-2wds9k9p\r\n&<公共请求参数>",
|
375
375
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
376
376
|
"title": "删除托管集群外网访问端口"
|
377
377
|
}
|
@@ -387,8 +387,8 @@
|
|
387
387
|
"DeleteClusterNodePool": [
|
388
388
|
{
|
389
389
|
"document": "",
|
390
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteClusterNodePool\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
391
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
390
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteClusterNodePool\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"KeepInstance\": \"true\",\n \"NodePoolIds\": [\n \"np-e55paxnt\"\n ]\n}",
|
391
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"d174dcb6-659b-4ab6-9533-e470a7d91e43\"\n }\n}",
|
392
392
|
"title": "删除节点池"
|
393
393
|
}
|
394
394
|
],
|
@@ -411,7 +411,7 @@
|
|
411
411
|
"DeleteClusterVirtualNode": [
|
412
412
|
{
|
413
413
|
"document": "删除超级节点",
|
414
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteClusterVirtualNode\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
414
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteClusterVirtualNode\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"NodeNames\": [\n \"eklet-subnet-e55paxnt-0\"\n ]\n}",
|
415
415
|
"output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\"\n }\n}",
|
416
416
|
"title": "删除超级节点"
|
417
417
|
}
|
@@ -419,7 +419,7 @@
|
|
419
419
|
"DeleteClusterVirtualNodePool": [
|
420
420
|
{
|
421
421
|
"document": "删除超级节点池",
|
422
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteClusterVirtualNodePool\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
422
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteClusterVirtualNodePool\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"NodePoolIds\": [\n \"np-e55paxnt\"\n ]\n}",
|
423
423
|
"output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\"\n }\n}",
|
424
424
|
"title": "删除超级节点池"
|
425
425
|
}
|
@@ -427,7 +427,7 @@
|
|
427
427
|
"DeleteECMInstances": [
|
428
428
|
{
|
429
429
|
"document": "删除ECM节点实例",
|
430
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DeleteECMInstances\r\n&ClusterID=cls-
|
430
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DeleteECMInstances\r\n&ClusterID=cls-2wds9k9p\r\n&EcmIdSet.0=ecm-2wds9k9p\r\n&<公共请求参数>",
|
431
431
|
"output": "{\n \"Response\": {\n \"RequestId\": \"187c16d5-1f53-4e88-b684-077f0c7369b2\"\n }\n}",
|
432
432
|
"title": "删除ECM实例"
|
433
433
|
}
|
@@ -451,7 +451,7 @@
|
|
451
451
|
"DeleteEdgeCVMInstances": [
|
452
452
|
{
|
453
453
|
"document": "删除边缘容器CVM实例",
|
454
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DeleteEdgeCVMInstances\n&ClusterID=cls-
|
454
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DeleteEdgeCVMInstances\n&ClusterID=cls-2wds9k9p\n&CvmIdSet.0=cvm-gdf53454\n&<公共请求参数>",
|
455
455
|
"output": "{\n \"Response\": {\n \"RequestId\": \"187c16d5-1f53-4e88-b684-077f0c7369b2\"\n }\n}",
|
456
456
|
"title": "删除边缘容器CVM实例"
|
457
457
|
}
|
@@ -459,7 +459,7 @@
|
|
459
459
|
"DeleteEdgeClusterInstances": [
|
460
460
|
{
|
461
461
|
"document": "删除边缘集群计算节点",
|
462
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DeleteEdgeClusterInstances\n&ClusterId=cls-
|
462
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DeleteEdgeClusterInstances\n&ClusterId=cls-2wds9k9p\n&InstanceIds.0=cvm-xgj3ca32\n&<公共请求参数>",
|
463
463
|
"output": "{\n \"Response\": {\n \"RequestId\": \"187c16d5-1f53-4e88-b684-077f0c7369b2\"\n }\n}",
|
464
464
|
"title": "删除边缘计算实例"
|
465
465
|
}
|
@@ -491,7 +491,7 @@
|
|
491
491
|
"DeletePrometheusAlertRule": [
|
492
492
|
{
|
493
493
|
"document": "",
|
494
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DeletePrometheusAlertRule\n&InstanceId=prom-
|
494
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DeletePrometheusAlertRule\n&InstanceId=prom-e55paxnt\n&AlertIds.0=a1\n&<公共请求参数>",
|
495
495
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
496
496
|
"title": "删除Prometheus告警规则"
|
497
497
|
}
|
@@ -559,23 +559,23 @@
|
|
559
559
|
}
|
560
560
|
],
|
561
561
|
"DeleteReservedInstances": [
|
562
|
-
{
|
563
|
-
"document": "同时会退还预留券相应的费用。",
|
564
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteReservedInstances\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-epmr2bww\"\n ]\n}",
|
565
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"9d996a6f-5b4a-4e18-8fd1-cb258b2ce21f\"\n }\n}",
|
566
|
-
"title": "退还预留券实例"
|
567
|
-
},
|
568
562
|
{
|
569
563
|
"document": "返回NotFound",
|
570
564
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteReservedInstances\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"not-found\"\n ]\n}",
|
571
565
|
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"ResourceNotFound.NotFound\",\n \"Message\": \"resources:[]string{\\\"not-found\\\"} not found\"\n },\n \"RequestId\": \"e15cab8e-926a-4119-a4e5-208868d6821a\"\n }\n}",
|
572
566
|
"title": "退还一个不存在的资源"
|
567
|
+
},
|
568
|
+
{
|
569
|
+
"document": "同时会退还预留券相应的费用。",
|
570
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DeleteReservedInstances\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-epmr2bww\"\n ]\n}",
|
571
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"9d996a6f-5b4a-4e18-8fd1-cb258b2ce21f\"\n }\n}",
|
572
|
+
"title": "退还预留券实例"
|
573
573
|
}
|
574
574
|
],
|
575
575
|
"DeleteTKEEdgeCluster": [
|
576
576
|
{
|
577
577
|
"document": "删除边缘计算集群",
|
578
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DeleteTKEEdgeCluster\r\n&ClusterId=cls-
|
578
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DeleteTKEEdgeCluster\r\n&ClusterId=cls-2wds9k9p\r\n&<公共请求参数>",
|
579
579
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
580
580
|
"title": "删除边缘计算集群"
|
581
581
|
}
|
@@ -607,7 +607,7 @@
|
|
607
607
|
"DescribeAvailableTKEEdgeVersion": [
|
608
608
|
{
|
609
609
|
"document": "",
|
610
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAvailableTKEEdgeVersion\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
610
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeAvailableTKEEdgeVersion\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\"\n}",
|
611
611
|
"output": "{\n \"Response\": {\n \"Versions\": [\n \"1.14.1\",\n \"1.16.1\"\n ],\n \"EdgeVersionLatest\": \"1.0.1\",\n \"EdgeVersionCurrent\": \"1.0.1\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
612
612
|
"title": "检查当前支持的k8s版本"
|
613
613
|
}
|
@@ -615,8 +615,8 @@
|
|
615
615
|
"DescribeBackupStorageLocations": [
|
616
616
|
{
|
617
617
|
"document": "查询备份仓库信息",
|
618
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupStorageLocations\n<公共请求参数>\n\n{\n \"Names\": [\n \"
|
619
|
-
"output": "{\n \"Response\": {\n \"BackupStorageLocationSet\": [\n {\n \"Name\": \"
|
618
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBackupStorageLocations\n<公共请求参数>\n\n{\n \"Names\": [\n \"tke-backup\"\n ]\n}",
|
619
|
+
"output": "{\n \"Response\": {\n \"BackupStorageLocationSet\": [\n {\n \"Name\": \"tke-backup-1\",\n \"StorageRegion\": \"ap-guangzhou\",\n \"Provider\": \"tencentcloud\",\n \"Bucket\": \"tke-backup-2wds9k9p\",\n \"Path\": \"/data\",\n \"State\": \"Available\",\n \"Message\": \"success\",\n \"LastValidationTime\": \"2023-04-07T03:18:10Z\"\n }\n ],\n \"RequestId\": \"05670c78-3fa8-42c8-87ac-e6b06d0f1f96\"\n }\n}",
|
620
620
|
"title": "查询备份仓库"
|
621
621
|
}
|
622
622
|
],
|
@@ -624,7 +624,7 @@
|
|
624
624
|
{
|
625
625
|
"document": "查询批量修改标签状态",
|
626
626
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeBatchModifyTagsStatus\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-j3w5ehty\"\n}",
|
627
|
-
"output": "{\n \"Response\": {\n \"FailedResources\": [\n {\n \"Resource\": \"qcs::ccs:ap-guangzhou:uin/3356535506:cluster/cls-q505raey\",\n \"Error\": \"err\"\n }\n ],\n \"Status\": \"failed\",\n \"SyncSubresource\": true,\n \"Tags\": [\n {\n \"Key\": \"
|
627
|
+
"output": "{\n \"Response\": {\n \"FailedResources\": [\n {\n \"Resource\": \"qcs::ccs:ap-guangzhou:uin/3356535506:cluster/cls-q505raey\",\n \"Error\": \"err\"\n }\n ],\n \"Status\": \"failed\",\n \"SyncSubresource\": true,\n \"Tags\": [\n {\n \"Key\": \"product\",\n \"Value\": \"tke\"\n }\n ],\n \"RequestId\": \"33483fde-efec-4d3c-8ff6-340d9dbc2d01\"\n }\n}",
|
628
628
|
"title": "查询批量修改标签状态"
|
629
629
|
}
|
630
630
|
],
|
@@ -639,8 +639,8 @@
|
|
639
639
|
"DescribeClusterAsGroups": [
|
640
640
|
{
|
641
641
|
"document": "",
|
642
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterAsGroups\n&ClusterId=cls-
|
643
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"ClusterAsGroupSet\": [\n {\n \"AutoScalingGroupId\": \"
|
642
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterAsGroups\n&ClusterId=cls-2wds9k9p\n&<公共请求参数>",
|
643
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"ClusterAsGroupSet\": [\n {\n \"AutoScalingGroupId\": \"asg-2wds9k9p\",\n \"Status\": \"running\",\n \"IsUnschedulable\": true,\n \"Labels\": [\n {\n \"Name\": \"cluster\",\n \"Value\": \"tke\"\n }\n ],\n \"CreatedTime\": \"2024-05-25 11:00:00\"\n }\n ],\n \"RequestId\": \"82f2fe9c-c5fa-4077-9236-f1341180a696\"\n }\n}",
|
644
644
|
"title": "集群关联的伸缩组列表"
|
645
645
|
}
|
646
646
|
],
|
@@ -648,15 +648,15 @@
|
|
648
648
|
{
|
649
649
|
"document": "查看集群认证配置",
|
650
650
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterAuthenticationOptions\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-7ph3twqe\"\n}",
|
651
|
-
"output": "{\n \"Response\": {\n \"
|
651
|
+
"output": "{\n \"Response\": {\n \"LatestOperationState\": \"\",\n \"OIDCConfig\": {\n \"AutoCreateClientId\": null,\n \"AutoCreateOIDCConfig\": null,\n \"AutoInstallPodIdentityWebhookAddon\": null\n },\n \"RequestId\": \"844ea54c-4271-48a7-b6da-686f44782d91\",\n \"ServiceAccounts\": {\n \"AutoCreateDiscoveryAnonymousAuth\": null,\n \"Issuer\": \"https://kubernetes.default.svc.cluster.local\",\n \"JWKSURI\": null,\n \"UseTKEDefault\": null\n }\n }\n}",
|
652
652
|
"title": "查看集群认证配置"
|
653
653
|
}
|
654
654
|
],
|
655
655
|
"DescribeClusterCommonNames": [
|
656
656
|
{
|
657
657
|
"document": "",
|
658
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterCommonNames\n&ClusterId=cls-65r1c5nu\n&SubaccountUins.0=
|
659
|
-
"output": "{\n \"Response\": {\n \"CommonNames\": [\n {\n \"SubaccountUin\": \"
|
658
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterCommonNames\n&ClusterId=cls-65r1c5nu\n&SubaccountUins.0=1311258476067\n&SubaccountUins.1=1311258476067\n&<公共请求参数>",
|
659
|
+
"output": "{\n \"Response\": {\n \"CommonNames\": [\n {\n \"SubaccountUin\": \"1311258476067\",\n \"CN\": \"1311258476067-1588769189\"\n }\n ],\n \"RequestId\": \"33483fde-efec-4d3c-8ff6-340d9dbc2d01\"\n }\n}",
|
660
660
|
"title": "获取集群子账户CommonName映射关系"
|
661
661
|
}
|
662
662
|
],
|
@@ -679,8 +679,8 @@
|
|
679
679
|
"DescribeClusterEndpointVipStatus": [
|
680
680
|
{
|
681
681
|
"document": "",
|
682
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterEndpointVipStatus\r\n&ClusterId=cls-
|
683
|
-
"output": "{\n \"Response\": {\n \"Status\": \"Creating\",\n \"ErrorMsg\": \"\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
682
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterEndpointVipStatus\r\n&ClusterId=cls-2wds9k9p,\r\n&<公共请求参数>",
|
683
|
+
"output": "{\n \"Response\": {\n \"Status\": \"Creating\",\n \"ErrorMsg\": \"create failed\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
684
684
|
"title": "查询集群开启端口流程状态"
|
685
685
|
}
|
686
686
|
],
|
@@ -688,14 +688,14 @@
|
|
688
688
|
{
|
689
689
|
"document": "获取集群访问地址",
|
690
690
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterEndpoints\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-65r1c5nu\"\n}",
|
691
|
-
"output": "{\n \"Response\": {\n \"CertificationAuthority\": \"\",\n \"ClusterIntranetDomain\": \"cls.domain\",\n \"ClusterExternalDomain\": \"cls.domain\",\n \"SecurityGroup\": \"sg-2quou3re\",\n \"ClusterExternalEndpoint\": \"12.34.56.78\",\n \"ClusterIntranetEndpoint\": \"10.0.0.1\",\n \"ClusterDomain\": \"cls-65r1c5nu.ccs.tencent-cloud.com\",\n \"ClusterExternalACL\": [\n \"10.0.0.0/24\"\n ],\n \"ClusterIntranetSubnetId\": \"subnet-
|
691
|
+
"output": "{\n \"Response\": {\n \"CertificationAuthority\": \"\",\n \"ClusterIntranetDomain\": \"cls.domain\",\n \"ClusterExternalDomain\": \"cls.domain\",\n \"SecurityGroup\": \"sg-2quou3re\",\n \"ClusterExternalEndpoint\": \"12.34.56.78\",\n \"ClusterIntranetEndpoint\": \"10.0.0.1\",\n \"ClusterDomain\": \"cls-65r1c5nu.ccs.tencent-cloud.com\",\n \"ClusterExternalACL\": [\n \"10.0.0.0/24\"\n ],\n \"ClusterIntranetSubnetId\": \"subnet-e55paxnt\",\n \"RequestId\": \"33483fde-efec-4d3c-8ff6-340d9dbc2d01\"\n }\n}",
|
692
692
|
"title": "获取集群访问地址"
|
693
693
|
}
|
694
694
|
],
|
695
695
|
"DescribeClusterExtraArgs": [
|
696
696
|
{
|
697
697
|
"document": "",
|
698
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterExtraArgs\r\n&ClusterId=cls-
|
698
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterExtraArgs\r\n&ClusterId=cls-e55paxnt\r\n&<公共请求参数>",
|
699
699
|
"output": "{\n \"Response\": {\n \"ClusterExtraArgs\": {\n \"KubeAPIServer\": [\n \"max-mutating-requests-inflight=500\"\n ],\n \"KubeControllerManager\": [\n \"kube-api-burst=500\"\n ],\n \"KubeScheduler\": [\n \"kube-api-burst=500\"\n ],\n \"Etcd\": [\n \"election-timeout=500\"\n ]\n },\n \"RequestId\": \"5a489220-1730-43ee-9a59-7d3a752ac750\"\n }\n}",
|
700
700
|
"title": "查询集群自定义参数"
|
701
701
|
}
|
@@ -712,7 +712,7 @@
|
|
712
712
|
{
|
713
713
|
"document": "查询集群实例信息",
|
714
714
|
"input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterInstances\n&ClusterId=cls-7ph3twqe\n&<公共请求参数>",
|
715
|
-
"output": "{\n \"Response\": {\n \"InstanceSet\": [\n {\n \"
|
715
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"InstanceSet\": [\n {\n \"InstanceId\": \"ins-ocd7e1lx\",\n \"LanIP\": \"9.165.0.2\",\n \"InstanceRole\": \"WORKER\",\n \"InstanceState\": \"running\",\n \"NodePoolId\": \"\",\n \"AutoscalingGroupId\": \"\",\n \"FailedReason\": \"=Ready:True\",\n \"DrainStatus\": \"\",\n \"InstanceAdvancedSettings\": {\n \"MountTarget\": \"\",\n \"DockerGraphPath\": \"\",\n \"UserScript\": \"\",\n \"Unschedulable\": 0,\n \"Labels\": [\n {\n \"Name\": \"node-type\",\n \"Value\": \"controller\"\n }\n ],\n \"Taints\": null,\n \"DataDisks\": [\n {\n \"DiskType\": \"CLOUD_PREMIUM\",\n \"FileSystem\": \"ext4\",\n \"DiskSize\": 200,\n \"AutoFormatAndMount\": true,\n \"MountTarget\": \"/var/lib/docker\",\n \"DiskPartition\": \"\"\n }\n ],\n \"ExtraArgs\": {\n \"Kubelet\": []\n },\n \"DesiredPodNumber\": 32,\n \"GPUArgs\": null,\n \"PreStartUserScript\": null\n },\n \"CreatedTime\": \"2021-03-09T08:26:51Z\"\n }\n ],\n \"RequestId\": \"342ea0aa-e45a-41dd-84f5-f7a2929d3fac\"\n }\n}",
|
716
716
|
"title": "查询集群实例信息"
|
717
717
|
}
|
718
718
|
],
|
@@ -743,16 +743,16 @@
|
|
743
743
|
"DescribeClusterNodePoolDetail": [
|
744
744
|
{
|
745
745
|
"document": "查询节点池详情",
|
746
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterNodePoolDetail\n&ClusterId=cls-
|
747
|
-
"output": "{\n \"Response\": {\n \"NodePool\": {\n \"AutoscalingGroupId\": \"asg-
|
746
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterNodePoolDetail\n&ClusterId=cls-e55paxnt\n&NodePoolId=np-e55paxnt\n&<公共请求参数>",
|
747
|
+
"output": "{\n \"Response\": {\n \"NodePool\": {\n \"AutoscalingGroupId\": \"asg-e55paxnt\",\n \"AutoscalingGroupStatus\": \"disabled\",\n \"ClusterInstanceId\": \"cls-e55paxnt\",\n \"DataDisks\": null,\n \"DeletionProtection\": true,\n \"DesiredNodesNum\": 2,\n \"DesiredPodNum\": 64,\n \"DockerGraphPath\": \"\",\n \"ExtraArgs\": {\n \"Kubelet\": []\n },\n \"GPUArgs\": {\n \"CUDA\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CUDNN\": {\n \"DevName\": \"\",\n \"DocName\": \"\",\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CustomDriver\": {\n \"Address\": \"\"\n },\n \"Driver\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"MIGEnable\": false\n },\n \"ImageId\": \"\",\n \"Labels\": [],\n \"Annotations\": [],\n \"LaunchConfigurationId\": \"asc-e55paxnt\",\n \"LifeState\": \"normal\",\n \"MaxNodesNum\": 3,\n \"MinNodesNum\": 0,\n \"Name\": \"tencent\",\n \"NodeCountSummary\": {\n \"AutoscalingAdded\": {\n \"Initializing\": 0,\n \"Joining\": 0,\n \"Normal\": 2,\n \"Total\": 2\n },\n \"ManuallyAdded\": {\n \"Initializing\": 0,\n \"Joining\": 0,\n \"Normal\": 1,\n \"Total\": 1\n }\n },\n \"NodePoolId\": \"np-e55paxnt\",\n \"NodePoolOs\": \"tlinux2.4x86_64\",\n \"OsCustomizeType\": \"GENERAL\",\n \"PreStartUserScript\": \"#!/bin/sh\\ntouch /tmp/before\",\n \"RuntimeConfig\": {\n \"RuntimeType\": \"containerd\",\n \"RuntimeVersion\": \"1.6.9\"\n },\n \"Tags\": null,\n \"Taints\": [],\n \"Unschedulable\": 0,\n \"UserScript\": \"#!/bin/sh\\ntouch /tmp/after\"\n },\n \"RequestId\": \"68b7b080-7c57-4869-bc54-a518b4902b2d\"\n }\n}",
|
748
748
|
"title": "查询节点池详情"
|
749
749
|
}
|
750
750
|
],
|
751
751
|
"DescribeClusterNodePools": [
|
752
752
|
{
|
753
753
|
"document": "查询节点池列表",
|
754
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterNodePools\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
755
|
-
"output": "{\n \"Response\": {\n \"NodePoolSet\": [\n {\n \"AutoscalingGroupId\": \"asg-
|
754
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterNodePools\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\"\n}",
|
755
|
+
"output": "{\n \"Response\": {\n \"NodePoolSet\": [\n {\n \"AutoscalingGroupId\": \"asg-e55paxnt\",\n \"AutoscalingGroupStatus\": \"disabled\",\n \"ClusterInstanceId\": \"cls-e55paxnt\",\n \"DataDisks\": null,\n \"DeletionProtection\": true,\n \"DesiredNodesNum\": 2,\n \"DesiredPodNum\": 64,\n \"DockerGraphPath\": \"\",\n \"ExtraArgs\": {\n \"Kubelet\": []\n },\n \"GPUArgs\": {\n \"CUDA\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CUDNN\": {\n \"DevName\": \"\",\n \"DocName\": \"\",\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"CustomDriver\": {\n \"Address\": \"\"\n },\n \"Driver\": {\n \"Name\": \"\",\n \"Version\": \"\"\n },\n \"MIGEnable\": false\n },\n \"ImageId\": \"\",\n \"Labels\": [],\n \"Annotations\": [],\n \"LaunchConfigurationId\": \"asc-e55paxnt\",\n \"LifeState\": \"normal\",\n \"MaxNodesNum\": 3,\n \"MinNodesNum\": 0,\n \"Name\": \"未命名\",\n \"NodeCountSummary\": {\n \"AutoscalingAdded\": {\n \"Initializing\": 0,\n \"Joining\": 0,\n \"Normal\": 2,\n \"Total\": 2\n },\n \"ManuallyAdded\": {\n \"Initializing\": 0,\n \"Joining\": 0,\n \"Normal\": 1,\n \"Total\": 1\n }\n },\n \"NodePoolId\": \"np-e55paxnt\",\n \"NodePoolOs\": \"tlinux2.4x86_64\",\n \"OsCustomizeType\": \"GENERAL\",\n \"PreStartUserScript\": \"#!/bin/sh\\ntouch /tmp/before\",\n \"RuntimeConfig\": {\n \"RuntimeType\": \"containerd\",\n \"RuntimeVersion\": \"1.6.x\"\n },\n \"Tags\": null,\n \"Taints\": [],\n \"Unschedulable\": 0,\n \"UserScript\": \"#!/bin/sh\\ntouch /tmp/after\"\n }\n ],\n \"RequestId\": \"efb810cb-d5a2-4147-88ec-cd1e28c5202e\",\n \"TotalCount\": 1\n }\n}",
|
756
756
|
"title": "查询节点池列表"
|
757
757
|
}
|
758
758
|
],
|
@@ -792,7 +792,7 @@
|
|
792
792
|
{
|
793
793
|
"document": "",
|
794
794
|
"input": "https://tke.tencentcloudapi.com/?Action=DescribeClusterRouteTables\n&<公共请求参数>",
|
795
|
-
"output": "{\n \"Response\": {\n \"RouteTableSet\": [\n {\n \"VpcId\": \"vpc-
|
795
|
+
"output": "{\n \"Response\": {\n \"RouteTableSet\": [\n {\n \"VpcId\": \"vpc-e55paxnt\",\n \"RouteTableCidrBlock\": \"10.4.0.0/16\",\n \"RouteTableName\": \"MANAGED_CLUSTER\"\n }\n ],\n \"TotalCount\": 1,\n \"RequestId\": \"74883e1b-5901-46de-ae1e-d6e2cf591c5b\"\n }\n}",
|
796
796
|
"title": "查询集群路由表"
|
797
797
|
}
|
798
798
|
],
|
@@ -823,16 +823,16 @@
|
|
823
823
|
"DescribeClusterVirtualNode": [
|
824
824
|
{
|
825
825
|
"document": "查看超级节点列表",
|
826
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterVirtualNode\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
827
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\",\n \"TotalCount\": 1,\n \"Nodes\": [\n {\n \"Name\": \"eklet-subnet-
|
826
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterVirtualNode\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"NodePoolId\": \"np-e55paxnt\"\n}",
|
827
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\",\n \"TotalCount\": 1,\n \"Nodes\": [\n {\n \"Name\": \"eklet-subnet-e55paxnt-0\",\n \"SubnetId\": \"subnet-e55paxnt\",\n \"Phase\": \"Running\",\n \"CreatedTime\": \"2023-10-15T14:30:00Z\"\n }\n ]\n }\n}",
|
828
828
|
"title": "查看超级节点列表"
|
829
829
|
}
|
830
830
|
],
|
831
831
|
"DescribeClusterVirtualNodePools": [
|
832
832
|
{
|
833
833
|
"document": "查看超级节点池列表",
|
834
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterVirtualNodePools\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
835
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\",\n \"NodePoolSet\": [\n {\n \"NodePoolId\": \"np-
|
834
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusterVirtualNodePools\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\"\n}",
|
835
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\",\n \"NodePoolSet\": [\n {\n \"NodePoolId\": \"np-e55paxnt\",\n \"SubnetIds\": [\n \"subnet-e55paxnt\"\n ],\n \"Name\": \"virtual-nodepool\",\n \"LifeState\": \"normal\",\n \"Labels\": [],\n \"Taints\": []\n }\n ],\n \"TotalCount\": 1\n }\n}",
|
836
836
|
"title": "查看超级节点池列表"
|
837
837
|
}
|
838
838
|
],
|
@@ -840,14 +840,14 @@
|
|
840
840
|
{
|
841
841
|
"document": "",
|
842
842
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeClusters\n<公共请求参数>\n\n{}",
|
843
|
-
"output": "{\n \"Response\": {\n \"Clusters\": [\n {\n \"AutoUpgradeClusterLevel\": true,\n \"ClusterDescription\": \"\",\n \"ClusterEtcdNodeNum\": 0,\n \"ClusterId\": \"cls-ayzfpv5c\",\n \"ClusterLevel\": \"L5\",\n \"ClusterMaterNodeNum\": 1,\n \"ClusterName\": \"yctest\",\n \"ClusterNetworkSettings\": {\n \"CiliumMode\": \"\",\n \"ClusterCIDR\": \"10.12.0.0/14\",\n \"Cni\": true,\n \"IgnoreClusterCIDRConflict\": false,\n \"IgnoreServiceCIDRConflict\": false,\n \"Ipv6ServiceCIDR\": \"\",\n \"Ipvs\": false,\n \"IsDualStack\": false,\n \"KubeProxyMode\": \"\",\n \"MaxClusterServiceNum\": 1024,\n \"MaxNodePodNum\": 64,\n \"ServiceCIDR\": \"10.15.252.0/22\",\n \"Subnets\": null,\n \"VpcId\": \"vpc-7modfjc3\"\n },\n \"ClusterNodeNum\": 2,\n \"ClusterOs\": \"tlinux3.1x86_64\",\n \"ClusterStatus\": \"Running\",\n \"ClusterType\": \"MANAGED_CLUSTER\",\n \"ClusterVersion\": \"1.24.4\",\n \"ContainerRuntime\": \"containerd\",\n \"CreatedTime\": \"2022-12-27T07:46:13Z\",\n \"DeletionProtection\": true,\n \"EnableExternalNode\": false,\n \"ImageId\": \"\",\n \"OsCustomizeType\": \"GENERAL\",\n \"ProjectId\": 0,\n \"Property\": \"{\\\"NodeNameType\\\":\\\"lan-ip\\\",\\\"NetworkType\\\":\\\"GR\\\"}\",\n \"QGPUShareEnable\": false,\n \"RuntimeVersion\": \"1.4.3\",\n \"TagSpecification\": null\n }\n ],\n \"RequestId\": \"583e6c4b-ff24-42f8-87f1-37e4c00d81b7\",\n \"TotalCount\": 1\n }\n}",
|
843
|
+
"output": "{\n \"Response\": {\n \"Clusters\": [\n {\n \"AutoUpgradeClusterLevel\": true,\n \"ClusterDescription\": \"tke\",\n \"ClusterEtcdNodeNum\": 0,\n \"ClusterId\": \"cls-ayzfpv5c\",\n \"ClusterLevel\": \"L5\",\n \"ClusterMaterNodeNum\": 1,\n \"ClusterName\": \"yctest\",\n \"ClusterNetworkSettings\": {\n \"CiliumMode\": \"tunnel\",\n \"ClusterCIDR\": \"10.12.0.0/14\",\n \"Cni\": true,\n \"IgnoreClusterCIDRConflict\": false,\n \"IgnoreServiceCIDRConflict\": false,\n \"Ipv6ServiceCIDR\": \"fd00:100::/112\",\n \"Ipvs\": false,\n \"IsDualStack\": false,\n \"KubeProxyMode\": \"ipvs\",\n \"MaxClusterServiceNum\": 1024,\n \"MaxNodePodNum\": 64,\n \"ServiceCIDR\": \"10.15.252.0/22\",\n \"Subnets\": null,\n \"VpcId\": \"vpc-7modfjc3\"\n },\n \"ClusterNodeNum\": 2,\n \"ClusterOs\": \"tlinux3.1x86_64\",\n \"ClusterStatus\": \"Running\",\n \"ClusterType\": \"MANAGED_CLUSTER\",\n \"ClusterVersion\": \"1.24.4\",\n \"ContainerRuntime\": \"containerd\",\n \"CreatedTime\": \"2022-12-27T07:46:13Z\",\n \"DeletionProtection\": true,\n \"EnableExternalNode\": false,\n \"ImageId\": \"img-2wds9k9p\",\n \"OsCustomizeType\": \"GENERAL\",\n \"ProjectId\": 0,\n \"Property\": \"{\\\"NodeNameType\\\":\\\"lan-ip\\\",\\\"NetworkType\\\":\\\"GR\\\"}\",\n \"QGPUShareEnable\": false,\n \"RuntimeVersion\": \"1.4.3\",\n \"TagSpecification\": null\n }\n ],\n \"RequestId\": \"583e6c4b-ff24-42f8-87f1-37e4c00d81b7\",\n \"TotalCount\": 1\n }\n}",
|
844
844
|
"title": "查询集群列表"
|
845
845
|
}
|
846
846
|
],
|
847
847
|
"DescribeECMInstances": [
|
848
848
|
{
|
849
849
|
"document": "获取实例相关信息",
|
850
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DescribeECMInstances\r\n&ClusterID=cls-
|
850
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DescribeECMInstances\r\n&ClusterID=cls-e55paxnt\r\n&<公共请求参数>",
|
851
851
|
"output": "{\n \"Response\": {\n \"RequestId\": \"187c16d5-1f53-4e88-b684-077f0c7369b2\",\n \"TotalCount\": 2,\n \"InstanceInfoSet\": [\n \"info1\",\n \"info2\"\n ]\n }\n}",
|
852
852
|
"title": "获取实例相关信息"
|
853
853
|
}
|
@@ -872,7 +872,7 @@
|
|
872
872
|
{
|
873
873
|
"document": "",
|
874
874
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEKSContainerInstanceEvent\n<公共请求参数>\n\n{\n \"EksCiId\": \"eksci-iu09upos\"\n}",
|
875
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"51d9ea5a-6e9e-4384-88da-
|
875
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"51d9ea5a-6e9e-4384-88da-84229e133146\",\n \"EksCiId\": \"eksci-iu09upos\",\n \"Events\": [\n {\n \"PodName\": \"eksci-iu09upos\",\n \"Reason\": \"Started\",\n \"Type\": \"Normal\",\n \"Count\": 1,\n \"FirstTimestamp\": \"2021-06-24 03:32:43.424977053 +0000 UTC\",\n \"LastTimestamp\": \"2021-06-24 03:32:43.424977053 +0000 UTC\",\n \"Message\": \"Started container simple-cputest\"\n },\n {\n \"PodName\": \"eksci-iu09upos\",\n \"Reason\": \"Created\",\n \"Type\": \"Normal\",\n \"Count\": 1,\n \"FirstTimestamp\": \"2021-06-24 03:32:43.362703322 +0000 UTC\",\n \"LastTimestamp\": \"2021-06-24 03:32:43.362703322 +0000 UTC\",\n \"Message\": \"Created container simple-cputest\"\n },\n {\n \"PodName\": \"eksci-iu09upos\",\n \"Reason\": \"Pulled\",\n \"Type\": \"Normal\",\n \"Count\": 1,\n \"FirstTimestamp\": \"2021-06-24 03:32:40.841296385 +0000 UTC\",\n \"LastTimestamp\": \"2021-06-24 03:32:40.841296385 +0000 UTC\",\n \"Message\": \"Successfully pulled image \\\"ccr.ccs.tencentyun.com/ploto/cputest:1.4\\\" in 11.508506091s\"\n },\n {\n \"PodName\": \"eksci-iu09upos\",\n \"Reason\": \"Pulling\",\n \"Type\": \"Normal\",\n \"Count\": 1,\n \"FirstTimestamp\": \"2021-06-24 03:32:29.332774654 +0000 UTC\",\n \"LastTimestamp\": \"2021-06-24 03:32:29.332774654 +0000 UTC\",\n \"Message\": \"Pulling image \\\"ccr.ccs.tencentyun.com/ploto/cputest:1.4\\\"\"\n },\n {\n \"PodName\": \"eksci-iu09upos\",\n \"Reason\": \"NodeAllocatableEnforced\",\n \"Type\": \"Normal\",\n \"Count\": 1,\n \"FirstTimestamp\": \"2021-06-24 03:32:28.751352741 +0000 UTC\",\n \"LastTimestamp\": \"2021-06-24 03:32:28.751352741 +0000 UTC\",\n \"Message\": \"Updated Node Allocatable limit across pods\"\n }\n ]\n }\n}",
|
876
876
|
"title": "查询容器实例的事件"
|
877
877
|
}
|
878
878
|
],
|
@@ -888,7 +888,7 @@
|
|
888
888
|
{
|
889
889
|
"document": "",
|
890
890
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEKSContainerInstances\n<公共请求参数>\n\n{\n \"EksCiIds\": [\n \"eksci-6mr3o7eu\"\n ]\n}",
|
891
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"34d9ea5a-6e9e-4384-88da-84229e133412\",\n \"TotalCount\": 1,\n \"EksCis\": [\n {\n \"EksCiId\": \"eksci-iu09upos\",\n \"EksCiName\": \"未命名\",\n \"Memory\": 2,\n \"Cpu\": 1,\n \"SecurityGroupIds\": [\n \"sg-
|
891
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"34d9ea5a-6e9e-4384-88da-84229e133412\",\n \"TotalCount\": 1,\n \"EksCis\": [\n {\n \"EksCiId\": \"eksci-iu09upos\",\n \"EksCiName\": \"未命名\",\n \"Memory\": 2,\n \"Cpu\": 1,\n \"SecurityGroupIds\": [\n \"sg-1cghduvc\"\n ],\n \"RestartPolicy\": \"Always\",\n \"VpcId\": \"vpc-1cghduvc\",\n \"SubnetId\": \"subnet-1cghduvc\",\n \"Status\": \"Running\",\n \"CreationTime\": \"2021-06-24 03:32:02 +0000 UTC\",\n \"SucceededTime\": \"2021-06-24 11:32:21 +0000 UTC\",\n \"Containers\": [\n {\n \"Image\": \"ccr.ccs.tencentyun.com/ploto/cputest:1.4\",\n \"Name\": \"simple-cputest\",\n \"Cpu\": 0,\n \"Memory\": 0,\n \"Commands\": [\n \"sleep\"\n ],\n \"Args\": [\n \"100000\"\n ],\n \"EnvironmentVars\": [],\n \"CurrentState\": {\n \"StartTime\": \"2021-06-24 03:32:43.420750215 +0000 UTC\",\n \"State\": \"running\",\n \"FinishTime\": \"0001-01-01 00:00:00 +0000 UTC\",\n \"ExitCode\": 0,\n \"Reason\": \"\",\n \"Message\": \"\",\n \"RestartCount\": 0\n },\n \"RestartCount\": 0,\n \"WorkingDir\": \"\",\n \"ReadinessProbe\": null,\n \"VolumeMounts\": null,\n \"GpuLimit\": null,\n \"LivenessProbe\": null,\n \"SecurityContext\": null\n }\n ],\n \"InitContainers\": null,\n \"EksCiVolume\": {\n \"CbsVolumes\": null,\n \"NfsVolumes\": null\n },\n \"SecurityContext\": null,\n \"PrivateIp\": \"10.1.0.1\",\n \"EipAddress\": \"\",\n \"CpuType\": \"amd,intel\",\n \"GpuType\": \"\",\n \"GpuCount\": 0,\n \"CamRoleName\": \"\",\n \"AutoCreatedEipId\": \"eni-l6gtb5p0\",\n \"PersistStatus\": false\n }\n ]\n }\n}",
|
892
892
|
"title": "查询容器实例"
|
893
893
|
}
|
894
894
|
],
|
@@ -896,14 +896,14 @@
|
|
896
896
|
{
|
897
897
|
"document": "",
|
898
898
|
"input": "https://tke.tencentcloudapi.com/?Action=DescribeEdgeAvailableExtraArgs\n&ClusterVersion=1.12.4\n&<公共请求参数>",
|
899
|
-
"output": "{\n \"Response\": {\n \"ClusterVersion\": \"
|
899
|
+
"output": "{\n \"Response\": {\n \"ClusterVersion\": \"1.12.4\",\n \"AvailableExtraArgs\": {\n \"KubeAPIServer\": [\n {\n \"Name\": \"enable-admission-plugins\",\n \"Type\": \"string\",\n \"Usage\": \"Comma-delimited list of admission plugins to enable\",\n \"Default\": \"NodeRestriction\",\n \"Constraint\": \"Must be a valid admission plugin name\"\n }\n ],\n \"KubeControllerManager\": [\n {\n \"Name\": \"node-cidr-mask-size\",\n \"Type\": \"int\",\n \"Usage\": \"Mask size for node CIDR in IPv4 or IPv6 networks\",\n \"Default\": \"24\",\n \"Constraint\": \"Must be a valid CIDR mask size\"\n }\n ],\n \"KubeScheduler\": [\n {\n \"Name\": \"scheduler-name\",\n \"Type\": \"string\",\n \"Usage\": \"Name of the scheduler to use\",\n \"Default\": \"default-scheduler\",\n \"Constraint\": \"Must be a valid scheduler name\"\n }\n ],\n \"Kubelet\": [\n {\n \"Name\": \"max-pods\",\n \"Type\": \"int\",\n \"Usage\": \"Maximum number of pods per node\",\n \"Default\": \"110\",\n \"Constraint\": \"Must be a positive integer\"\n }\n ]\n },\n \"RequestId\": \"d174dcb6-659b-4ab6-9533-e470a7d91e43\"\n }\n}",
|
900
900
|
"title": "查询集群可用的自定义参数"
|
901
901
|
}
|
902
902
|
],
|
903
903
|
"DescribeEdgeCVMInstances": [
|
904
904
|
{
|
905
905
|
"document": "获取边缘容器CVM实例相关信息",
|
906
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DescribeEdgeCVMInstances\n&ClusterID=cls-
|
906
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DescribeEdgeCVMInstances\n&ClusterID=cls-e55paxnt\n&<公共请求参数>",
|
907
907
|
"output": "{\n \"Response\": {\n \"RequestId\": \"187c16d5-1f53-4e88-b684-077f0c7369b2\",\n \"TotalCount\": 2,\n \"InstanceInfoSet\": [\n \"info1\",\n \"info2\"\n ]\n }\n}",
|
908
908
|
"title": "获取边缘容器CVM实例相关信息"
|
909
909
|
}
|
@@ -911,7 +911,7 @@
|
|
911
911
|
"DescribeEdgeClusterExtraArgs": [
|
912
912
|
{
|
913
913
|
"document": "",
|
914
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DescribeEdgeClusterExtraArgs\n&ClusterId=cls-
|
914
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DescribeEdgeClusterExtraArgs\n&ClusterId=cls-e55paxnt\n&<公共请求参数>",
|
915
915
|
"output": "{\n \"Response\": {\n \"ClusterExtraArgs\": {\n \"KubeAPIServer\": [\n \"max-mutating-requests-inflight=500\"\n ],\n \"KubeControllerManager\": [\n \"kube-api-burst=500\"\n ],\n \"KubeScheduler\": [\n \"kube-api-burst=500\"\n ]\n },\n \"RequestId\": \"5a489220-1730-43ee-9a59-7d3a752ac750\"\n }\n}",
|
916
916
|
"title": "查询集群自定义参数"
|
917
917
|
}
|
@@ -919,7 +919,7 @@
|
|
919
919
|
"DescribeEdgeClusterInstances": [
|
920
920
|
{
|
921
921
|
"document": "查询边缘计算集群的节点信息",
|
922
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DescribeEdgeClusterInstances\r\n&ClusterID=cls-
|
922
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DescribeEdgeClusterInstances\r\n&ClusterID=cls-e55paxnt\r\n&Limit=5\r\n&Offset=0\r\n&<公共请求参数>",
|
923
923
|
"output": "{\n \"Response\": {\n \"TotalCount\": 0,\n \"InstanceInfoSet\": \"csm-1\",\n \"RequestId\": \"a43dg678fhsctyh5\"\n }\n}",
|
924
924
|
"title": "查询边缘计算集群的节点信息"
|
925
925
|
}
|
@@ -927,7 +927,7 @@
|
|
927
927
|
"DescribeEdgeClusterUpgradeInfo": [
|
928
928
|
{
|
929
929
|
"document": "",
|
930
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEdgeClusterUpgradeInfo\n<公共请求参数>\n\n{\n \"EdgeVersion\": \"1.0.2\",\n \"ClusterId\": \"cls-
|
930
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEdgeClusterUpgradeInfo\n<公共请求参数>\n\n{\n \"EdgeVersion\": \"1.0.2\",\n \"ClusterId\": \"cls-e55paxnt\"\n}",
|
931
931
|
"output": "{\n \"Response\": {\n \"RequestId\": \"67a0dd10-ef28-49a1-8834-7a5fa7a9bac0\",\n \"EdgeVersionCurrent\": \"1.1.0\",\n \"ComponentVersion\": \"{\\\"hyperkube\\\":{},\\\"kube-proxy\\\":{},\\\"coredns\\\":{\\\"InitImageName\\\":\\\"\\\",\\\"InitImageVersion\\\":\\\"\\\",\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"1.6.7\\\"},\\\"flannel\\\":{\\\"InitImageName\\\":\\\"\\\",\\\"InitImageVersion\\\":\\\"\\\",\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"v0.12.0-edge-2.0\\\"},\\\"gpu-plugin\\\":{\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"v0.9.0\\\"},\\\"site-manager\\\":{\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"v0.6.0\\\"},\\\"application-grid-controller\\\":{\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"1.21.1\\\"},\\\"application-grid-wrapper\\\":{\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"1.20.3\\\"},\\\"tunnel\\\":{\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"v0.8.0\\\"},\\\"edge-health\\\":{\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"\\\"},\\\"edge-health-admission\\\":{\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"\\\"},\\\"event\\\":{\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"\\\"},\\\"griddaemon\\\":{\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"\\\"},\\\"metric-server\\\":{\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"\\\"},\\\"standalone-metrics\\\":{\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"\\\"},\\\"hpa-metrics-server\\\":{\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"\\\"},\\\"tke-monitor-agent\\\":{\\\"ImageName\\\":\\\"\\\",\\\"ImageVersion\\\":\\\"20220714-3b31e8d2\\\"}}\",\n \"RegistryPrefix\": \"\",\n \"ClusterUpgradeStatus\": \"updating\",\n \"ClusterUpgradeStatusReason\": \"component application-grid-controller:Back-off pulling image \\\"ccr.ccs.tencentyun.com/tkeedge/application-grid-controller:1.21.1-x\\\"\"\n }\n}",
|
932
932
|
"title": "查询边缘集群升级信息"
|
933
933
|
}
|
@@ -935,7 +935,7 @@
|
|
935
935
|
"DescribeEdgeLogSwitches": [
|
936
936
|
{
|
937
937
|
"document": "边缘集群日志开关",
|
938
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEdgeLogSwitches\n<公共请求参数>\n\n{\n \"ClusterIds\": [\n \"cls-
|
938
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEdgeLogSwitches\n<公共请求参数>\n\n{\n \"ClusterIds\": [\n \"cls-e55paxnt\",\n \"cls-e55paxnt\"\n ]\n}",
|
939
939
|
"output": "{\n \"Response\": {\n \"SwitchSet\": [\n \"logsetid: 8hhy32hru27\"\n ],\n \"RequestId\": \"iu3u89fvfsyr37819hi9\"\n }\n}",
|
940
940
|
"title": "查询开关列表接口示例"
|
941
941
|
}
|
@@ -943,7 +943,7 @@
|
|
943
943
|
"DescribeEksContainerInstanceLog": [
|
944
944
|
{
|
945
945
|
"document": "查询容器实例中容器日志",
|
946
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEksContainerInstanceLog\n<公共请求参数>\n\n{\n \"EksCiId\": \"eksci-
|
946
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEksContainerInstanceLog\n<公共请求参数>\n\n{\n \"EksCiId\": \"eksci-1cghduvc\",\n \"Tail\": 500,\n \"Previous\": false,\n \"ContainerName\": \"simple-cputest\"\n}",
|
947
947
|
"output": "{\n \"Response\": {\n \"ContainerName\": \"simple-cputest\",\n \"LogContent\": \"hello world\",\n \"RequestId\": \"5f792091-66a7-40fc-8043-4d8b9537faiu\"\n }\n}",
|
948
948
|
"title": "查询容器实例中容器日志"
|
949
949
|
}
|
@@ -951,7 +951,7 @@
|
|
951
951
|
"DescribeEnableVpcCniProgress": [
|
952
952
|
{
|
953
953
|
"document": "用户调用EnableVpcCniNetworkType给GR集群附加vpc-cni网络能力,会创建一个异步任务。本接口用于查询该异步任务的进度,查询到任务进度失败。",
|
954
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEnableVpcCniProgress\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
954
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeEnableVpcCniProgress\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\"\n}",
|
955
955
|
"output": "{\n \"Response\": {\n \"Status\": \"Failed\",\n \"ErrorMessage\": \"ipamd has not been installed yet\",\n \"RequestId\": \"defc0237-d413-4079-9faa-7f3ff928d224\"\n }\n}",
|
956
956
|
"title": "查看开启vpc-cni的任务进度,查询到任务失败"
|
957
957
|
}
|
@@ -976,7 +976,7 @@
|
|
976
976
|
{
|
977
977
|
"document": "",
|
978
978
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeExternalNodeSupportConfig\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-lm91rql0\"\n}",
|
979
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"4c6c63c7-b23e-4896-bf3b-
|
979
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"4c6c63c7-b23e-4896-bf3b-6bc44d\",\n \"ClusterCIDR\": \"172.22.0.0/16\",\n \"NetworkType\": \"CiliumVXLan\",\n \"SubnetId\": \"subnet-e55paxnt\",\n \"Enabled\": true,\n \"AS\": \"1001\",\n \"SwitchIP\": \"1.1.1.1\",\n \"Status\": \"Initializing\",\n \"Proxy\": \"1.1.1.1\",\n \"Master\": \"1.1.1.1\",\n \"Progress\": [\n {\n \"EndAt\": \"2021-11-05T12:40:51Z\",\n \"Message\": \"\",\n \"Name\": \"EnsureNodeMasterCommunicate\",\n \"StartAt\": \"2021-11-05T12:40:45Z\",\n \"Status\": \"success\"\n },\n {\n \"EndAt\": \"2021-11-05T12:40:52Z\",\n \"Message\": \"\",\n \"Name\": \"EnsureInClusterAccess\",\n \"StartAt\": \"2021-11-05T12:40:51Z\",\n \"Status\": \"success\"\n },\n {\n \"EndAt\": \"2021-11-05T12:40:57Z\",\n \"Message\": \"\",\n \"Name\": \"EnsureExternalNodeProxy\",\n \"StartAt\": \"2021-11-05T12:40:52Z\",\n \"Status\": \"success\"\n },\n {\n \"EndAt\": \"2021-11-05T12:40:57Z\",\n \"Message\": \"\",\n \"Name\": \"EnsureBootStrap\",\n \"StartAt\": \"2021-11-05T12:40:57Z\",\n \"Status\": \"success\"\n },\n {\n \"EndAt\": \"2021-11-05T12:40:57Z\",\n \"Message\": \"\",\n \"Name\": \"EnsureAdmissionController\",\n \"StartAt\": \"2021-11-05T12:40:57Z\",\n \"Status\": \"success\"\n },\n {\n \"EndAt\": \"2021-11-05T12:41:00Z\",\n \"Message\": \"\",\n \"Name\": \"InstallUnderlayCilium\",\n \"StartAt\": \"2021-11-05T12:40:57Z\",\n \"Status\": \"success\"\n },\n {\n \"EndAt\": \"2021-11-05T12:41:00Z\",\n \"Message\": \"\",\n \"Name\": \"CompleteEnable\",\n \"StartAt\": \"2021-11-05T12:41:00Z\",\n \"Status\": \"success\"\n }\n ],\n \"FailedReason\": \"fail\"\n }\n}",
|
980
980
|
"title": "查看开启第三方节点池配置信息"
|
981
981
|
}
|
982
982
|
],
|
@@ -992,7 +992,7 @@
|
|
992
992
|
{
|
993
993
|
"document": "",
|
994
994
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeImageCaches\n<公共请求参数>\n\n{\n \"ImageCacheIds\": [\n \"imc-xxx\"\n ],\n \"Offset\": 0,\n \"Limit\": 10\n}",
|
995
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"6704dc99-e331-4055-8af9-
|
995
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"6704dc99-e331-4055-8af9-1cghduvc\",\n \"TotalCount\": 1,\n \"ImageCaches\": [\n {\n \"ImageCacheId\": \"imc-xxx\",\n \"ImageCacheName\": \"imc-nginx\",\n \"ImageCacheSize\": 20,\n \"Status\": \"Ready\",\n \"Images\": [\n \"nginx\"\n ],\n \"CreationTime\": \"2021-12-06 22:52:24\",\n \"ExpireDateTime\": \"\",\n \"Events\": [\n {\n \"ImageCacheId\": \"imc-xxx\",\n \"Reason\": \"SnapCreated\",\n \"Type\": \"Normal\",\n \"FirstTimestamp\": \"2021-12-06 15:10:43\",\n \"LastTimestamp\": \"2021-12-06 15:10:43\",\n \"Message\": \"Snap snap-xxx created\"\n },\n {\n \"ImageCacheId\": \"imc-xxx\",\n \"Reason\": \"DiskCreated\",\n \"Type\": \"Normal\",\n \"FirstTimestamp\": \"2021-12-06 15:03:24\",\n \"LastTimestamp\": \"2021-12-06 15:03:24\",\n \"Message\": \"Disk disk-xxx created\"\n },\n {\n \"ImageCacheId\": \"imc-xxx\",\n \"Reason\": \"EksciCreated\",\n \"Type\": \"Normal\",\n \"FirstTimestamp\": \"2021-12-06 15:03:24\",\n \"LastTimestamp\": \"2021-12-06 15:03:24\",\n \"Message\": \"Eksci eksci-xxx created\"\n }\n ],\n \"LastMatchedTime\": \"2021-12-07 21:30:15\",\n \"SnapshotId\": \"snap-xxx\"\n }\n ]\n }\n}",
|
996
996
|
"title": "查询镜像缓存信息"
|
997
997
|
}
|
998
998
|
],
|
@@ -1029,12 +1029,6 @@
|
|
1029
1029
|
}
|
1030
1030
|
],
|
1031
1031
|
"DescribePodChargeInfo": [
|
1032
|
-
{
|
1033
|
-
"document": " 需要同时指定 Namespace 和 Name",
|
1034
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePodChargeInfo\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-s180xq54\",\n \"Namespace\": \"default\"\n}",
|
1035
|
-
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError.Param\",\n \"Message\": \"Namespace and Name must be set\"\n },\n \"RequestId\": \"e9de622d-82fc-4aa1-a32c-f2679bc51a9e\"\n }\n}",
|
1036
|
-
"title": "只指定 Namespace"
|
1037
|
-
},
|
1038
1032
|
{
|
1039
1033
|
"document": " 需要同时输入 Namespace 和 Name,或者 Uid",
|
1040
1034
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePodChargeInfo\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-s180xq54\"\n}",
|
@@ -1042,16 +1036,22 @@
|
|
1042
1036
|
"title": "不输入必要参数"
|
1043
1037
|
},
|
1044
1038
|
{
|
1045
|
-
"document": "
|
1046
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePodChargeInfo\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-s180xq54\",\n \"Namespace\": \"default\"
|
1047
|
-
"output": "{\n \"Response\": {\n \"
|
1048
|
-
"title": "
|
1039
|
+
"document": " 需要同时指定 Namespace 和 Name",
|
1040
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePodChargeInfo\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-s180xq54\",\n \"Namespace\": \"default\"\n}",
|
1041
|
+
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError.Param\",\n \"Message\": \"Namespace and Name must be set\"\n },\n \"RequestId\": \"e9de622d-82fc-4aa1-a32c-f2679bc51a9e\"\n }\n}",
|
1042
|
+
"title": "只指定 Namespace"
|
1049
1043
|
},
|
1050
1044
|
{
|
1051
1045
|
"document": "输入多个Uid来查询",
|
1052
1046
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePodChargeInfo\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-0x51a7qw\",\n \"Uids\": [\n \"6c4022b4-288c-449e-b50f-ae06d91dd48e\",\n \"a49edc4a-b316-45b0-8ce4-8f23f93a27c7\"\n ]\n}",
|
1053
1047
|
"output": "{\n \"Response\": {\n \"ChargeInfoSet\": [\n {\n \"ChargeType\": \"POSTPAID_BY_HOUR\",\n \"Cpu\": 2,\n \"Memory\": 4,\n \"Name\": \"csi-cbs-controller-6678658c57-hhbvw\",\n \"Namespace\": \"kube-system\",\n \"StartTime\": \"2024-04-17 00:08:15\",\n \"Type\": \"intel\",\n \"Uid\": \"6c4022b4-288c-449e-b50f-ae06d91dd48e\"\n },\n {\n \"ChargeType\": \"NO_CHARGE\",\n \"Cpu\": 0.25,\n \"Memory\": 0.5,\n \"Name\": \"coredns-56555dd999-ntc6g\",\n \"Namespace\": \"kube-system\",\n \"StartTime\": \"2024-04-17 00:08:11\",\n \"Type\": \"intel\",\n \"Uid\": \"a49edc4a-b316-45b0-8ce4-8f23f93a27c7\"\n }\n ],\n \"RequestId\": \"9fe5a6b6-ad87-426d-b619-b600d0a18f23\"\n }\n}",
|
1054
1048
|
"title": "查询多个运行中的Pod计费信息"
|
1049
|
+
},
|
1050
|
+
{
|
1051
|
+
"document": "同时指定了 Namespace 和 Name",
|
1052
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribePodChargeInfo\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-s180xq54\",\n \"Namespace\": \"default\",\n \"Name\": \"nginx-c4cd9685f-m58ts\"\n}",
|
1053
|
+
"output": "{\n \"Response\": {\n \"ChargeInfoSet\": [\n {\n \"ChargeType\": \"POSTPAID_BY_HOUR\",\n \"Cpu\": 1,\n \"Memory\": 1,\n \"Name\": \"nginx-c4cd9685f-m58ts\",\n \"Namespace\": \"default\",\n \"StartTime\": \"2024-03-26 00:10:38\",\n \"Type\": \"intel\",\n \"Uid\": \"4df5eb56-df50-4bd4-b84e-8c3f7fdf7ab8\"\n }\n ],\n \"RequestId\": \"9b400838-e679-486f-a7d3-854d5040a6e6\"\n }\n}",
|
1054
|
+
"title": "通过 Namespace 和 Name 查询"
|
1055
1055
|
}
|
1056
1056
|
],
|
1057
1057
|
"DescribePodDeductionRate": [
|
@@ -1177,8 +1177,8 @@
|
|
1177
1177
|
"DescribePrometheusInstance": [
|
1178
1178
|
{
|
1179
1179
|
"document": "查看托管prometheus实例详情",
|
1180
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DescribePrometheusInstance\n&InstanceId=prom-
|
1181
|
-
"output": "{\n \"Response\": {\n \"QueryAddress\": \"http://10.0.0.1:9090\",\n \"VpcId\": \"vpc-
|
1180
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DescribePrometheusInstance\n&InstanceId=prom-e55paxnt\n&<公共请求参数>",
|
1181
|
+
"output": "{\n \"Response\": {\n \"QueryAddress\": \"http://10.0.0.1:9090\",\n \"VpcId\": \"vpc-e55paxnt\",\n \"Name\": \"tps-test\",\n \"InstanceId\": \"prom-e55paxnt\",\n \"COSBucket\": \"prometheus-prom-e55paxnt-data-qbc3zefo\",\n \"AlertManagerUrl\": \"\",\n \"Grafana\": {\n \"Domain\": \"\",\n \"Internet\": \"close\",\n \"Enabled\": true,\n \"AdminUser\": \"admin\",\n \"Address\": \"http://10.0.0.2\"\n },\n \"RequestId\": \"55054791-f4ff-4c33-afd2-dsahdjahdahada\",\n \"SubnetId\": \"subnet-dsadsada\"\n }\n}",
|
1182
1182
|
"title": "查看托管prometheus实例详情"
|
1183
1183
|
}
|
1184
1184
|
],
|
@@ -1339,24 +1339,24 @@
|
|
1339
1339
|
"DescribeRouteTableConflicts": [
|
1340
1340
|
{
|
1341
1341
|
"document": "",
|
1342
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRouteTableConflicts\n<公共请求参数>\n\n{\n \"RouteTableCidrBlock\": \"10.4.0.0/16\",\n \"VpcId\": \"vpc-
|
1343
|
-
"output": "{\n \"Response\": {\n \"HasConflict\": false,\n \"RouteTableConflictSet\": [\n {\n \"RouteTableType\": \"CcsCluster\",\n \"RouteTableCidrBlock\": \"172.20.0.0/16\",\n \"RouteTableName\": \"tke-test\",\n \"RouteTableId\": \"cls-
|
1342
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeRouteTableConflicts\n<公共请求参数>\n\n{\n \"RouteTableCidrBlock\": \"10.4.0.0/16\",\n \"VpcId\": \"vpc-e55paxnt\"\n}",
|
1343
|
+
"output": "{\n \"Response\": {\n \"HasConflict\": false,\n \"RouteTableConflictSet\": [\n {\n \"RouteTableType\": \"CcsCluster\",\n \"RouteTableCidrBlock\": \"172.20.0.0/16\",\n \"RouteTableName\": \"tke-test\",\n \"RouteTableId\": \"cls-e55paxnt\"\n }\n ],\n \"RequestId\": \"74883e1b-5901-46de-ae1e-d6e2cf591c5b\"\n }\n}",
|
1344
1344
|
"title": "查询路由表冲突列表"
|
1345
1345
|
}
|
1346
1346
|
],
|
1347
1347
|
"DescribeSupportedRuntime": [
|
1348
1348
|
{
|
1349
1349
|
"document": "",
|
1350
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DescribeSupportedRuntime\n&K8sVersion=
|
1351
|
-
"output": "{\n \"Response\": {\n \"OptionalRuntimes\": [\n {\n \"RuntimeType\": \"docker\",\n \"RuntimeVersions\": [\n \"1.12.4\"\n ]\n }\n ],\n \"RequestId\": \"207bd1e4-30de-4fac-b4fb-f9b15e2b4864\"\n }\n}",
|
1350
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DescribeSupportedRuntime\n&K8sVersion=1.20.4\n&<公共请求参数>",
|
1351
|
+
"output": "{\n \"Response\": {\n \"OptionalRuntimes\": [\n {\n \"RuntimeType\": \"docker\",\n \"DefaultVersion\": \"1.12.4\",\n \"RuntimeVersions\": [\n \"1.12.4\"\n ]\n }\n ],\n \"RequestId\": \"207bd1e4-30de-4fac-b4fb-f9b15e2b4864\"\n }\n}",
|
1352
1352
|
"title": "获取运行时版本信息"
|
1353
1353
|
}
|
1354
1354
|
],
|
1355
1355
|
"DescribeTKEEdgeClusterCredential": [
|
1356
1356
|
{
|
1357
1357
|
"document": "获取边缘集群的认证信息,其中包含kubeconfig文件",
|
1358
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DescribeTKEEdgeClusterCredential\n&ClusterId=cls-
|
1359
|
-
"output": "{\n \"Response\": {\n \"Addresses\": [\n {\n \"Type\": \"advertise\",\n \"Ip\": \"169.254.128.200\",\n \"Port\": 60002\n },\n {\n \"Type\": \"public\",\n \"Ip\": \"100.98.109.15\",\n \"Port\": 11126\n }\n ],\n \"Credential\": {\n \"CACert\": \"LS0tLS1CRUdJTiBDRVJUSUZJQ0FULQo=\",\n \"Token\": \"WBnCe69iqui0HuEZJ0Yac2hvwxQ1jG0j\"\n },\n \"CoreDns\": \"yes\",\n \"HealthRegion\": \"yes\",\n \"Health\": \"yes\",\n \"UnitCluster\": \"yes\",\n \"GridDaemon\": \"yes\",\n \"PublicLB\": {\n \"Enabled\": true,\n \"AllowFromCidrs\": [\n \"160/254.0.0/16\"\n ]\n },\n \"InternalLB\": {\n \"SubnetId\": [\n \"vpc-
|
1358
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DescribeTKEEdgeClusterCredential\n&ClusterId=cls-2wds9k9p\n&<公共请求参数>",
|
1359
|
+
"output": "{\n \"Response\": {\n \"Addresses\": [\n {\n \"Type\": \"advertise\",\n \"Ip\": \"169.254.128.200\",\n \"Port\": 60002\n },\n {\n \"Type\": \"public\",\n \"Ip\": \"100.98.109.15\",\n \"Port\": 11126\n }\n ],\n \"Credential\": {\n \"CACert\": \"LS0tLS1CRUdJTiBDRVJUSUZJQ0FULQo=\",\n \"Token\": \"WBnCe69iqui0HuEZJ0Yac2hvwxQ1jG0j\"\n },\n \"CoreDns\": \"yes\",\n \"HealthRegion\": \"yes\",\n \"Health\": \"yes\",\n \"UnitCluster\": \"yes\",\n \"GridDaemon\": \"yes\",\n \"PublicLB\": {\n \"Enabled\": true,\n \"AllowFromCidrs\": [\n \"160/254.0.0/16\"\n ]\n },\n \"InternalLB\": {\n \"SubnetId\": [\n \"vpc-2wds9k9p\"\n ],\n \"Enabled\": true\n },\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
1360
1360
|
"title": "获取边缘计算集群的接入认证信息"
|
1361
1361
|
}
|
1362
1362
|
],
|
@@ -1372,23 +1372,23 @@
|
|
1372
1372
|
{
|
1373
1373
|
"document": "查询集群列表,用于获取集群列表",
|
1374
1374
|
"input": "https://tke.tencentcloudapi.com/?Action=DescribeTKEEdgeClusters\r\n&<公共请求参数>",
|
1375
|
-
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Clusters\": [\n {\n \"ClusterId\": \"
|
1375
|
+
"output": "{\n \"Response\": {\n \"TotalCount\": 1,\n \"Clusters\": [\n {\n \"ClusterId\": \"cls-j0hy001q\",\n \"ClusterName\": \"production-cluster\",\n \"VpcId\": \"vpc-j0hy001q\",\n \"PodCIDR\": \"10.244.0.0/16\",\n \"ServiceCIDR\": \"10.96.0.0/12\",\n \"K8SVersion\": \"1.24.4\",\n \"Status\": \"Running\",\n \"ClusterDesc\": \"Primary production Kubernetes cluster\",\n \"CreatedTime\": \"2023-10-01T12:00:00Z\",\n \"EdgeClusterVersion\": \"1.24.4\",\n \"MaxNodePodNum\": 110,\n \"ClusterAdvancedSettings\": {\n \"ExtraArgs\": {\n \"KubeAPIServer\": [\n \"--enable-admission-plugins=NodeRestriction\"\n ],\n \"KubeControllerManager\": [\n \"--node-cidr-mask-size=24\"\n ],\n \"KubeScheduler\": [\n \"--scheduler-name=default-scheduler\"\n ]\n },\n \"Runtime\": \"containerd\",\n \"ProxyMode\": \"ipvs\"\n },\n \"Level\": \"L5\",\n \"AutoUpgradeClusterLevel\": true,\n \"ChargeType\": \"PostPaid\",\n \"EdgeVersion\": \"v1.24.3-edge\",\n \"TagSpecification\": {\n \"ResourceType\": \"cluster\",\n \"Tags\": [\n {\n \"Key\": \"Environment\",\n \"Value\": \"Production\"\n },\n {\n \"Key\": \"Owner\",\n \"Value\": \"DevOps\"\n }\n ]\n }\n }\n ],\n \"RequestId\": \"d174dcb6-659b-4ab6-9533-e470a7d91e43\"\n }\n}",
|
1376
1376
|
"title": "集群信息列表"
|
1377
1377
|
}
|
1378
1378
|
],
|
1379
1379
|
"DescribeTKEEdgeExternalKubeconfig": [
|
1380
1380
|
{
|
1381
1381
|
"document": "获取边缘计算外部访问的kubeconfig",
|
1382
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DescribeTKEEdgeExternalKubeconfig\r\n&ClusterId=
|
1383
|
-
"output": "{\n \"Response\": {\n \"Kubeconfig\": \"
|
1382
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DescribeTKEEdgeExternalKubeconfig\r\n&ClusterId=cls-2wds9k9p\r\n&<公共请求参数>",
|
1383
|
+
"output": "{\n \"Response\": {\n \"Kubeconfig\": \"[REDACTED]\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
1384
1384
|
"title": "获取边缘计算外部访问的kubeconfig"
|
1385
1385
|
}
|
1386
1386
|
],
|
1387
1387
|
"DescribeTKEEdgeScript": [
|
1388
1388
|
{
|
1389
1389
|
"document": "获取边缘集群添加节点的脚本链接",
|
1390
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTKEEdgeScript\n<公共请求参数>\n\n{\n \"Interface\": \"eth0\",\n \"Config\": \"{\\\"Interface\\\":\\\"\\\",\\\"RuntimePath\\\":\\\"/var/lib/docker\\\",\\\"EdgeClusterVersion\\\":\\\"2.2\\\",\\\"TTL\\\":\\\"24h\\\", \\\"SkipInstallRuntime\\\":true}\",\n \"ClusterId\": \"
|
1391
|
-
"output": "{\n \"Response\": {\n \"Link\": \"www.tencent.com\",\n \"Token\": \"
|
1390
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DescribeTKEEdgeScript\n<公共请求参数>\n\n{\n \"Interface\": \"eth0\",\n \"Config\": \"{\\\"Interface\\\":\\\"\\\",\\\"RuntimePath\\\":\\\"/var/lib/docker\\\",\\\"EdgeClusterVersion\\\":\\\"2.2\\\",\\\"TTL\\\":\\\"24h\\\", \\\"SkipInstallRuntime\\\":true}\",\n \"ClusterId\": \"cls-qbc3zefo\",\n \"NodeName\": \"node\"\n}",
|
1391
|
+
"output": "{\n \"Response\": {\n \"Link\": \"www.tencent.com\",\n \"Token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6I\",\n \"Command\": \"wget www.tencent.com\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\",\n \"ScriptVersion\": \"2022112323123\"\n }\n}",
|
1392
1392
|
"title": "获取边缘脚本链接"
|
1393
1393
|
}
|
1394
1394
|
],
|
@@ -1419,7 +1419,7 @@
|
|
1419
1419
|
"DisableClusterDeletionProtection": [
|
1420
1420
|
{
|
1421
1421
|
"document": "",
|
1422
|
-
"input": "https://tke.tencentcloudapi.com/?Action=DisableClusterDeletionProtection\r\n&ClusterId=cls-
|
1422
|
+
"input": "https://tke.tencentcloudapi.com/?Action=DisableClusterDeletionProtection\r\n&ClusterId=cls-2wds9k9p\r\n&<公共请求参数>",
|
1423
1423
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
1424
1424
|
"title": "关闭集群删除保护"
|
1425
1425
|
}
|
@@ -1451,7 +1451,7 @@
|
|
1451
1451
|
"DrainClusterVirtualNode": [
|
1452
1452
|
{
|
1453
1453
|
"document": "",
|
1454
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DrainClusterVirtualNode\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
1454
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: DrainClusterVirtualNode\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"NodeName\": \"eklet-subnet-e55paxnt-0\"\n}",
|
1455
1455
|
"output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\"\n }\n}",
|
1456
1456
|
"title": "驱逐超级节点"
|
1457
1457
|
}
|
@@ -1467,7 +1467,7 @@
|
|
1467
1467
|
"EnableClusterDeletionProtection": [
|
1468
1468
|
{
|
1469
1469
|
"document": "集群删除保护一定程度上可以避免您误删集群,启用集群删除保护后,您将无法直接通过控制台和API来删除集群,如需删除集群,需要先关闭集群删除保护。",
|
1470
|
-
"input": "https://tke.tencentcloudapi.com/?Action=EnableClusterDeletionProtection\r\n&ClusterId=cls-
|
1470
|
+
"input": "https://tke.tencentcloudapi.com/?Action=EnableClusterDeletionProtection\r\n&ClusterId=cls-2wds9k9p\r\n&<公共请求参数>",
|
1471
1471
|
"output": "{\n \"Response\": {\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
1472
1472
|
"title": "启用集群删除保护"
|
1473
1473
|
}
|
@@ -1491,7 +1491,7 @@
|
|
1491
1491
|
"EnableVpcCniNetworkType": [
|
1492
1492
|
{
|
1493
1493
|
"document": "TKE 集群启用 vpc-cni 网络",
|
1494
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableVpcCniNetworkType\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
1494
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: EnableVpcCniNetworkType\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"EnableStaticIp\": false,\n \"VpcCniType\": \"tke-route-eni\",\n \"Subnets\": [\n \"subnet-e55paxnt\",\n \"subnet-e55paxnt\"\n ]\n}",
|
1495
1495
|
"output": "{\n \"Response\": {\n \"RequestId\": \"defc0237-d413-4079-9faa-7f3ff928d224\"\n }\n}",
|
1496
1496
|
"title": "启用vpc-cni网络"
|
1497
1497
|
}
|
@@ -1500,7 +1500,7 @@
|
|
1500
1500
|
{
|
1501
1501
|
"document": "",
|
1502
1502
|
"input": "https://tke.tencentcloudapi.com/?Action=ForwardApplicationRequestV3\n&Method=GET\n&Path=/apis/application.tkestack.io/v1/namespaces/cls-gk7cm35k/apps/\n&ClusterName=cls-gk7cm35k\n&<公共请求参数>",
|
1503
|
-
"output": "{\n \"Response\": {\n \"ResponseBody\": \"
|
1503
|
+
"output": "{\n \"Response\": {\n \"ResponseBody\": \"{\\\"kind\\\":\\\"App\\\"}\",\n \"RequestId\": \"eac6b301-a322-493a-8e36-83b295459397\"\n }\n}",
|
1504
1504
|
"title": "操作TKE集群的addon"
|
1505
1505
|
}
|
1506
1506
|
],
|
@@ -1539,41 +1539,41 @@
|
|
1539
1539
|
"GetUpgradeInstanceProgress": [
|
1540
1540
|
{
|
1541
1541
|
"document": "查询升级状态",
|
1542
|
-
"input": "https://tke.tencentcloudapi.com/?Action=GetUpgradeInstanceProgress\n&ClusterId=cls-
|
1543
|
-
"output": "{\n \"Response\": {\n \"Total\": 0,\n \"Done\": 0,\n \"LifeState\": \"
|
1542
|
+
"input": "https://tke.tencentcloudapi.com/?Action=GetUpgradeInstanceProgress\n&ClusterId=cls-e55paxnt\n&<公共请求参数>",
|
1543
|
+
"output": "{\n \"Response\": {\n \"Total\": 0,\n \"Done\": 0,\n \"LifeState\": \"running\",\n \"Instances\": [\n {\n \"InstanceID\": \"ins-wggphft5\",\n \"LifeState\": \"paused\",\n \"StartAt\": \"2021-02-08T16:29:46+08:00\",\n \"EndAt\": \"2021-02-08T16:39:46+08:00\",\n \"CheckResult\": {\n \"CheckPass\": false,\n \"Items\": [\n {\n \"Namespace\": \"default\",\n \"WorkLoadKind\": \"ReplicaSet\",\n \"WorkLoadName\": \"kubernetes-proxy-67fd23cf4d\",\n \"Before\": 1,\n \"After\": 0,\n \"Pods\": [\n \"kubernetes-proxy-67fd23cf4d-2tcxw\"\n ]\n }\n ],\n \"SinglePods\": []\n },\n \"Detail\": [\n {\n \"EndAt\": null,\n \"FailedMsg\": \"precheck failed\",\n \"LifeState\": \"failed\",\n \"StartAt\": \"2023-02-08T08:29:51Z\",\n \"Step\": \"preCheck\"\n },\n {\n \"EndAt\": null,\n \"FailedMsg\": \"\",\n \"LifeState\": \"pending\",\n \"StartAt\": null,\n \"Step\": \"drain\"\n },\n {\n \"EndAt\": null,\n \"FailedMsg\": \"\",\n \"LifeState\": \"pending\",\n \"StartAt\": null,\n \"Step\": \"remove\"\n },\n {\n \"EndAt\": null,\n \"FailedMsg\": \"\",\n \"LifeState\": \"pending\",\n \"StartAt\": null,\n \"Step\": \"reset\"\n },\n {\n \"EndAt\": null,\n \"FailedMsg\": \"\",\n \"LifeState\": \"pending\",\n \"StartAt\": null,\n \"Step\": \"postCheck\"\n }\n ]\n }\n ],\n \"ClusterStatus\": {\n \"PodTotal\": 10,\n \"NotReadyPod\": 0\n },\n \"RequestId\": \"b224fa4b-fedf-4061-baa9-d547ew858df\"\n }\n}",
|
1544
1544
|
"title": "查询升级状态"
|
1545
1545
|
}
|
1546
1546
|
],
|
1547
1547
|
"InstallAddon": [
|
1548
1548
|
{
|
1549
1549
|
"document": "用户安装cbs组件时支持通过RawValues配置自定义参数,比如设置容忍调度,可以将 {\"tolerations\":[{\"effect\":\"NoExecute\",\"key\":\"gpu-not-ready\",\"operator\":\"Equal\",\"tolerationSeconds\":300,\"value\":\"true\"},{\"key\":\"ip-not-ready\",\"operator\":\"Exists\"}]} 进行base64编码后放入到 RawValues 参数中。cbs组件支持的自定义配置参数说明如下:\n```\n{\n \"tolerations\": [\n {\n \"effect\": \"string, 效果,例如:NoExecute\",\n \"key\": \"string,标签值,例如:gpu-not-ready\",\n \"operator\": \"string,操作符,例如:Equal\",\n \"tolerationSeconds\": \"int,容忍时间(秒),例如:300\",\n \"value\": \"string,标签值,例如:true\"\n },\n {\n \"key\": \"string,标签值,例如:ip-not-ready\",\n \"operator\": \"string,操作符,例如:Exists\"\n }\n ]\n}\n```",
|
1550
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InstallAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
1550
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InstallAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-qbc3zefo\",\n \"AddonName\": \"cbs\",\n \"RawValues\": \"eyJ0b2xlcmF0aW9ucyI6W3siZWZmZWN0IjoiTm9FeGVjdXRlIiwia2V5IjoiZ3B1LW5vdC1yZWFkeSIsIm9wZXJhdG9yIjoiRXF1YWwiLCJ0b2xlcmF0aW9uU2Vjb25kcyI6MzAwLCJ2YWx1ZSI6InRydWUifSx7ImtleSI6ImlwLW5vdC1yZWFkeSIsIm9wZXJhdG9yIjoiRXhpc3RzIn1dfQ==\"\n}",
|
1551
1551
|
"output": "{\n \"Response\": {\n \"RequestId\": \"b583f05e-d4f4-4963-8082-b651605hg432\"\n }\n}",
|
1552
1552
|
"title": "安装cbs组件"
|
1553
1553
|
},
|
1554
1554
|
{
|
1555
|
-
"document": "用户安装eniipamd组件时支持通过RawValues配置自定义参数,比如添加安全组,可以将 {\"vpcCni\":{\"securityGroups\":{\"securityGroups\":[\"sg-
|
1556
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InstallAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
1555
|
+
"document": "用户安装eniipamd组件时支持通过RawValues配置自定义参数,比如添加安全组,可以将 {\"vpcCni\":{\"securityGroups\":{\"securityGroups\":[\"sg-qbc3zefo\"]}}} 进行base64编码后放入到 RawValues 参数中。eniipamd组件支持的自定义配置参数说明如下:\n```\n{\n \"clusterId\": \"string, 集群ID, 例如:cls-qbc3zefo\",\n \"vpcCni\": {\n \"vpcId\": \"string, VPC的ID, 例如:vpc-qbc3zefo\",\n \"enableVpcCni\": \"bool, 是否启用VPC CNI, 例如:true\",\n \"routeEni\": {\n \"ipMinWarmTarget\": \"int, 新增节点共享网卡辅助IP的最小预绑定值, 例如:5\",\n \"ipMaxWarmTarget\": \"int, 新增节点共享网卡辅助IP的最大预绑定值, 例如:5\"\n },\n \"ipam\": {\n \"subnetIds\": \"array, 用于IP地址分配的Pod子网ID列表, 例如:[\\\"subnet-qbc3zefo\\\"]\"\n }, \n \"securityGroups\": {\n \"enableSecurityGroups\": \"bool, 是否启用安全组, 例如:true\",\n \"securityGroups\": [\n \"string, 安全组ID, 例如:sg-qbc3zefo\"\n ]\n }\n },\n \"agent\": {\n \"kubeClient\": {\n \"masterAddr\": \"string, kubeClient主节点地址, 例如: 169.254.128.54:60002\"\n }\n }\n}\n```",
|
1556
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InstallAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-qbc3zefo\",\n \"AddonName\": \"eniipamd\",\n \"RawValues\": \"eyJ2cGNDbmkiOnsic2VjdXJpdHlHcm91cHMiOnsic2VjdXJpdHlHcm91cHMiOlsic2ctMTIzNDU2NzgiXX19fQ==\"\n}",
|
1557
1557
|
"output": "{\n \"Response\": {\n \"RequestId\": \"b583f05e-d4f4-4963-8082-b651605jh275\"\n }\n}",
|
1558
1558
|
"title": "安装eniipamd组件"
|
1559
1559
|
},
|
1560
1560
|
{
|
1561
|
-
"document": "
|
1562
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InstallAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
1563
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"b583f05e-d4f4-4963-8082-b651605ca427\"\n }\n}",
|
1564
|
-
"title": "安装tke-log-agent组件"
|
1565
|
-
},
|
1566
|
-
{
|
1567
|
-
"document": "用户可以通过 RawValues 参数制定组件需要的配置参数,比如 imagePullSecretsCrs。 tcr 组件支持的配置参数示例如下:\n```\n{\n \"global\": {\n \"imagePullSecretsCrs\": [\n {\n \"name\": \"string,imagePullSecretsCr 的名称,例如:tcr-12345678-public\",\n \"namespaces\": \"string,免密功能作用范围,例如:* 表示所有命名空间\",\n \"serviceAccounts\": \"string,免密功能作用范围,例如:* 表示所有k8s服务账户\",\n \"type\": \"string,必须为 docker\",\n \"dockerUsername\": \"string,镜像仓库登录用户名\",\n \"dockerPassword\": \"string,镜像仓库登录密码\",\n \"dockerServer\": \"string,镜像仓库服务器地址\"\n }\n ]\n }\n}\n```",
|
1568
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InstallAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-12345678\",\n \"AddonName\": \"tcr\",\n \"RawValues\": \"eyJnbG9iYWwiOnsiaW1hZ2VQdWxsU2VjcmV0c0NycyI6W3sibmFtZSI6InRjci1kZzI4NGltcS1wdWJsaWMiLCJuYW1lc3BhY2VzIjoiKiIsInNlcnZpY2VBY2NvdW50cyI6IioiLCJ0eXBlIjoiZG9ja2VyIiwiZG9ja2VyVXNlcm5hbWUiOiIxMDAwMTQzNjQ4MjIiLCJkb2NrZXJQYXNzd29yZCI6IjEyMzQ1Njc4IiwiZG9ja2VyU2VydmVyIjoibmljb2thbmctdGNyLWd6LnRlbmNlbnRjbG91ZGNyLmNvbSJ9XX19\"\n}",
|
1561
|
+
"document": "用户可以通过 RawValues 参数制定组件需要的配置参数,比如 imagePullSecretsCrs。 tcr 组件支持的配置参数示例如下:\n```\n{\n \"global\": {\n \"imagePullSecretsCrs\": [\n {\n \"name\": \"string,imagePullSecretsCr 的名称,例如:tcr-qbc3zefo-public\",\n \"namespaces\": \"string,免密功能作用范围,例如:* 表示所有命名空间\",\n \"serviceAccounts\": \"string,免密功能作用范围,例如:* 表示所有k8s服务账户\",\n \"type\": \"string,必须为 docker\",\n \"dockerUsername\": \"string,镜像仓库登录用户名\",\n \"dockerPassword\": \"string,镜像仓库登录密码\",\n \"dockerServer\": \"string,镜像仓库服务器地址\"\n }\n ]\n }\n}\n```",
|
1562
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InstallAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-qbc3zefo\",\n \"AddonName\": \"tcr\",\n \"RawValues\": \"eyJnbG9iYWwiOnsiaW1hZ2VQdWxsU2VjcmV0c0NycyI6W3sibmFtZSI6InRjci1kZzI4NGltcS1wdWJsaWMiLCJuYW1lc3BhY2VzIjoiKiIsInNlcnZpY2VBY2NvdW50cyI6IioiLCJ0eXBlIjoiZG9ja2VyIiwiZG9ja2VyVXNlcm5hbWUiOiIxMDAwMTQzNjQ4MjIiLCJkb2NrZXJQYXNzd29yZCI6IjEyMzQ1Njc4IiwiZG9ja2VyU2VydmVyIjoibmljb2thbmctdGNyLWd6LnRlbmNlbnRjbG91ZGNyLmNvbSJ9XX19\"\n}",
|
1569
1563
|
"output": "{\n \"Response\": {\n \"RequestId\": \"b583f05e-d4f4-4963-8082-b651605ca765\"\n }\n}",
|
1570
1564
|
"title": "安装tcr组件"
|
1565
|
+
},
|
1566
|
+
{
|
1567
|
+
"document": "用户安装tke-log-agent组件时支持通过RawValues配置自定义参数,比如设置启用kafkalistener,可以将 {\"kafkalistener\":{\"enabled\":true}} 进行base64编码后放入到 RawValues 参数中。tke-log-agent 组件支持的自定义配置参数说明如下:\n```\n{\n \"global\": {\n \"clsHost\": \"string, cls服务域名,例如:ap-chengdu.cls.tencentyun.com\",\n \"cluster\": {\n \"clustertype\": \"string,集群管理类型,例如:MANAGED_CLUSTER 或 INDEPENDENT_CLUSTER\",\n \"kubeminor\": \"string,集群版本,例如:minor 30.0\",\n \"kubeversion\": \"string,集群k8s版本,例如:1.30.0\",\n \"type\": \"string,集群类型,例如:tke 或 eks\"\n },\n \"clusterID\": \"string,集群ID,例如:cls-qbc3zefo\",\n \"hostNetwork\": \"bool,是否使用hostNetwork,例如:false\",\n \"localRegion\": \"string,集群所在地域,例如:ap-chengdu\",\n \"registry\": \"string,镜像仓库,例如:ccr.ccs.tencentyun.com\",\n \"sources\": \"string,鉴权方式,例如:norm\"\n },\n \"kafkalistener\": {\n \"enabled\": \"bool,是否启用kafkalistener,例如:true\",\n },\n \"logAgent\": {\n \"enabled\": \"bool,是否启用logAgent,例如:true\",\n },\n \"loglistener\": {\n \"enabled\": \"bool,是否启用loglistener\",\n },\n \"provisioner\": {\n \"replicaCount\": \"int,cls-provisioner副本数,例如:2\",\n \"sources\": \"string,cls-provisioner鉴权方式,例如:norm\"\n }\n}\n```",
|
1568
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: InstallAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"AddonName\": \"tke-log-agent\",\n \"RawValues\": \"eyJrYWZrYWxpc3RlbmVyIjp7ImVuYWJsZWQiOnRydWV9fQ==\"\n}",
|
1569
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"b583f05e-d4f4-4963-8082-b651605ca427\"\n }\n}",
|
1570
|
+
"title": "安装tke-log-agent组件"
|
1571
1571
|
}
|
1572
1572
|
],
|
1573
1573
|
"InstallEdgeLogAgent": [
|
1574
1574
|
{
|
1575
1575
|
"document": "在边缘集群上安装日志采集组件",
|
1576
|
-
"input": "https://tke.tencentcloudapi.com/?Action=InstallEdgeLogAgent\n&ClusterId=\"\"\n&<公共请求参数>",
|
1576
|
+
"input": "https://tke.tencentcloudapi.com/?Action=InstallEdgeLogAgent\n&ClusterId=\"cls-2wds9k9p\"\n&<公共请求参数>",
|
1577
1577
|
"output": "{\n \"Response\": {\n \"RequestId\": \"f12a6e20-f950-4af9-8f8b-b6329a4961c2\"\n }\n}",
|
1578
1578
|
"title": "在边缘集群上安装日志采集组件"
|
1579
1579
|
}
|
@@ -1604,14 +1604,14 @@
|
|
1604
1604
|
{
|
1605
1605
|
"document": "获取巡检结果历史",
|
1606
1606
|
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ListClusterInspectionResultsItems\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-54n6gepo\"\n}",
|
1607
|
-
"output": "{\n \"Response\": {\n \"InspectionResultsItems\": [\n {\n \"Name\": \"
|
1607
|
+
"output": "{\n \"Response\": {\n \"InspectionResultsItems\": [\n {\n \"Name\": \"ClusterSecurity\",\n \"Statistics\": [\n {\n \"HealthyLevel\": \"risk\",\n \"Count\": 2\n },\n {\n \"HealthyLevel\": \"serious\",\n \"Count\": 1\n },\n {\n \"HealthyLevel\": \"failed\",\n \"Count\": 0\n },\n {\n \"HealthyLevel\": \"good\",\n \"Count\": 10\n }\n ]\n },\n {\n \"Name\": \"NodeHealth\",\n \"Statistics\": [\n {\n \"HealthyLevel\": \"serious\",\n \"Count\": 1\n },\n {\n \"HealthyLevel\": \"failed\",\n \"Count\": 0\n },\n {\n \"HealthyLevel\": \"good\",\n \"Count\": 10\n },\n {\n \"HealthyLevel\": \"risk\",\n \"Count\": 2\n }\n ]\n }\n ],\n \"RequestId\": \"d174dcb6-659b-4ab6-9533-e470a7d91e43\"\n }\n}",
|
1608
1608
|
"title": "获取巡检结果历史"
|
1609
1609
|
}
|
1610
1610
|
],
|
1611
1611
|
"ModifyClusterAsGroupAttribute": [
|
1612
1612
|
{
|
1613
1613
|
"document": "",
|
1614
|
-
"input": "https://tke.tencentcloudapi.com/?Action=ModifyClusterAsGroupAttribute\r\n&ClusterId=cls-
|
1614
|
+
"input": "https://tke.tencentcloudapi.com/?Action=ModifyClusterAsGroupAttribute\r\n&ClusterId=cls-2wds9k9p\r\n&<公共请求参数>",
|
1615
1615
|
"output": "{\n \"Response\": {\n \"RequestId\": \"82f2fe9c-c5fa-4077-9236-f1341180a696\"\n }\n}",
|
1616
1616
|
"title": "修改集群伸缩组属性"
|
1617
1617
|
}
|
@@ -1619,7 +1619,7 @@
|
|
1619
1619
|
"ModifyClusterAsGroupOptionAttribute": [
|
1620
1620
|
{
|
1621
1621
|
"document": "",
|
1622
|
-
"input": "https://tke.tencentcloudapi.com/?Action=ModifyClusterAsGroupOptionAttribute\n&ClusterId=cls-
|
1622
|
+
"input": "https://tke.tencentcloudapi.com/?Action=ModifyClusterAsGroupOptionAttribute\n&ClusterId=cls-2wds9k9p\n&ClusterAsGroupOption.IsScaleDownEnabled=true\n&ClusterAsGroupOption.UnregisteredNodeRemovalTime=10\n&ClusterAsGroupOption.OkTotalUnreadyCount=3\n&ClusterAsGroupOption.ScaleDownUnreadyTime=10\n&ClusterAsGroupOption.MaxTotalUnreadyPercentage=20\n&<公共请求参数>",
|
1623
1623
|
"output": "{\n \"Response\": {\n \"RequestId\": \"82f2fe9c-c5fa-4077-9236-f1341180a696\"\n }\n}",
|
1624
1624
|
"title": "修改集群弹性伸缩属性"
|
1625
1625
|
}
|
@@ -1627,8 +1627,8 @@
|
|
1627
1627
|
"ModifyClusterAttribute": [
|
1628
1628
|
{
|
1629
1629
|
"document": "修改集群属性",
|
1630
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterAttribute\n<公共请求参数>\n\n{\n \"AutoUpgradeClusterLevel\": {\n \"IsAutoUpgrade\": true\n },\n \"ClusterName\": \"tke
|
1631
|
-
"output": "{\n \"Response\": {\n \"AutoUpgradeClusterLevel\": {\n \"IsAutoUpgrade\": true\n },\n \"ClusterName\": \"tke
|
1630
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterAttribute\n<公共请求参数>\n\n{\n \"AutoUpgradeClusterLevel\": {\n \"IsAutoUpgrade\": true\n },\n \"ClusterName\": \"tke\",\n \"ProjectId\": 0,\n \"ClusterDesc\": \"tke\",\n \"ClusterId\": \"cls-7ph3twqe\",\n \"ClusterLevel\": \"L5\",\n \"ClusterProperty\": {\n \"NodeNameType\": \"lan-ip\"\n }\n}",
|
1631
|
+
"output": "{\n \"Response\": {\n \"AutoUpgradeClusterLevel\": {\n \"IsAutoUpgrade\": true\n },\n \"ClusterName\": \"tke\",\n \"ProjectId\": 0,\n \"ClusterDesc\": \"tke\",\n \"QGPUShareEnable\": true,\n \"RequestId\": \"24564577-a642-4164-8752-4668d4ca8886\",\n \"ClusterLevel\": \"L5\",\n \"ClusterProperty\": {\n \"NodeNameType\": \"lan-ip\"\n }\n }\n}",
|
1632
1632
|
"title": "修改集群属性"
|
1633
1633
|
}
|
1634
1634
|
],
|
@@ -1651,7 +1651,7 @@
|
|
1651
1651
|
"ModifyClusterImage": [
|
1652
1652
|
{
|
1653
1653
|
"document": "",
|
1654
|
-
"input": "https://tke.tencentcloudapi.com/?Action=ModifyClusterImage\r\n&ClusterId=cls-
|
1654
|
+
"input": "https://tke.tencentcloudapi.com/?Action=ModifyClusterImage\r\n&ClusterId=cls-e55paxnt\r\n&ImageId=img-e55paxnt\r\n&<公共请求参数>",
|
1655
1655
|
"output": "{\n \"Response\": {\n \"RequestId\": \"0b45d041-0f53-428f-ac89-51375d018e95\"\n }\n}",
|
1656
1656
|
"title": "修改集群镜像"
|
1657
1657
|
}
|
@@ -1659,8 +1659,8 @@
|
|
1659
1659
|
"ModifyClusterNodePool": [
|
1660
1660
|
{
|
1661
1661
|
"document": "",
|
1662
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterNodePool\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
1663
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
1662
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterNodePool\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"NodePoolId\": \"np-e55paxnt\"\n}",
|
1663
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"d174dcb6-659b-4ab6-9533-e470a7d91e43\"\n }\n}",
|
1664
1664
|
"title": "编辑节点池"
|
1665
1665
|
}
|
1666
1666
|
],
|
@@ -1675,15 +1675,15 @@
|
|
1675
1675
|
"ModifyClusterTags": [
|
1676
1676
|
{
|
1677
1677
|
"document": "修改集群标签",
|
1678
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterTags\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-0gudq56e\",\n \"Tags\": [\n {\n \"Key\": \"
|
1679
|
-
"output": "{\n \"Response\": {\n \"Tags\": [\n {\n \"Key\": \"
|
1678
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterTags\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-0gudq56e\",\n \"Tags\": [\n {\n \"Key\": \"product\",\n \"Value\": \"tke\"\n }\n ],\n \"SyncSubresource\": true\n}",
|
1679
|
+
"output": "{\n \"Response\": {\n \"Tags\": [\n {\n \"Key\": \"product\",\n \"Value\": \"tke\"\n }\n ],\n \"RequestId\": \"33483fde-efec-4d3c-8ff6-340d9dbc2d01\"\n }\n}",
|
1680
1680
|
"title": "修改集群标签"
|
1681
1681
|
}
|
1682
1682
|
],
|
1683
1683
|
"ModifyClusterVirtualNodePool": [
|
1684
1684
|
{
|
1685
1685
|
"document": "修改超级节点池",
|
1686
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterVirtualNodePool\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
1686
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyClusterVirtualNodePool\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"NodePoolId\": \"np-e55paxnt\",\n \"Name\": \"virtual-node-prod\"\n}",
|
1687
1687
|
"output": "{\n \"Response\": {\n \"RequestId\": \"1ac0d3ae-063e-4789-93fe-3c73e93191b9\"\n }\n}",
|
1688
1688
|
"title": "修改超级节点池"
|
1689
1689
|
}
|
@@ -1699,8 +1699,8 @@
|
|
1699
1699
|
"ModifyNodePoolInstanceTypes": [
|
1700
1700
|
{
|
1701
1701
|
"document": "修改节点池机型",
|
1702
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyNodePoolInstanceTypes\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
1703
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
1702
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyNodePoolInstanceTypes\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-e55paxnt\",\n \"InstanceTypes\": [\n \"ins-e55paxnt\"\n ],\n \"NodePoolId\": \"np-e55paxnt\"\n}",
|
1703
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"d174dcb6-659b-4ab6-9533-e470a7d91e43\"\n }\n}",
|
1704
1704
|
"title": "修改节点池机型"
|
1705
1705
|
}
|
1706
1706
|
],
|
@@ -1784,10 +1784,10 @@
|
|
1784
1784
|
],
|
1785
1785
|
"ModifyReservedInstanceScope": [
|
1786
1786
|
{
|
1787
|
-
"document": "
|
1788
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyReservedInstanceScope\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-
|
1789
|
-
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"
|
1790
|
-
"title": "
|
1787
|
+
"document": "Scope 输入错误示例",
|
1788
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyReservedInstanceScope\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-762dtf76\"\n ],\n \"ReservedInstanceScope\": {\n \"Scope\": \"regio\"\n }\n}",
|
1789
|
+
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError.Param\",\n \"Message\": \"Scope must be in [Region, Zone, Node]\"\n },\n \"RequestId\": \"e88f8640-0e36-4154-a3bf-907b01aa62f0\"\n }\n}",
|
1790
|
+
"title": "Scope 输入错误示例"
|
1791
1791
|
},
|
1792
1792
|
{
|
1793
1793
|
"document": "设置预留券抵扣范围为地域",
|
@@ -1796,10 +1796,10 @@
|
|
1796
1796
|
"title": "抵扣范围为地域"
|
1797
1797
|
},
|
1798
1798
|
{
|
1799
|
-
"document": "
|
1800
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyReservedInstanceScope\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-762dtf76\"\n ],\n \"ReservedInstanceScope\": {\n \"Scope\": \"
|
1801
|
-
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError.Param\",\n \"Message\": \"
|
1802
|
-
"title": "
|
1799
|
+
"document": "抵扣范围为可用区时,Zone 必传,如:ap-guangzhou-2",
|
1800
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyReservedInstanceScope\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-762dtf76\"\n ],\n \"ReservedInstanceScope\": {\n \"Scope\": \"Zone\"\n }\n}",
|
1801
|
+
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"InternalError.Param\",\n \"Message\": \"Zone invalid\"\n },\n \"RequestId\": \"e949558d-f637-4223-8305-047cb2d5bf06\"\n }\n}",
|
1802
|
+
"title": "设置抵扣范围为可用区"
|
1803
1803
|
},
|
1804
1804
|
{
|
1805
1805
|
"document": "设置抵扣范围为节点",
|
@@ -1808,10 +1808,10 @@
|
|
1808
1808
|
"title": "设置抵扣范围为节点"
|
1809
1809
|
},
|
1810
1810
|
{
|
1811
|
-
"document": "
|
1812
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyReservedInstanceScope\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-
|
1813
|
-
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"
|
1814
|
-
"title": "
|
1811
|
+
"document": "输入的资源 ID不存在",
|
1812
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: ModifyReservedInstanceScope\n<公共请求参数>\n\n{\n \"ReservedInstanceIds\": [\n \"eksri-762dtf7\"\n ],\n \"ReservedInstanceScope\": {\n \"Scope\": \"region\"\n }\n}",
|
1813
|
+
"output": "{\n \"Response\": {\n \"Error\": {\n \"Code\": \"ResourceNotFound.NotFound\",\n \"Message\": \"ReservedInstanceIds:[]string{\\\"eksri-762dtf7\\\"} not found\"\n },\n \"RequestId\": \"134fa43d-83a5-4b8d-8ea9-293a96515b68\"\n }\n}",
|
1814
|
+
"title": "资源 ID 不存在"
|
1815
1815
|
}
|
1816
1816
|
],
|
1817
1817
|
"RemoveNodeFromNodePool": [
|
@@ -1873,7 +1873,7 @@
|
|
1873
1873
|
"SetNodePoolNodeProtection": [
|
1874
1874
|
{
|
1875
1875
|
"document": "当触发缩容时(包括手动和自动),节点不会被伸缩组从集群中移除",
|
1876
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetNodePoolNodeProtection\n<公共请求参数>\n\n{\n \"ProtectedFromScaleIn\": \"true\",\n \"ClusterId\": \"cls-
|
1876
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: SetNodePoolNodeProtection\n<公共请求参数>\n\n{\n \"ProtectedFromScaleIn\": \"true\",\n \"ClusterId\": \"cls-e55paxnt\",\n \"InstanceIds\": [\n \"ins-e55paxnt\"\n ],\n \"NodePoolId\": \"np-e55paxnt\"\n}",
|
1877
1877
|
"output": "{\n \"Response\": {\n \"SucceedInstanceIds\": [\n \"ins-rvob5o5\"\n ],\n \"FailedInstanceIds\": [\n \"ins-abocc5o\"\n ],\n \"RequestId\": \"6ef60bec-0242-43af-bb20-270359fb54a7\"\n }\n}",
|
1878
1878
|
"title": "给节点池中的节点设置移出保护"
|
1879
1879
|
}
|
@@ -1919,21 +1919,21 @@
|
|
1919
1919
|
}
|
1920
1920
|
],
|
1921
1921
|
"UpdateAddon": [
|
1922
|
-
{
|
1923
|
-
"document": "用户可以通过RawValues参数更新eniipamd组件支持的自定义配置参数,比如清空已配置的安全组,可以将 {\"vpcCni\":{\"securityGroups\":{\"securityGroups\":[]}}} 进行base64编码后放入到 RawValues 参数中。eniipamd组件支持的自定义配置参数说明如下:\n```\n{\n \"clusterId\": \"string, 集群ID, 例如:cls-12345678\",\n \"vpcCni\": {\n \"vpcId\": \"string, VPC的ID, 例如:vpc-12345678\",\n \"enableVpcCni\": \"bool, 是否启用VPC CNI, 例如:true\",\n \"routeEni\": {\n \"ipMinWarmTarget\": \"int, 新增节点共享网卡辅助IP的最小预绑定值, 例如:5\",\n \"ipMaxWarmTarget\": \"int, 新增节点共享网卡辅助IP的最大预绑定值, 例如:5\"\n },\n \"ipam\": {\n \"subnetIds\": \"array, 用于IP地址分配的Pod子网ID列表, 例如:[\\\"subnet-12345678\\\"]\"\n }, \n \t\"securityGroups\": {\n \"enableSecurityGroups\": \"bool, 是否启用安全组, 例如:true\",\n \"securityGroups\": [\n \"string, 安全组ID, 例如:sg-12345678\"\n ]\n }\n },\n \"agent\": {\n \"kubeClient\": {\n \"masterAddr\": \"string, kubeClient主节点地址, 例如: 169.254.128.54:60002\"\n }\n }\n}\n```",
|
1924
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-12345678\",\n \"AddonName\": \"eniipamd\",\n \"RawValues\": \"eyJ2cGNDbmkiOnsic2VjdXJpdHlHcm91cHMiOnsic2VjdXJpdHlHcm91cHMiOltdfX19\",\n \"UpdateStrategy\": \"merge\"\n}",
|
1925
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"f55aaa93-c681-47c9-860a-59ae16ade268\"\n }\n}",
|
1926
|
-
"title": "更新eniipamd组件参数"
|
1927
|
-
},
|
1928
1922
|
{
|
1929
1923
|
"document": "用户可以通过RawValues参数更新cbs组件支持的自定义配置参数,比如修改容忍调度设置,可以将 {\"tolerations\":[{\"effect\":\"NoExecute\",\"key\":\"gpu-not-ready\",\"operator\":\"Equal\",\"tolerationSeconds\":300,\"value\":\"true\"},{\"key\":\"ip-not-ready\",\"operator\":\"Exists\"}]} 进行base64编码后放入到 RawValues 参数中。cbs组件支持的自定义配置参数说明如下:\n```\n{\n \"tolerations\": [\n {\n \"effect\": \"string,效果,例如:NoExecute\",\n \"key\": \"string,标签值,例如:gpu-not-ready\",\n \"operator\": \"string,操作符,例如:Equal\",\n \"tolerationSeconds\": \"int,容忍时间(秒),例如:300\",\n \"value\": \"string,标签值,例如:true\"\n },\n {\n \"key\": \"string,标签值,例如:ip-not-ready\",\n \"operator\": \"string,操作符,例如:Exists\"\n }\n ]\n}\n```",
|
1930
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
1924
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-qbc3zefo\",\n \"AddonName\": \"cbs\",\n \"RawValues\": \"eyJ0b2xlcmF0aW9ucyI6W3siZWZmZWN0IjoiTm9FeGVjdXRlIiwia2V5IjoiZ3B1LW5vdC1yZWFkeSIsIm9wZXJhdG9yIjoiRXF1YWwiLCJ0b2xlcmF0aW9uU2Vjb25kcyI6MzAwLCJ2YWx1ZSI6InRydWUifSx7ImtleSI6ImlwLW5vdC1yZWFkeSIsIm9wZXJhdG9yIjoiRXhpc3RzIn1dfQ==\",\n \"UpdateStrategy\": \"merge\"\n}",
|
1931
1925
|
"output": "{\n \"Response\": {\n \"RequestId\": \"f55aaa93-c681-47c9-860a-59ae16af648\"\n }\n}",
|
1932
1926
|
"title": "更新cbs组件参数"
|
1933
1927
|
},
|
1934
1928
|
{
|
1935
|
-
"document": "用户可以通过RawValues参数更新
|
1936
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
1929
|
+
"document": "用户可以通过RawValues参数更新eniipamd组件支持的自定义配置参数,比如清空已配置的安全组,可以将 {\"vpcCni\":{\"securityGroups\":{\"securityGroups\":[]}}} 进行base64编码后放入到 RawValues 参数中。eniipamd组件支持的自定义配置参数说明如下:\n```\n{\n \"clusterId\": \"string, 集群ID, 例如:cls-qbc3zefo\",\n \"vpcCni\": {\n \"vpcId\": \"string, VPC的ID, 例如:vpc-qbc3zefo\",\n \"enableVpcCni\": \"bool, 是否启用VPC CNI, 例如:true\",\n \"routeEni\": {\n \"ipMinWarmTarget\": \"int, 新增节点共享网卡辅助IP的最小预绑定值, 例如:5\",\n \"ipMaxWarmTarget\": \"int, 新增节点共享网卡辅助IP的最大预绑定值, 例如:5\"\n },\n \"ipam\": {\n \"subnetIds\": \"array, 用于IP地址分配的Pod子网ID列表, 例如:[\\\"subnet-qbc3zefo\\\"]\"\n }, \n \t\"securityGroups\": {\n \"enableSecurityGroups\": \"bool, 是否启用安全组, 例如:true\",\n \"securityGroups\": [\n \"string, 安全组ID, 例如:sg-qbc3zefo\"\n ]\n }\n },\n \"agent\": {\n \"kubeClient\": {\n \"masterAddr\": \"string, kubeClient主节点地址, 例如: 169.254.128.54:60002\"\n }\n }\n}\n```",
|
1930
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-qbc3zefo\",\n \"AddonName\": \"eniipamd\",\n \"RawValues\": \"eyJ2cGNDbmkiOnsic2VjdXJpdHlHcm91cHMiOnsic2VjdXJpdHlHcm91cHMiOltdfX19\",\n \"UpdateStrategy\": \"merge\"\n}",
|
1931
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"f55aaa93-c681-47c9-860a-59ae16ade268\"\n }\n}",
|
1932
|
+
"title": "更新eniipamd组件参数"
|
1933
|
+
},
|
1934
|
+
{
|
1935
|
+
"document": "用户可以通过RawValues参数更新tke-log-agent组件支持的自定义配置参数,比如设置启用kafkalistener,可以将 {\"kafkalistener\":{\"enabled\":true}} 进行base64编码后放入到 RawValues 参数中。tke-log-agent 组件支持的自定义配置参数说明如下:\n```\n{\n \"global\": {\n \"clsHost\": \"string, cls服务域名,例如:ap-chengdu.cls.tencentyun.com\",\n \"cluster\": {\n \"clustertype\": \"string,集群管理类型,例如:MANAGED_CLUSTER 或 INDEPENDENT_CLUSTER\",\n \"kubeminor\": \"string,集群版本,例如:minor 30.0\",\n \"kubeversion\": \"string,集群k8s版本,例如:1.30.0\",\n \"type\": \"string,集群类型,例如:tke 或 eks\"\n },\n \"clusterID\": \"string,集群ID,例如:cls-qbc3zefo\",\n \"hostNetwork\": \"bool,是否使用hostNetwork,例如:false\",\n \"localRegion\": \"string,集群所在地域,例如:ap-chengdu\",\n \"registry\": \"string,镜像仓库,例如:ccr.ccs.tencentyun.com\",\n \"sources\": \"string,鉴权方式,例如:norm\"\n },\n \"kafkalistener\": {\n \"enabled\": \"bool,是否启用kafkalistener,例如:true\",\n },\n \"logAgent\": {\n \"enabled\": \"bool,是否启用logAgent,例如:true\",\n },\n \"loglistener\": {\n \"enabled\": \"bool,是否启用loglistener\",\n },\n \"provisioner\": {\n \"replicaCount\": \"int,cls-provisioner副本数,例如:2\",\n \"sources\": \"string,cls-provisioner鉴权方式,例如:norm\"\n }\n}\n```",
|
1936
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateAddon\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-qbc3zefo\",\n \"AddonName\": \"tke-log-agent\",\n \"RawValues\": \"eyJrYWZrYWxpc3RlbmVyIjp7ImVuYWJsZWQiOnRydWV9fQ==\",\n \"UpdateStrategy\": \"merge\"\n}",
|
1937
1937
|
"output": "{\n \"Response\": {\n \"RequestId\": \"f55aaa93-c681-47c9-860a-59ae16ajgf1\"\n }\n}",
|
1938
1938
|
"title": "更新tke-log-agent组件参数"
|
1939
1939
|
}
|
@@ -1941,15 +1941,15 @@
|
|
1941
1941
|
"UpdateClusterKubeconfig": [
|
1942
1942
|
{
|
1943
1943
|
"document": "更新集群的kubeconfig信息",
|
1944
|
-
"input": "https://tke.tencentcloudapi.com/?Action=UpdateClusterKubeconfig\r\n&ClusterId=cls-65r1c5nu\r\n&SubAccounts.0=
|
1945
|
-
"output": "{\n \"Response\": {\n \"UpdatedSubAccounts\": [\n \"
|
1944
|
+
"input": "https://tke.tencentcloudapi.com/?Action=UpdateClusterKubeconfig\r\n&ClusterId=cls-65r1c5nu\r\n&SubAccounts.0=1385968384757\r\n&SubAccounts.1=1385968384757\r\n&SubAccounts.2=1385968384757\r\n&<公共请求参数>",
|
1945
|
+
"output": "{\n \"Response\": {\n \"UpdatedSubAccounts\": [\n \"1385968384757\",\n \"1385968384757\",\n \"1385968384757\"\n ],\n \"RequestId\": \"33483fde-efec-4d3c-8ff6-340d9dbc2d01\"\n }\n}",
|
1946
1946
|
"title": "更新集群的kubeconfig信息"
|
1947
1947
|
}
|
1948
1948
|
],
|
1949
1949
|
"UpdateClusterVersion": [
|
1950
1950
|
{
|
1951
1951
|
"document": "升级集群到指定版本",
|
1952
|
-
"input": "https://tke.tencentcloudapi.com/?Action=UpdateClusterVersion\n&ClusterId=cls-
|
1952
|
+
"input": "https://tke.tencentcloudapi.com/?Action=UpdateClusterVersion\n&ClusterId=cls-e55paxnt\n&DstVersion=1.18.4\n&<公共请求参数>",
|
1953
1953
|
"output": "{\n \"Response\": {\n \"RequestId\": \"2ac430cd-f7de-482e-b98e-f78a48e785e8\"\n }\n}",
|
1954
1954
|
"title": "升级集群到指定版本"
|
1955
1955
|
}
|
@@ -1965,7 +1965,7 @@
|
|
1965
1965
|
"UpdateEKSContainerInstance": [
|
1966
1966
|
{
|
1967
1967
|
"document": "",
|
1968
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateEKSContainerInstance\n<公共请求参数>\n\n{\n \"Name\": \"helloworld\",\n \"RestartPolicy\": \"Always\",\n \"EksCiId\": \"eksci-
|
1968
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateEKSContainerInstance\n<公共请求参数>\n\n{\n \"Name\": \"helloworld\",\n \"RestartPolicy\": \"Always\",\n \"EksCiId\": \"eksci-1cghduvc\"\n}",
|
1969
1969
|
"output": "{\n \"Response\": {\n \"RequestId\": \"51d9ea5a-6e9e-4384-88da-84229e133246\",\n \"EksCiId\": \"eksci-rkkrzy4o\"\n }\n}",
|
1970
1970
|
"title": "更新容器实例"
|
1971
1971
|
}
|
@@ -1973,7 +1973,7 @@
|
|
1973
1973
|
"UpdateEdgeClusterVersion": [
|
1974
1974
|
{
|
1975
1975
|
"document": "升级边缘计算集群组件版本",
|
1976
|
-
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateEdgeClusterVersion\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-
|
1976
|
+
"input": "POST / HTTP/1.1\nHost: tke.tencentcloudapi.com\nContent-Type: application/json\nX-TC-Action: UpdateEdgeClusterVersion\n<公共请求参数>\n\n{\n \"ClusterId\": \"cls-2wds9k9p\",\n \"EdgeVersion\": \"1.0.1\"\n}",
|
1977
1977
|
"output": "{\n \"Response\": {\n \"RequestId\": \"2ac430cd-f7de-482e-b98e-f78a48e785e8\"\n }\n}",
|
1978
1978
|
"title": "升级边缘集群"
|
1979
1979
|
}
|
@@ -1998,7 +1998,7 @@
|
|
1998
1998
|
{
|
1999
1999
|
"document": "给集群的一批work节点进行升级 ",
|
2000
2000
|
"input": "https://tke.tencentcloudapi.com/?Action=UpgradeClusterInstances\n&ClusterId=cls-xxxxxx\n&UpgradeType=reset\n&Operation=create\n&InstanceIds.0=ins-xxx\n&<公共请求参数>",
|
2001
|
-
"output": "{\n \"Response\": {\n \"RequestId\": \"
|
2001
|
+
"output": "{\n \"Response\": {\n \"RequestId\": \"b37ab7ed-3c35-475e-b287-81d1666cb0de\"\n }\n}",
|
2002
2002
|
"title": "集群节点升级"
|
2003
2003
|
}
|
2004
2004
|
],
|