Files
g.hnyhua.cn/TencentCloud/Tke/V20180525/Models/ClusterNetworkSettings.cs
2026-02-07 15:48:27 +08:00

86 lines
3.0 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/*
* 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
{
/// <summary>
/// 用于分配集群容器和服务 IP 的 CIDR不得与 VPC CIDR 冲突,也不得与同 VPC 内其他集群 CIDR 冲突
/// </summary>
[JsonProperty("ClusterCIDR")]
public string ClusterCIDR{ get; set; }
/// <summary>
/// 是否忽略 ClusterCIDR 冲突错误, 默认不忽略
/// </summary>
[JsonProperty("IgnoreClusterCIDRConflict")]
public bool? IgnoreClusterCIDRConflict{ get; set; }
/// <summary>
/// 集群中每个Node上最大的Pod数量(默认为256)
/// </summary>
[JsonProperty("MaxNodePodNum")]
public ulong? MaxNodePodNum{ get; set; }
/// <summary>
/// 集群最大的service数量(默认为256)
/// </summary>
[JsonProperty("MaxClusterServiceNum")]
public ulong? MaxClusterServiceNum{ get; set; }
/// <summary>
/// 是否启用IPVS(默认不开启)
/// </summary>
[JsonProperty("Ipvs")]
public bool? Ipvs{ get; set; }
/// <summary>
/// 集群的VPCID如果创建空集群为必传值否则自动设置为和集群的节点保持一致
/// </summary>
[JsonProperty("VpcId")]
public string VpcId{ get; set; }
/// <summary>
/// 网络插件是否启用CNI(默认开启)
/// </summary>
[JsonProperty("Cni")]
public bool? Cni{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> 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);
}
}
}