Skip to content

Commit

Permalink
feat: Add Multi-networking API
Browse files Browse the repository at this point in the history
feat: Add policy_name to PlacementPolicy message within a node pool

PiperOrigin-RevId: 549032622
  • Loading branch information
Google APIs authored and Copybara-Service committed Jul 18, 2023
1 parent 0d4e829 commit fded3ea
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions google/container/v1/cluster_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -921,13 +921,45 @@ message NodeNetworkConfig {
// overprovisioning is disabled.
PodCIDROverprovisionConfig pod_cidr_overprovision_config = 13;

// We specify the additional node networks for this node pool using this list.
// Each node network corresponds to an additional interface
repeated AdditionalNodeNetworkConfig additional_node_network_configs = 14;

// We specify the additional pod networks for this node pool using this list.
// Each pod network corresponds to an additional alias IP range for the node
repeated AdditionalPodNetworkConfig additional_pod_network_configs = 15;

// Output only. [Output only] The utilization of the IPv4 range for the pod.
// The ratio is Usage/[Total number of IPs in the secondary range],
// Usage=numNodes*numZones*podIPsPerNode.
double pod_ipv4_range_utilization = 16
[(google.api.field_behavior) = OUTPUT_ONLY];
}

// AdditionalNodeNetworkConfig is the configuration for additional node networks
// within the NodeNetworkConfig message
message AdditionalNodeNetworkConfig {
// Name of the VPC where the additional interface belongs
string network = 1;

// Name of the subnetwork where the additional interface belongs
string subnetwork = 2;
}

// AdditionalPodNetworkConfig is the configuration for additional pod networks
// within the NodeNetworkConfig message
message AdditionalPodNetworkConfig {
// Name of the subnetwork where the additional pod network belongs
string subnetwork = 1;

// The name of the secondary range on the subnet which provides IP address for
// this pod range
string secondary_pod_range = 2;

// The maximum number of pods per node which use this pod network
optional MaxPodsConstraint max_pods_per_node = 3;
}

// A set of Shielded Instance options.
message ShieldedInstanceConfig {
// Defines whether the instance has Secure Boot enabled.
Expand Down Expand Up @@ -3394,6 +3426,11 @@ message NodePool {

// The type of placement.
Type type = 1;

// If set, refers to the name of a custom resource policy supplied by the
// user. The resource policy must be in the same project and region as the
// node pool. If not found, InvalidArgument error is returned.
string policy_name = 3;
}

// The name of the node pool.
Expand Down Expand Up @@ -4267,6 +4304,9 @@ message NetworkConfig {
// cluster.
GatewayAPIConfig gateway_api_config = 16;

// Whether multi-networking is enabled for this cluster.
bool enable_multi_networking = 17;

// Network bandwidth tier configuration.
ClusterNetworkPerformanceConfig network_performance_config = 18;

Expand Down

0 comments on commit fded3ea

Please sign in to comment.