tencentcloud-sdk-nodejs-tke 4.1.134 → 4.1.136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { v20220501 } from "./v20220501";
2
1
  import { v20180525 } from "./v20180525";
2
+ import { v20220501 } from "./v20220501";
3
3
  export const tke = {
4
- v20220501: v20220501,
5
4
  v20180525: v20180525,
5
+ v20220501: v20220501,
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-tke",
3
- "version": "4.1.134",
3
+ "version": "4.1.136",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -1,10 +1,10 @@
1
1
  export declare const tke: {
2
- v20220501: {
3
- Client: typeof import("./v20220501/tke_client").Client;
4
- Models: typeof import("./v20220501/tke_models");
5
- };
6
2
  v20180525: {
7
3
  Client: typeof import("./v20180525/tke_client").Client;
8
4
  Models: typeof import("./v20180525/tke_models");
9
5
  };
6
+ v20220501: {
7
+ Client: typeof import("./v20220501/tke_client").Client;
8
+ Models: typeof import("./v20220501/tke_models");
9
+ };
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.tke = void 0;
4
- const v20220501_1 = require("./v20220501");
5
4
  const v20180525_1 = require("./v20180525");
5
+ const v20220501_1 = require("./v20220501");
6
6
  exports.tke = {
7
- v20220501: v20220501_1.v20220501,
8
7
  v20180525: v20180525_1.v20180525,
8
+ v20220501: v20220501_1.v20220501,
9
9
  };
@@ -532,7 +532,63 @@ export interface OpenPolicyInfo {
532
532
  */
533
533
  Name?: string;
534
534
  /**
535
- * 策略模板类型
535
+ * 策略模板类型,支持的类型如下:
536
+ 优选策略:
537
+ blocknamespacedeletion:存在pod的命名空间不允许删除
538
+ blockcrddeletion:存在cr的crd不允许删除
539
+ blockmountablevolumetype:禁止挂载指定的volume类型
540
+ disallowalwayspullimage:禁止镜像拉取策略使用Always
541
+ tkeallowedrepos:容器镜像来源限制
542
+ blockunknowndaemonset:禁止未知的DaemonSet部署
543
+ blockpvdeletion:PV处于绑定状态则不允许删除
544
+ corednsprotect:CoreDNS组件删除保护
545
+ blockschedulablenodedelete:非封锁状态的Node不允许删除
546
+ resourcesdeletionprotection:资源删除保护
547
+ tkeenirequest:弹性网卡资源配置限制
548
+ blockworkloadcrossversionupgrade:工作负载镜像版本升级策略管控
549
+ blockserviceaccountgranthighprivilegepermission:ServiceAccount权限管控
550
+ blockclusteripserviceexist:不允许Service为ClusterIP类型
551
+ blockinternetaccess:禁止公网访问
552
+ assign:禁止访问Metadata Server
553
+ blockhostnetworkpod:禁止创建HostNetwork类型Pod
554
+
555
+ 可选策略:
556
+ blockvolumemountpath:禁止容器挂载指定的目录
557
+ k8sallowedrepos:容器镜像必须以指定字符串列表中的字符串开头
558
+ k8sblockendpointeditdefaultrole:禁止默认ClusterRole修改Endpoints
559
+ k8sblockloadbalancer:不允许Service为LoadBalancer类型
560
+ k8sblocknodeport:不允许Service为NodePort类型
561
+ k8sblockwildcardingress:禁止ingress配置空白或通配符类型的hostname
562
+ k8scontainerlimits:限制容器必须设置CPU和内存Limit
563
+ k8scontainerratios:限制CPU和内存的Request与Limit的最大比率
564
+ k8scontainerrequests:限制CPU和内存的Request必须设置且小于配置的最大值
565
+ k8srequiredresources:必须配置内存的Limit,CPU和内存的Request
566
+ k8sdisallowanonymous:不允许将白名单以外的ClusterRole和Role关联到system:anonymous User和system:unauthenticated Group
567
+ k8sdisallowedtags:约束容器镜像tag
568
+ k8sexternalips:限制服务externalIP仅为允许的IP地址列表
569
+ k8simagedigests:容器镜像必须包含digest
570
+ noupdateserviceaccount:拒绝白名单外的资源更新ServiceAccount
571
+ k8sreplicalimits:要求具有spec.replicas字段的对象(Deployments、ReplicaSets等)在定义的范围内
572
+ k8srequiredannotations:要求资源包含指定的annotations,其值与提供的正则表达式匹配
573
+ k8srequiredlabels:要求资源包含指定的标签,其值与提供的正则表达式匹配
574
+ k8srequiredprobes:要求Pod具有Readiness或Liveness Probe
575
+ k8spspautomountserviceaccounttokenpod:约束容器不能设置automountServiceAccountToken为true
576
+ k8spspallowprivilegeescalationcontainer:约束PodSecurityPolicy中的allowPrivilegeEscalation字段为false
577
+ k8spspapparmor:约束AppArmor字段列表
578
+ k8spspcapabilities:限制PodSecurityPolicy中的allowedCapabilities和requiredDropCapabilities字段
579
+ k8spspflexvolumes:约束PodSecurityPolicy中的allowedFlexVolumes字段类型
580
+ k8spspforbiddensysctls:约束PodSecurityPolicy中的sysctls字段不能使用的name
581
+ k8spspfsgroup:控制PodSecurityPolicy中的fsGroup字段在限制范围内
582
+ k8spsphostfilesystem:约束PodSecurityPolicy中的hostPath字段的参数
583
+ k8spsphostnamespace:限制PodSecurityPolicy中的hostPID和hostIPC字段
584
+ k8spsphostnetworkingports:约束PodSecurityPolicy中的hostNetwork和hostPorts字段
585
+ k8spspprivilegedcontainer:禁止PodSecurityPolicy中的privileged字段为true
586
+ k8spspprocmount:约束PodSecurityPolicy中的allowedProcMountTypes字段
587
+ k8spspreadonlyrootfilesystem:约束PodSecurityPolicy中的readOnlyRootFilesystem字段
588
+ k8spspseccomp:约束PodSecurityPolicy上的seccomp.security.alpha.kubernetes.io/allowedProfileNames注解
589
+ k8spspselinuxv2:约束Pod定义SELinux配置的允许列表
590
+ k8spspallowedusers:约束PodSecurityPolicy中的runAsUser、runAsGroup、supplementalGroups和fsGroup字段
591
+ k8spspvolumetypes:约束PodSecurityPolicy中的volumes字段类型
536
592
  */
537
593
  Kind?: string;
538
594
  /**
@@ -2951,7 +3007,7 @@ export interface DescribeSupportedRuntimeRequest {
2951
3007
  */
2952
3008
  export interface AddVpcCniSubnetsRequest {
2953
3009
  /**
2954
- * 集群ID
3010
+ * 集群 ID,请[登录控制台](https://console.cloud.tencent.com/tke2/cluster)在集群列表复制ID
2955
3011
  */
2956
3012
  ClusterId: string;
2957
3013
  /**
@@ -3465,7 +3521,7 @@ export interface DeleteEdgeCVMInstancesResponse {
3465
3521
  */
3466
3522
  export interface DescribeIPAMDRequest {
3467
3523
  /**
3468
- * 集群ID
3524
+ * 集群 ID,请[登录控制台](https://console.cloud.tencent.com/tke2/cluster)在集群列表复制ID
3469
3525
  */
3470
3526
  ClusterId: string;
3471
3527
  }
@@ -3928,7 +3984,7 @@ export interface ModifyPrometheusAlertPolicyRequest {
3928
3984
  */
3929
3985
  export interface DescribeOpenPolicyListRequest {
3930
3986
  /**
3931
- * 集群ID
3987
+ * 集群ID,请从容器服务集群列表获取(https://console.cloud.tencent.com/tke2/cluster)
3932
3988
  */
3933
3989
  ClusterId: string;
3934
3990
  /**
@@ -5780,7 +5836,7 @@ export interface InstanceUpgradeClusterStatus {
5780
5836
  */
5781
5837
  export interface DescribeClusterRoutesRequest {
5782
5838
  /**
5783
- * 路由表名称。
5839
+ * 路由表名称。与集群 ID 一致,可以到[集群控制台](https://console.cloud.tencent.com/tke2)进行复制。
5784
5840
  */
5785
5841
  RouteTableName: string;
5786
5842
  /**
@@ -5927,11 +5983,11 @@ export interface EnableClusterAuditRequest {
5927
5983
  */
5928
5984
  ClusterId: string;
5929
5985
  /**
5930
- * CLS日志集ID
5986
+ * CLS日志集ID,可以通过cls接口或者控制台获取
5931
5987
  */
5932
5988
  LogsetId?: string;
5933
5989
  /**
5934
- * CLS日志主题ID
5990
+ * CLS日志主题ID,可以通过cls接口或者控制台获取
5935
5991
  */
5936
5992
  TopicId?: string;
5937
5993
  /**
@@ -7677,7 +7733,7 @@ export interface CreateCLSLogConfigRequest {
7677
7733
  */
7678
7734
  LogsetId?: string;
7679
7735
  /**
7680
- * 当前集群类型支持tkeeks
7736
+ * 当前集群类型支持tke(标准集群)、eks(serverless集群)
7681
7737
  */
7682
7738
  ClusterType?: string;
7683
7739
  }
@@ -10096,11 +10152,11 @@ export interface EnableEventPersistenceRequest {
10096
10152
  */
10097
10153
  ClusterId: string;
10098
10154
  /**
10099
- * cls服务的logsetID
10155
+ * cls服务的logsetID,通过cls接口或者控制台获取
10100
10156
  */
10101
10157
  LogsetId?: string;
10102
10158
  /**
10103
- * cls服务的topicID
10159
+ * cls服务的topicID,通过cls接口或者控制台获取
10104
10160
  */
10105
10161
  TopicId?: string;
10106
10162
  /**
@@ -10697,7 +10753,7 @@ export interface DescribeRouteTableConflictsRequest {
10697
10753
  */
10698
10754
  RouteTableCidrBlock: string;
10699
10755
  /**
10700
- * 路由表绑定的VPC
10756
+ * 路由表绑定的VPC,请到 [VPC 控制台](https://console.cloud.tencent.com/vpc/vpc)复制 VPC ID
10701
10757
  */
10702
10758
  VpcId: string;
10703
10759
  }
@@ -12840,6 +12896,7 @@ export interface GPUArgs {
12840
12896
  export interface RouteTableConflict {
12841
12897
  /**
12842
12898
  * 路由表类型。
12899
+ 枚举值:CcsCluster、Vpc、VpcRouteTable、CcsClusterRouteTable
12843
12900
  */
12844
12901
  RouteTableType?: string;
12845
12902
  /**
@@ -709,13 +709,13 @@ export interface RebootMachinesResponse {
709
709
  export interface InstanceChargePrepaid {
710
710
  /**
711
711
  * 后付费计费周期,单位(月):
712
- 1,2,3,4,5,,6,7, 8,9,10,11,12,24,36,48,60
712
+ 1,2,3,4,56,7, 8,9,10,11,12,24,36,48,60
713
713
  */
714
- Period: number;
714
+ Period?: number;
715
715
  /**
716
716
  * 预付费续费方式:
717
- - NOTIFY_AND_AUTO_RENEW:通知用户过期,且自动续费 (默认)
718
- - NOTIFY_AND_MANUAL_RENEW:通知用户过期,但不自动续费
717
+ - NOTIFY_AND_AUTO_RENEW:通知用户过期,且自动续费
718
+ - NOTIFY_AND_MANUAL_RENEW:通知用户过期,但不自动续费(默认)
719
719
  - DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知用户过期,也不自动续费
720
720
 
721
721
  */
@@ -956,6 +956,10 @@ export interface UpdateNativeNodePoolParam {
956
956
  * 期望节点数
957
957
  */
958
958
  Replicas?: number;
959
+ /**
960
+ * 是否更新存量节点
961
+ */
962
+ UpdateExistedNode?: boolean;
959
963
  /**
960
964
  * 数据盘列表
961
965
  */