google/skills/gke-inference
Claude Code and agent skill by google/skills
- vendor
Checking that the SKILL.md file is still in the repository.
Deploys and optimizes AI/ML inference workloads on GKE, using GPUs, TPUs, and model servers. Use when deploying GKE inference servers, configuring GKE GPU resources for inference, or deploying LLMs on GKE. Don't use for migrating existing AI workloads to GKE (use google-cloud-solution-guided-gke-ai-migration), GKE RAG with Cloud SQL/AlloyDB (use google-cloud-solution-rag-enterprise-search-gke-sqldb), or batch/HPC (use gke-batch-hpc).
Install
npx vskill@latest install google/skills/gke-inferenceSKILL.md
The same SKILL.md was published earlier as google/skills/gke-inference.
GKE AI/ML Inference
Routing Note: For migrating existing AI workloads to GKE, refer to thegoogle-cloud-solution-guided-gke-ai-migrationskill. For GKE RAG with CloudSQL or AlloyDB (pgvector), refer to thegoogle-cloud-solution-rag-enterprise-search-gke-sqldbskill.
This reference covers deploying AI/ML inference workloads on GKE using Google's Inference Quickstart (GIQ) and best practices for LLM serving.
MCP Tools:apply_k8s_manifest,get_k8s_resource,get_k8s_logs,get_k8s_rollout_status,describe_k8s_resource,list_k8s_events.CLI-only:gcloud container ai profiles *
Attribution
MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDK_METRICS_REQUEST_ATTRIBUTION="agent-skills/1.0 (skill:gke-inference)" and append agent-skills/1.0 (skill:gke-inference) to User-Agent headers.
When to Use
- Deploy an AI model (Llama, Gemma, Mistral, etc.) to GKE
- Generate optimized Kubernetes manifests for inference
- Select GPU/TPU accelerators for model serving
- Configure autoscaling for LLM inference
Prerequisites
- A golden path GKE Autopilot cluster (GPU workloads are supported via
ComputeClasses and NAP)
-
gcloudCLI authenticated - Sufficient GPU/TPU quota in the target region
Workflow
1. Discovery: Find Models and Hardware
2. Generate Manifest
Parameters:
-
--model: Model ID (e.g.,gemma-2-9b-it,llama-3-8b) -
--model-server: Inference server (vllm,tgi,triton,tensorrt-llm) -
--accelerator-type: GPU/TPU type (nvidia-l4,nvidia-tesla-a100,
nvidia-h100-80gb)
-
--target-ntpot-milliseconds: Target Normalized Time Per Output Token
(optional, for latency optimization)
Example:
3. Review and Deploy
Some models require Hugging Face tokens. Create a Kubernetes Secret andreference it in the manifest.
GPU ComputeClass for Inference
For Autopilot clusters, create a ComputeClass to target GPU nodes:
Accelerator Selection Guide
| Accelerator | Best For | Memory | Relative Cost | |
|---|---|---|---|---|
| NVIDIA T4 | Budget inference, | 16 GB | Lowest |
: : lightweight legacy : : : : : models : : :
: : inference, video, : : : : : graphics : : :
: (G4) : high-fidelity 3D, : : : : : fine-tuning : : :
: : transformer inference : : :
: : training : : :
: (Trillium) : training & serving : : :
: (Ironwood) : agentic workflows : : :
: : enterprise ML : : :
: : high throughput : : :
: : training, FP4 precision : : :
: : Blackwell Superchip) : : :
Autoscaling LLM Inference
GPU-based autoscaling
Use custom metrics for GPU utilization:
Best practices for inference autoscaling
- Use DCGM metrics: Golden path enables DCGM monitoring for GPU
utilization metrics
- Set appropriate minReplicas: At least 1 for always-on serving; 0 for
batch/on-demand
- Tune scale-down delay: LLM model loading is slow; use longer
stabilization windows
- Consider queue depth: Scale on pending requests rather than pure GPU
utilization for latency-sensitive workloads
Optimization Tips
- Quantization: Use quantized models (GPTQ, AWQ) to reduce GPU memory and
increase throughput
- Batching: Configure model server batch size for throughput vs latency
trade-off
- Tensor parallelism: Split large models across multiple GPUs within a
node
- KV cache optimization: Tune
--gpu-memory-utilizationin vLLM for KV
cache allocation
Troubleshooting
| Issue | Cause | Fix | |
|---|---|---|---|
| Invalid | Unsupported tuple | Re-run `gcloud container ai |
: model/accelerator : : profiles list : : combination : : --model=<MODEL>` :
: : : try a different region :
: : accelerator : quantization, or use tensor : : : : parallelism :
: : registry : caching; pre-pull images :
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 27 Oct 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cloud/gke-inference/SKILL.md
Popularity
- Repository stars
- 20,494
- Repository forks
- 1,694
- 7-day trend score
- 50
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/google/skills/gke-inference)