/* * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY * KIND, either express or implied. See the License for the * specific language governing permissions and limitations * under the License. */ namespace TencentCloud.Tke.V20180525.Models { using Newtonsoft.Json; using System.Collections.Generic; using TencentCloud.Common; public class ClusterCIDRSettings : AbstractModel { /// /// 用于分配集群容器和服务 IP 的 CIDR,不得与 VPC CIDR 冲突,也不得与同 VPC 内其他集群 CIDR 冲突。且网段范围必须在内网网段内,例如:10.1.0.0/14, 192.168.0.1/18,172.16.0.0/16。 /// [JsonProperty("ClusterCIDR")] public string ClusterCIDR{ get; set; } /// /// 是否忽略 ClusterCIDR 冲突错误, 默认不忽略 /// [JsonProperty("IgnoreClusterCIDRConflict")] public bool? IgnoreClusterCIDRConflict{ get; set; } /// /// 集群中每个Node上最大的Pod数量。取值范围4~256。不为2的幂值时会向上取最接近的2的幂值。 /// [JsonProperty("MaxNodePodNum")] public ulong? MaxNodePodNum{ get; set; } /// /// 集群最大的service数量。取值范围32~32768,不为2的幂值时会向上取最接近的2的幂值。 /// [JsonProperty("MaxClusterServiceNum")] public ulong? MaxClusterServiceNum{ get; set; } /// /// 用于分配集群服务 IP 的 CIDR,不得与 VPC CIDR 冲突,也不得与同 VPC 内其他集群 CIDR 冲突。且网段范围必须在内网网段内,例如:10.1.0.0/14, 192.168.0.1/18,172.16.0.0/16。 /// [JsonProperty("ServiceCIDR")] public string ServiceCIDR{ get; set; } /// /// VPC-CNI网络模式下,弹性网卡的子网Id。 /// [JsonProperty("EniSubnetIds")] public string[] EniSubnetIds{ get; set; } /// /// VPC-CNI网络模式下,弹性网卡IP的回收时间,取值范围[300,15768000) /// [JsonProperty("ClaimExpiredSeconds")] public long? ClaimExpiredSeconds{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary map, string prefix) { this.SetParamSimple(map, prefix + "ClusterCIDR", this.ClusterCIDR); this.SetParamSimple(map, prefix + "IgnoreClusterCIDRConflict", this.IgnoreClusterCIDRConflict); this.SetParamSimple(map, prefix + "MaxNodePodNum", this.MaxNodePodNum); this.SetParamSimple(map, prefix + "MaxClusterServiceNum", this.MaxClusterServiceNum); this.SetParamSimple(map, prefix + "ServiceCIDR", this.ServiceCIDR); this.SetParamArraySimple(map, prefix + "EniSubnetIds.", this.EniSubnetIds); this.SetParamSimple(map, prefix + "ClaimExpiredSeconds", this.ClaimExpiredSeconds); } } }