Skip to content

Commit bf2e891

Browse files
feat: [container] Add Multi-networking API (#4426)
* feat: Add Multi-networking API feat: Add policy_name to PlacementPolicy message within a node pool PiperOrigin-RevId: 549032622 Source-Link: googleapis/googleapis@fded3ea Source-Link: googleapis/googleapis-gen@cc7294a Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNvbnRhaW5lci8uT3dsQm90LnlhbWwiLCJoIjoiY2M3Mjk0YWRhMzA1ODI1MTE3ZWRmYmUyODM2NmZlYjUwZTMyOTQxMCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent dcb6f87 commit bf2e891

4 files changed

Lines changed: 975 additions & 1 deletion

File tree

packages/google-container/protos/google/container/v1/cluster_service.proto

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,13 +921,45 @@ message NodeNetworkConfig {
921921
// overprovisioning is disabled.
922922
PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;
923923

924+
// We specify the additional node networks for this node pool using this list.
925+
// Each node network corresponds to an additional interface
926+
repeated AdditionalNodeNetworkConfig additional_node_network_configs = 14;
927+
928+
// We specify the additional pod networks for this node pool using this list.
929+
// Each pod network corresponds to an additional alias IP range for the node
930+
repeated AdditionalPodNetworkConfig additional_pod_network_configs = 15;
931+
924932
// Output only. [Output only] The utilization of the IPv4 range for the pod.
925933
// The ratio is Usage/[Total number of IPs in the secondary range],
926934
// Usage=numNodes*numZones*podIPsPerNode.
927935
double pod_ipv4_range_utilization = 16
928936
[(google.api.field_behavior) = OUTPUT_ONLY];
929937
}
930938

939+
// AdditionalNodeNetworkConfig is the configuration for additional node networks
940+
// within the NodeNetworkConfig message
941+
message AdditionalNodeNetworkConfig {
942+
// Name of the VPC where the additional interface belongs
943+
string network = 1;
944+
945+
// Name of the subnetwork where the additional interface belongs
946+
string subnetwork = 2;
947+
}
948+
949+
// AdditionalPodNetworkConfig is the configuration for additional pod networks
950+
// within the NodeNetworkConfig message
951+
message AdditionalPodNetworkConfig {
952+
// Name of the subnetwork where the additional pod network belongs
953+
string subnetwork = 1;
954+
955+
// The name of the secondary range on the subnet which provides IP address for
956+
// this pod range
957+
string secondary_pod_range = 2;
958+
959+
// The maximum number of pods per node which use this pod network
960+
optional MaxPodsConstraint max_pods_per_node = 3;
961+
}
962+
931963
// A set of Shielded Instance options.
932964
message ShieldedInstanceConfig {
933965
// Defines whether the instance has Secure Boot enabled.
@@ -3394,6 +3426,11 @@ message NodePool {
33943426

33953427
// The type of placement.
33963428
Type type = 1;
3429+
3430+
// If set, refers to the name of a custom resource policy supplied by the
3431+
// user. The resource policy must be in the same project and region as the
3432+
// node pool. If not found, InvalidArgument error is returned.
3433+
string policy_name = 3;
33973434
}
33983435

33993436
// The name of the node pool.
@@ -4267,6 +4304,9 @@ message NetworkConfig {
42674304
// cluster.
42684305
GatewayAPIConfig gateway_api_config = 16;
42694306

4307+
// Whether multi-networking is enabled for this cluster.
4308+
bool enable_multi_networking = 17;
4309+
42704310
// Network bandwidth tier configuration.
42714311
ClusterNetworkPerformanceConfig network_performance_config = 18;
42724312

packages/google-container/protos/protos.d.ts

Lines changed: 239 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)