
Skill
gke-inference-quickstart
deploy AI inference workloads on GKE
Description
Deploy optimized AI/ML inference workloads on GKE using Google's Inference Quickstart (GIQ). Covers model discovery, manifest generation, and deployment using native MCP tools and CLI.
SKILL.md
GKE Inference Quickstart (GIQ)
Purpose
This skill guides the deployment of AI/ML inference workloads on GKE using GIQ. It leverages gcloud container ai profiles manifests create to create optimized Kubernetes manifests based on Google's best practices and benchmarks.
When to Use
- Goal: Deploy an AI model (e.g., Llama, Gemma, Mistral) to GKE.
- Goal: Generate a Kubernetes manifest for inference.
- Context: User asks about "GIQ", "Inference Quickstart", or "AI benchmarks" on GKE.
Prerequisites
- A GKE cluster (preferably with GPU/TPU node pools, though GIQ can help identify requirements).
gcloudCLI installed and authenticated (for discovery commands).
Workflow
1. Discovery: Find Models and Hardware
Before generating a manifest, you often need to pick a valid combination of Model, Model Server, and Accelerator.
List all supported models:
gcloud container ai profiles models list
Find valid accelerators and servers for a specific model:
# Replace <MODEL_NAME> with a model from the list above (e.g., 'gemma-2-9b-it')
gcloud container ai profiles list --model=<MODEL_NAME>
View benchmarks/profiles (optional): To see costs and latency targets:
gcloud container ai profiles list --model=<MODEL_NAME>
2. Generate Manifest
Use the gcloud container ai profiles manifests create command. This ensures you are using the latest supported flags and options directly from the CLI.
Parameters:
--model: The model ID (e.g.,gemma-2-9b-it).--model-server: The inference server (e.g.,vllm,tgi,triton,tensorrt-llm).--accelerator-type: The accelerator type (e.g.,nvidia-l4,nvidia-tesla-a100).--target-ntpot-milliseconds: (Optional) Target Normalized Time Per Output Token in ms.
Example Command:
gcloud container ai profiles manifests create \
--model=gemma-2-9b-it \
--model-server=vllm \
--accelerator-type=nvidia-l4 \
--target-ntpot-milliseconds=50 > inference-workload.yaml
3. Review and Deploy
- Save: The example command above saves output to
inference-workload.yaml. Ensure you have this file. - Review: Check for any placeholders or specific requirements (like PVCs or secrets).
- Note: Some models require Hugging Face tokens. Ensure query instructions for secrets are followed.
- Deploy:
kubectl apply -f inference-workload.yaml
Troubleshooting
- Invalid Combination: If the manifest creation fails with an invalid combination error, re-run the discovery commands in Step 1 to verify the tuple (model, server, accelerator).
- Quota Issues: Ensure the target region has sufficient quota for the requested accelerator (e.g.,
NVIDIA_L4_GPUS).
Reference
More skills from the gke-mcp repository
View all 25 skillscustom-golden-image-discovery
discover golden base images for GKE nodes
Jul 12DeploymentGoogle CloudKubernetesgke-ai-troubleshooting-handle-disruption-gpu-tpu
diagnose GPU and TPU workload disruptions
Jul 28DebuggingGoogle CloudKubernetesPerformancegke-ai-troubleshooting-jobset-interruption
diagnose GKE JobSet interruptions
Jul 12DebuggingGoogle CloudKubernetesObservabilitygke-ai-troubleshooting-skill-creation-guide
create GKE troubleshooting skill bundles
Jul 12DocumentationEngineeringGoogle CloudTechnical Writinggke-ai-troubleshooting-tpu-connection-failure-vbar-oom
diagnose GKE TPU connection failures
Jul 12DebuggingGoogle CloudKubernetesPerformancegke-app-onboarding
containerize and deploy apps to GKE
Jul 12ContainersDeploymentGoogle CloudKubernetes +1
More from Google Cloud
View publisherkb-search
search and extract local knowledge base documents
knowledge-catalog
Jul 12DocumentationKnowledge BaseSearchknowledge_catalog_discovery_agent
search and rank Knowledge Catalog data entries
knowledge-catalog
Jul 12Data AnalysisGoogle CloudKnowledge ManagementSearchcontributing
contribute to Cloud Foundation Fabric
cloud-foundation-fabric
Jul 31AutomationEngineeringGitHubGoogle Cloud +1fabric-builder
generate Terraform code for Google Cloud
cloud-foundation-fabric
Jul 12Google CloudInfrastructure as CodeTerraformfast-0-org-setup-prereqs
prepare prerequisites for FAST 0-org-setup
cloud-foundation-fabric
Jul 12Google CloudOperationsagent-aware-cli
design agent-aware command-line interfaces
vertex-ai-creative-studio
Jul 12CLIEngineeringGoogle Cloud