feat: add SoleTenantConfig API

PiperOrigin-RevId: 536516473
pull/807/head^2
Google APIs 2 years ago committed by Copybara-Service
parent 9b1c253009
commit 0fb1181647
  1. 37
      google/container/v1/cluster_service.proto

@ -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.
@ -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.
//

Loading…
Cancel
Save