Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [container] Add Multi-networking API #4426

Merged
merged 2 commits into from
Jul 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
239 changes: 239 additions & 0 deletions packages/google-container/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading