AI Cloud Architect

Cost-Effective AI with Ollama, GKE GPU Sharing, and vCluster

GoogleHow-to by Abdel Sghiouar and Saiyam PathakGoogle Cloud Blog (developers and practitioners)

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

A walkthrough for running Ollama with Mistral on GKE Autopilot L4 GPUs using time-sharing, with separate vClusters per team on the same GPU node.

Who it is for

Platform teams on GKE that want several teams to share GPUs for model serving while keeping environments isolated.

Key points

  • GPU time-sharing is set with a nodeSelector allowing up to 5 shared clients per GPU on nvidia-l4 nodes.
  • Each vCluster gets its own control plane while the pods share the same host node.
  • The example uses the open Mistral model served by Ollama, with no price or region given beyond a placeholder.

The same at other vendors

Timeline

Posts about Google Kubernetes Engine, oldest first.

  1. Generally availableGKE Inference Gateway and Quickstart are GA · Google · Announcement
  2. How-toBoosting LLM Performance with Tiered KV Cache on Google Kubernetes Engine · Google · How-to
  3. Blog postAgent Factory Recap: Supercharging Agents on GKE with Agent Sandbox and Pod Snapshots · Google · Blog post
  4. This postCost-Effective AI with Ollama, GKE GPU Sharing, and vCluster
  5. How-toExperimenting with GPUs: GKE managed DRANET and Inference Gateway AI Deployment · Google · How-to
  6. How-toBuild and Deploy a Remote MCP Server to GKE in 30 Minutes · Google · How-to
  7. How-toScaling LLM Inference: Multi-Node KV Cache Offloading with GKE & Managed Lustre · Google · How-to
  8. Blog postSecuring AI at Enterprise Scale: The Google Kubernetes Engine Blueprint · Google · Blog post
  9. How-toExperimenting with ClusterNetworkPolicy in GKE · Google · How-to
Show all 10 posts
  1. Generally availableGKE Inference Gateway and Quickstart are GA · Google · Announcement
  2. How-toBoosting LLM Performance with Tiered KV Cache on Google Kubernetes Engine · Google · How-to
  3. Blog postAgent Factory Recap: Supercharging Agents on GKE with Agent Sandbox and Pod Snapshots · Google · Blog post
  4. This postCost-Effective AI with Ollama, GKE GPU Sharing, and vCluster
  5. How-toExperimenting with GPUs: GKE managed DRANET and Inference Gateway AI Deployment · Google · How-to
  6. How-toBuild and Deploy a Remote MCP Server to GKE in 30 Minutes · Google · How-to
  7. How-toScaling LLM Inference: Multi-Node KV Cache Offloading with GKE & Managed Lustre · Google · How-to
  8. Blog postSecuring AI at Enterprise Scale: The Google Kubernetes Engine Blueprint · Google · Blog post
  9. How-toExperimenting with ClusterNetworkPolicy in GKE · Google · How-to
  10. PreviewScaling massive AI/ML workloads with IPv6 on Google Kubernetes Engine clusters · Google · Announcement