Skip to content

Commit 9f6f02b

Browse files
Google APIscopybara-github
authored andcommitted
feat: add update support for accelerator config
feat: add support for disabling pod IP cidr overprovision. This feature requires special allowlisting for the projects. PiperOrigin-RevId: 522103275
1 parent d9592ed commit 9f6f02b

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

google/container/v1beta1/cluster_service.proto

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,20 @@ message NodeNetworkConfig {
892892

893893
// Network bandwidth tier configuration.
894894
optional NetworkPerformanceConfig network_performance_config = 11;
895+
896+
// [PRIVATE FIELD]
897+
// Pod CIDR size overprovisioning config for the nodepool.
898+
//
899+
// Pod CIDR size per node depends on max_pods_per_node. By default, the value
900+
// of max_pods_per_node is rounded off to next power of 2 and we then double
901+
// that to get the size of pod CIDR block per node.
902+
// Example: max_pods_per_node of 30 would result in 64 IPs (/26).
903+
//
904+
// This config can disable the doubling of IPs (we still round off to next
905+
// power of 2)
906+
// Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
907+
// overprovisioning is disabled.
908+
PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;
895909
}
896910

897911
// A set of Shielded Instance options.
@@ -1367,6 +1381,14 @@ message NetworkPolicy {
13671381
bool enabled = 2;
13681382
}
13691383

1384+
// [PRIVATE FIELD]
1385+
// Config for pod CIDR size overprovisioning.
1386+
message PodCIDROverprovisionConfig {
1387+
// Whether Pod CIDR overprovisioning is disabled.
1388+
// Note: Pod CIDR overprovisioning is enabled by default.
1389+
bool disable = 1;
1390+
}
1391+
13701392
// Configuration for controlling how IPs are allocated in the cluster.
13711393
message IPAllocationPolicy {
13721394
// Possible values for IP stack type
@@ -1530,6 +1552,20 @@ message IPAllocationPolicy {
15301552
// The ipv6 access type (internal or external) when create_subnetwork is true
15311553
IPv6AccessType ipv6_access_type = 17;
15321554

1555+
// [PRIVATE FIELD]
1556+
// Pod CIDR size overprovisioning config for the cluster.
1557+
//
1558+
// Pod CIDR size per node depends on max_pods_per_node. By default, the value
1559+
// of max_pods_per_node is doubled and then rounded off to next power of 2 to
1560+
// get the size of pod CIDR block per node.
1561+
// Example: max_pods_per_node of 30 would result in 64 IPs (/26).
1562+
//
1563+
// This config can disable the doubling of IPs (we still round off to next
1564+
// power of 2)
1565+
// Example: max_pods_per_node of 30 will result in 32 IPs (/27) when
1566+
// overprovisioning is disabled.
1567+
PodCIDROverprovisionConfig pod_cidr_overprovision_config = 21;
1568+
15331569
// Output only. [Output only] The subnet's IPv6 CIDR block used by nodes and
15341570
// pods.
15351571
string subnet_ipv6_cidr_block = 22

0 commit comments

Comments
 (0)