|
71 | 71 | "MasterAuthorizedNetworksConfig",
|
72 | 72 | "LegacyAbac",
|
73 | 73 | "NetworkPolicy",
|
| 74 | + "PodCIDROverprovisionConfig", |
74 | 75 | "IPAllocationPolicy",
|
75 | 76 | "BinaryAuthorization",
|
76 | 77 | "PodSecurityPolicyConfig",
|
@@ -902,6 +903,20 @@ class NodeNetworkConfig(proto.Message):
|
902 | 903 | Network bandwidth tier configuration.
|
903 | 904 |
|
904 | 905 | This field is a member of `oneof`_ ``_network_performance_config``.
|
| 906 | + pod_cidr_overprovision_config (google.cloud.container_v1beta1.types.PodCIDROverprovisionConfig): |
| 907 | + [PRIVATE FIELD] Pod CIDR size overprovisioning config for |
| 908 | + the nodepool. |
| 909 | +
|
| 910 | + Pod CIDR size per node depends on max_pods_per_node. By |
| 911 | + default, the value of max_pods_per_node is rounded off to |
| 912 | + next power of 2 and we then double that to get the size of |
| 913 | + pod CIDR block per node. Example: max_pods_per_node of 30 |
| 914 | + would result in 64 IPs (/26). |
| 915 | +
|
| 916 | + This config can disable the doubling of IPs (we still round |
| 917 | + off to next power of 2) Example: max_pods_per_node of 30 |
| 918 | + will result in 32 IPs (/27) when overprovisioning is |
| 919 | + disabled. |
905 | 920 | """
|
906 | 921 |
|
907 | 922 | class NetworkPerformanceConfig(proto.Message):
|
@@ -972,6 +987,11 @@ class Tier(proto.Enum):
|
972 | 987 | optional=True,
|
973 | 988 | message=NetworkPerformanceConfig,
|
974 | 989 | )
|
| 990 | + pod_cidr_overprovision_config: "PodCIDROverprovisionConfig" = proto.Field( |
| 991 | + proto.MESSAGE, |
| 992 | + number=13, |
| 993 | + message="PodCIDROverprovisionConfig", |
| 994 | + ) |
975 | 995 |
|
976 | 996 |
|
977 | 997 | class ShieldedInstanceConfig(proto.Message):
|
@@ -1933,6 +1953,22 @@ class Provider(proto.Enum):
|
1933 | 1953 | )
|
1934 | 1954 |
|
1935 | 1955 |
|
| 1956 | +class PodCIDROverprovisionConfig(proto.Message): |
| 1957 | + r"""[PRIVATE FIELD] Config for pod CIDR size overprovisioning. |
| 1958 | +
|
| 1959 | + Attributes: |
| 1960 | + disable (bool): |
| 1961 | + Whether Pod CIDR overprovisioning is |
| 1962 | + disabled. Note: Pod CIDR overprovisioning is |
| 1963 | + enabled by default. |
| 1964 | + """ |
| 1965 | + |
| 1966 | + disable: bool = proto.Field( |
| 1967 | + proto.BOOL, |
| 1968 | + number=1, |
| 1969 | + ) |
| 1970 | + |
| 1971 | + |
1936 | 1972 | class IPAllocationPolicy(proto.Message):
|
1937 | 1973 | r"""Configuration for controlling how IPs are allocated in the
|
1938 | 1974 | cluster.
|
@@ -2075,6 +2111,20 @@ class IPAllocationPolicy(proto.Message):
|
2075 | 2111 | ipv6_access_type (google.cloud.container_v1beta1.types.IPAllocationPolicy.IPv6AccessType):
|
2076 | 2112 | The ipv6 access type (internal or external) when
|
2077 | 2113 | create_subnetwork is true
|
| 2114 | + pod_cidr_overprovision_config (google.cloud.container_v1beta1.types.PodCIDROverprovisionConfig): |
| 2115 | + [PRIVATE FIELD] Pod CIDR size overprovisioning config for |
| 2116 | + the cluster. |
| 2117 | +
|
| 2118 | + Pod CIDR size per node depends on max_pods_per_node. By |
| 2119 | + default, the value of max_pods_per_node is doubled and then |
| 2120 | + rounded off to next power of 2 to get the size of pod CIDR |
| 2121 | + block per node. Example: max_pods_per_node of 30 would |
| 2122 | + result in 64 IPs (/26). |
| 2123 | +
|
| 2124 | + This config can disable the doubling of IPs (we still round |
| 2125 | + off to next power of 2) Example: max_pods_per_node of 30 |
| 2126 | + will result in 32 IPs (/27) when overprovisioning is |
| 2127 | + disabled. |
2078 | 2128 | subnet_ipv6_cidr_block (str):
|
2079 | 2129 | Output only. [Output only] The subnet's IPv6 CIDR block used
|
2080 | 2130 | by nodes and pods.
|
@@ -2183,6 +2233,11 @@ class IPv6AccessType(proto.Enum):
|
2183 | 2233 | number=17,
|
2184 | 2234 | enum=IPv6AccessType,
|
2185 | 2235 | )
|
| 2236 | + pod_cidr_overprovision_config: "PodCIDROverprovisionConfig" = proto.Field( |
| 2237 | + proto.MESSAGE, |
| 2238 | + number=21, |
| 2239 | + message="PodCIDROverprovisionConfig", |
| 2240 | + ) |
2186 | 2241 | subnet_ipv6_cidr_block: str = proto.Field(
|
2187 | 2242 | proto.STRING,
|
2188 | 2243 | number=22,
|
|
0 commit comments