Skip to content

Commit 2ddfcb8

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: 522620935
1 parent 0b7078e commit 2ddfcb8

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

google/container/v1/cluster_service.proto

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,13 @@ message IPAllocationPolicy {
15021502
// Output only. [Output only] The services IPv6 CIDR block for the cluster.
15031503
string services_ipv6_cidr_block = 23
15041504
[(google.api.field_behavior) = OUTPUT_ONLY];
1505+
1506+
// Output only. [Output only] The additional pod ranges that are added to the
1507+
// cluster. These pod ranges can be used by new node pools to allocate pod IPs
1508+
// automatically. Once the range is removed it will not show up in
1509+
// IPAllocationPolicy.
1510+
AdditionalPodRangesConfig additional_pod_ranges_config = 24
1511+
[(google.api.field_behavior) = OUTPUT_ONLY];
15051512
}
15061513

15071514
// A Google Kubernetes Engine cluster.
@@ -2062,8 +2069,21 @@ message ClusterUpdate {
20622069
// If a stack type is provided and does not match the current stack type of
20632070
// the cluster, update will attempt to change the stack type to the new type.
20642071
StackType desired_stack_type = 119;
2072+
2073+
// The additional pod ranges to be added to the cluster. These pod ranges
2074+
// can be used by node pools to allocate pod IPs.
2075+
AdditionalPodRangesConfig additional_pod_ranges_config = 120;
2076+
2077+
// The additional pod ranges that are to be removed from the cluster.
2078+
// The pod ranges specified here must have been specified earlier in the
2079+
// 'additional_pod_ranges_config' argument.
2080+
AdditionalPodRangesConfig removed_additional_pod_ranges_config = 121;
20652081
}
20662082

2083+
// AdditionalPodRangesConfig is the configuration for additional pod secondary
2084+
// ranges supporting the ClusterUpdate message.
2085+
message AdditionalPodRangesConfig {}
2086+
20672087
// This operation resource represents operations that may have happened or are
20682088
// happening on the cluster. All fields are output only.
20692089
message Operation {

0 commit comments

Comments
 (0)