-
Notifications
You must be signed in to change notification settings - Fork 152
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3148 from GoogleCloudPlatform/release-candidate
Release v1.41.0
- Loading branch information
Showing
258 changed files
with
3,633 additions
and
813 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
community/examples/xpk-gke-a3-megagpu-files/config-map.yaml.tftpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: ${name} | ||
data: | ||
h100-mega-80gb-8: "${num_nodes}" |
73 changes: 73 additions & 0 deletions
73
community/examples/xpk-gke-a3-megagpu-files/kueue-xpk-configuration.yaml.tftpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
apiVersion: kueue.x-k8s.io/v1beta1 | ||
kind: ResourceFlavor | ||
metadata: | ||
name: 1xh100-mega-80gb-8 | ||
spec: | ||
nodeLabels: | ||
cloud.google.com/gke-accelerator: nvidia-h100-mega-80gb | ||
--- | ||
|
||
apiVersion: kueue.x-k8s.io/v1beta1 | ||
kind: ClusterQueue | ||
metadata: | ||
name: cluster-queue | ||
spec: | ||
preemption: | ||
reclaimWithinCohort: Never # Don't preempt other queues in the cohort. | ||
withinClusterQueue: LowerPriority | ||
namespaceSelector: {} # match all. | ||
resourceGroups: | ||
- coveredResources: ["nvidia.com/gpu"] | ||
flavors: | ||
- name: 1xh100-mega-80gb-8 | ||
resources: | ||
- name: "nvidia.com/gpu" | ||
nominalQuota: ${num_chips} | ||
--- | ||
apiVersion: kueue.x-k8s.io/v1beta1 | ||
kind: LocalQueue | ||
metadata: | ||
namespace: default | ||
name: multislice-queue | ||
spec: | ||
clusterQueue: cluster-queue | ||
--- | ||
apiVersion: scheduling.k8s.io/v1 | ||
kind: PriorityClass | ||
metadata: | ||
name: very-low | ||
value: 100 | ||
globalDefault: false | ||
description: "Very Low" | ||
--- | ||
apiVersion: scheduling.k8s.io/v1 | ||
kind: PriorityClass | ||
metadata: | ||
name: low | ||
value: 250 | ||
globalDefault: false | ||
description: "Low" | ||
--- | ||
apiVersion: scheduling.k8s.io/v1 | ||
kind: PriorityClass | ||
metadata: | ||
name: medium | ||
value: 500 | ||
globalDefault: false | ||
description: "Medium" | ||
--- | ||
apiVersion: scheduling.k8s.io/v1 | ||
kind: PriorityClass | ||
metadata: | ||
name: high | ||
value: 750 | ||
globalDefault: false | ||
description: "High" | ||
--- | ||
apiVersion: scheduling.k8s.io/v1 | ||
kind: PriorityClass | ||
metadata: | ||
name: very-high | ||
value: 1000 | ||
globalDefault: false | ||
description: "Very High" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
# Copyright 2024 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
--- | ||
|
||
blueprint_name: xpk-gke-a3-megagpu | ||
|
||
vars: | ||
project_id: ## Set GCP Project ID Here ## | ||
deployment_name: xpk-gke-a3-megagpu | ||
region: us-central1 | ||
zone: us-central1-c | ||
|
||
# Cidr block containing the IP of the machine calling terraform. | ||
# The following line must be updated for this example to work. | ||
authorized_cidr: <your-ip-address>/32 | ||
|
||
deployment_groups: | ||
- group: primary | ||
modules: | ||
- id: network1 | ||
source: modules/network/vpc | ||
settings: | ||
subnetwork_name: xpk-gke-a3-megagpu-subnet | ||
secondary_ranges: | ||
xpk-gke-a3-megagpu-subnet: | ||
- range_name: pods | ||
ip_cidr_range: 10.4.0.0/14 | ||
- range_name: services | ||
ip_cidr_range: 10.0.32.0/20 | ||
|
||
- id: gpunets | ||
source: modules/network/multivpc | ||
settings: | ||
network_name_prefix: $(vars.deployment_name)-gpunet | ||
global_ip_address_range: 192.169.0.0/16 | ||
network_count: 8 | ||
subnetwork_cidr_suffix: 24 | ||
|
||
- id: gke_cluster | ||
source: modules/scheduler/gke-cluster | ||
use: [network1, gpunets] | ||
settings: | ||
master_authorized_networks: | ||
- cidr_block: $(vars.authorized_cidr) # Allows your machine run kubectl command. It's required for the multi-network setup. | ||
display_name: "kubectl-access-network" | ||
system_node_pool_machine_type: "e2-standard-32" | ||
outputs: [instructions] | ||
|
||
- id: group_placement_0 | ||
source: modules/compute/resource-policy | ||
settings: | ||
name: $(vars.deployment_name)-gp-np-0 | ||
group_placement_max_distance: 2 | ||
|
||
- id: group_placement_1 | ||
source: modules/compute/resource-policy | ||
settings: | ||
name: $(vars.deployment_name)-gp-np-1 | ||
group_placement_max_distance: 2 | ||
|
||
- id: a3_megagpu_pool_0 | ||
source: modules/compute/gke-node-pool | ||
use: [gke_cluster, gpunets, group_placement_0] | ||
settings: | ||
name: a3-megagpu-pool-0 | ||
machine_type: a3-megagpu-8g | ||
autoscaling_total_min_nodes: 2 | ||
initial_node_count: 2 | ||
zones: [$(vars.zone)] | ||
host_maintenance_interval: PERIODIC | ||
outputs: [instructions] | ||
|
||
- id: a3_megagpu_pool_1 | ||
source: modules/compute/gke-node-pool | ||
use: [gke_cluster, gpunets, group_placement_1] | ||
settings: | ||
name: a3-megagpu-pool-1 | ||
machine_type: a3-megagpu-8g | ||
autoscaling_total_min_nodes: 2 | ||
initial_node_count: 2 | ||
zones: [$(vars.zone)] | ||
host_maintenance_interval: PERIODIC | ||
outputs: [instructions] | ||
|
||
- id: workload_component_install | ||
source: modules/management/kubectl-apply | ||
use: [gke_cluster] | ||
settings: | ||
kueue: | ||
install: true | ||
config_path: $(ghpc_stage("xpk-gke-a3-megagpu-files"))/kueue-xpk-configuration.yaml.tftpl | ||
config_template_vars: {num_chips: "32"} | ||
jobset: | ||
install: true | ||
|
||
- id: topology_aware_scheduler_install | ||
source: community/modules/compute/gke-topology-scheduler | ||
use: [gke_cluster] | ||
|
||
- id: workload_configmap | ||
source: modules/management/kubectl-apply | ||
use: [gke_cluster] | ||
settings: | ||
apply_manifests: | ||
- source: $(ghpc_stage("xpk-gke-a3-megagpu-files"))/config-map.yaml.tftpl | ||
template_vars: {name: "xpk-gke-a3-megagpu-resources-configmap", num_nodes: "4"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.