Skip to content

Commit

Permalink
feat: add SoleTenantConfig API
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 536516473
  • Loading branch information
Google APIs authored and Copybara-Service committed May 30, 2023
1 parent 9b1c253 commit 0fb1181
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions google/container/v1/cluster_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,9 @@ message NodeConfig {
// Parameters for the node ephemeral storage using Local SSDs.
// If unspecified, ephemeral storage is backed by the boot disk.
EphemeralStorageLocalSsdConfig ephemeral_storage_local_ssd_config = 41;

// Parameters for node pools to be backed by shared sole tenant node groups.
SoleTenantConfig sole_tenant_config = 42;
}

// Specifies options for controlling advanced machine features.
Expand Down Expand Up @@ -980,6 +983,40 @@ message ReservationAffinity {
repeated string values = 3;
}

// SoleTenantConfig contains the NodeAffinities to specify what shared sole
// tenant node groups should back the node pool.
message SoleTenantConfig {
// Specifies the NodeAffinity key, values, and affinity operator according to
// [shared sole tenant node group
// affinities](https://cloud.google.com/compute/docs/nodes/sole-tenant-nodes#node_affinity_and_anti-affinity).
message NodeAffinity {
// Operator allows user to specify affinity or anti-affinity for the
// given key values.
enum Operator {
// Invalid or unspecified affinity operator.
OPERATOR_UNSPECIFIED = 0;

// Affinity operator.
IN = 1;

// Anti-affinity operator.
NOT_IN = 2;
}

// Key for NodeAffinity.
string key = 1;

// Operator for NodeAffinity.
Operator operator = 2;

// Values for NodeAffinity.
repeated string values = 3;
}

// NodeAffinities used to match to a shared sole tenant node group.
repeated NodeAffinity node_affinities = 1;
}

// Kubernetes taint is composed of three fields: key, value, and effect. Effect
// can only be one of three types: NoSchedule, PreferNoSchedule or NoExecute.
//
Expand Down

0 comments on commit 0fb1181

Please sign in to comment.