/* * 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 ClusterNetworkSettings : AbstractModel { /// /// 用于分配集群容器和服务 IP 的 CIDR,不得与 VPC CIDR 冲突,也不得与同 VPC 内其他集群 CIDR 冲突 /// [JsonProperty("ClusterCIDR")] public string ClusterCIDR{ get; set; } /// /// 是否忽略 ClusterCIDR 冲突错误, 默认不忽略 /// [JsonProperty("IgnoreClusterCIDRConflict")] public bool? IgnoreClusterCIDRConflict{ get; set; } /// /// 集群中每个Node上最大的Pod数量(默认为256) /// [JsonProperty("MaxNodePodNum")] public ulong? MaxNodePodNum{ get; set; } /// /// 集群最大的service数量(默认为256) /// [JsonProperty("MaxClusterServiceNum")] public ulong? MaxClusterServiceNum{ get; set; } /// /// 是否启用IPVS(默认不开启) /// [JsonProperty("Ipvs")] public bool? Ipvs{ get; set; } /// /// 集群的VPCID(如果创建空集群,为必传值,否则自动设置为和集群的节点保持一致) /// [JsonProperty("VpcId")] public string VpcId{ get; set; } /// /// 网络插件是否启用CNI(默认开启) /// [JsonProperty("Cni")] public bool? Cni{ 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 + "Ipvs", this.Ipvs); this.SetParamSimple(map, prefix + "VpcId", this.VpcId); this.SetParamSimple(map, prefix + "Cni", this.Cni); } } }