Skip to content

Commit 0b7078e

Browse files
Google APIscopybara-github
authored andcommitted
feat: Add support for updating additional pod IPv4 ranges for Standard and Autopilot clusters
Users can append more pod ranges by name to an existing cluster at the cluster level. When users or Node Auto-provisioning create new node pools, GKE will select the most available pod range and assign it to the node pool. These pod ranges can be removed once no node pool is using it. PiperOrigin-RevId: 522620905
1 parent f0cec0b commit 0b7078e

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

google/container/v1beta1/cluster_service.proto

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,6 +1574,13 @@ message IPAllocationPolicy {
15741574
// Output only. [Output only] The services IPv6 CIDR block for the cluster.
15751575
string services_ipv6_cidr_block = 23
15761576
[(google.api.field_behavior) = OUTPUT_ONLY];
1577+
1578+
// Output only. [Output only] The additional pod ranges that are added to the
1579+
// cluster. These pod ranges can be used by new node pools to allocate pod IPs
1580+
// automatically. Once the range is removed it will not show up in
1581+
// IPAllocationPolicy.
1582+
AdditionalPodRangesConfig additional_pod_ranges_config = 24
1583+
[(google.api.field_behavior) = OUTPUT_ONLY];
15771584
}
15781585

15791586
// Configuration for Binary Authorization.
@@ -2313,8 +2320,21 @@ message ClusterUpdate {
23132320
// If a stack type is provided and does not match the current stack type of
23142321
// the cluster, update will attempt to change the stack type to the new type.
23152322
StackType desired_stack_type = 119;
2323+
2324+
// The additional pod ranges to be added to the cluster. These pod ranges
2325+
// can be used by node pools to allocate pod IPs.
2326+
AdditionalPodRangesConfig additional_pod_ranges_config = 120;
2327+
2328+
// The additional pod ranges that are to be removed from the cluster.
2329+
// The pod ranges specified here must have been specified earlier in the
2330+
// 'additional_pod_ranges_config' argument.
2331+
AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121;
23162332
}
23172333

2334+
// AdditionalPodRangesConfig is the configuration for additional pod secondary
2335+
// ranges supporting the ClusterUpdate message.
2336+
message AdditionalPodRangesConfig {}
2337+
23182338
// This operation resource represents operations that may have happened or are
23192339
// happening on the cluster. All fields are output only.
23202340
message Operation {

0 commit comments

Comments
 (0)