feat(gke): add gpuSharing field to ComputeClass GPU spec#358
Merged
Peefy merged 1 commit intokcl-lang:mainfrom Apr 26, 2026
Merged
feat(gke): add gpuSharing field to ComputeClass GPU spec#358Peefy merged 1 commit intokcl-lang:mainfrom
Peefy merged 1 commit intokcl-lang:mainfrom
Conversation
d9af299 to
25765bd
Compare
Add the CloudGoogleComV1ComputeClassSpecPrioritiesItems0GpuSharing schema and wire it into the Gpu priorities schema. This exposes the GPU sharing and MIG partitioning support added in GKE 1.35.2-gke.1485000. New fields under spec.priorities[].gpu.gpuSharing: - sharingStrategy: TIME_SHARING or MPS - maxSharedClientsPerGPU: 2–48 (required with a sharing strategy) - gpuPartitionSize: MIG profile string, e.g. "1g.24gb" Ref: https://cloud.google.com/kubernetes-engine/docs/reference/crds/computeclass Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Signed-off-by: David Bellemare <bellemare.david@gmail.com>
25765bd to
e5d9649
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
1. Please confirm that you have read the document before PR submitted
2. Contact Information(Optional)
If it is convenient, please provide your contact information so we can reach you when processing the PR:
What does this PR do?
Adds
gpuSharingsupport to thespec.priorities[].gpufield of the GKEComputeClassCRD schema.GKE 1.35.2-gke.1485000 introduced a
gpuSharingobject under the GPU section that enables:gpuPartitionSize)Without this change, any
ComputeClassthat usesgpuSharingfails KCL schema validation with an unknown-attribute error.New schema
A new
CloudGoogleComV1ComputeClassSpecPrioritiesItems0GpuSharingschema is added:sharingStrategystrTIME_SHARINGorMPSmaxSharedClientsPerGPUintgpuPartitionSizestr"1g.24gb". Omit to skip partitioning.Example
Ref: https://cloud.google.com/kubernetes-engine/docs/reference/crds/computeclass