gke-manifest-generation
Generates and updates secure, production-ready Kubernetes YAML manifests optimized for GKE Autopilot and GKE Standard clusters
Install / Use
npx skills add google/skills --skill gke-manifest-generationInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
SecuritySupported Platforms
Our assessment of gke-manifest-generation
gke-manifest-generation scores 91/100 on our quality scale, 246th of 544 Security skills we index (top 46%).
Its SKILL.md is 12 KB long, well organised into 13 sections and no code examples: a thorough specification that gives an agent plenty to work with.
With 20,340 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated 2 days ago, so gke-manifest-generation is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-09-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
gke-manifest-generation compared with similar skills
All 4 of these similar skills score higher than gke-manifest-generation; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| gke-manifest-generation (this skill)by google | 91 | 20.3k | 2d ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 85.4k | 10d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 73.8k | today | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 83.7k | today | MCP Server |
| LocalAIby mudler | 100 | 49.3k | today | MCP Server |
Frequently asked questions
- How do I install gke-manifest-generation?
- Run
npx skills add google/skills --skill gke-manifest-generation. The install tabs above show the steps for each supported agent. - Which AI agents does gke-manifest-generation work with?
- It is written for Zed, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is gke-manifest-generation safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is gke-manifest-generation still maintained?
- The repository was last updated 2 days ago, so gke-manifest-generation is actively maintained.
Skill content
View source on GitHubname: gke-manifest-generation metadata: version: "1.0.0" category: Containers description: >- Generates and updates secure, production-ready Kubernetes YAML manifests optimized for GKE Autopilot and GKE Standard clusters. Use when creating or modifying GKE deployment manifests, configuring container security contexts, setting CPU/memory resource limits, defining readiness/liveness/startup probes, mounting secrets and volumes, configuring GKE Gateway API routes, targeting Spot VMs, or deploying AI model inference workloads (vLLM, TGI, Gemma). Don't use for live cluster operations, pod troubleshooting (use gke-workload-troubleshooting), or cluster infrastructure provisioning (use gke-cluster-creation).
GKE Manifest Generation Skill
This skill provides guidelines, tooling integration, and templates to translate natural language descriptions or application code changes into secure, compliant, and cost-effective Kubernetes YAML manifests optimized for both GKE Autopilot and GKE Standard clusters.
Core Rules & Verification
When generating or updating YAML manifests, you must strictly adhere to the following rules:
1. Namespace & Resource Isolation
- Explicit Namespace: Always declare
namespace: {namespace}explicitly in the metadata of every resource (Deployments, Services, ConfigMaps, Secrets, PVCs, Roles, bindings). Map it to the namespace configured in your activeSETTINGS.md. Never omit the namespace. - Dedicated ServiceAccount: Avoid using the namespace's
defaultServiceAccount. Always create and reference a dedicatedServiceAccount(e.g.,devteam-agent-sa) for each microservice.
2. GKE Resource Tuning (Autopilot & Standard)
-
Resources Requests & Limits: Always specify CPU and Memory requests and limits for all containers.
- GKE Autopilot: Requests determine pod billing directly; requests and limits must be equal. If they differ, Autopilot will automatically scale requests up to match limits, which can significantly increase costs.
- GKE Standard: Requests ensure stable scheduling and bin-packing; limits prevent resource starvation/noisy-neighbor issues.
-
Density Defaults: For stateless apps or sidecars on GKE Standard, default to conservative requests (e.g.,
requests.cpu: "100m"or"200m",requests.memory: "256Mi"or"512Mi") with burstable limits. Use a reasonable overcommit ratio for limits (e.g., 2x to 4x requests, likelimits.cpu: "400m"to"800m", andlimits.memory: "512Mi"to"1Gi"). Avoid excessive overcommit limits (likelimits.cpu: "4"for a100mrequest) to prevent severe CPU throttling and latency degradation under heavy scheduling load, particularly in environments without guaranteed node shares. -
Spot VMs for Staging/Dev: For non-production workloads (e.g., namespaces containing
-test,-dev, or-staging), or if the user requests cost optimization, automatically target GKE Spot VMs. This requires injecting both thenodeSelectortargeting Spot VMs AND the corresponding toleration to tolerate the Spot VM taint:nodeSelector: cloud.google.com/gke-spot: "true" tolerations: - key: "cloud.google.com/gke-spot" operator: "Equal" value: "true" effect: "NoSchedule"(On GKE Standard, this assumes a Spot node pool is configured).
3. Container Security Hardening (Pod Security Standards)
- Non-Root Execution: Always configure
securityContextat the Pod level (and container level if overriding) to run as a non-root user (e.g.,runAsNonRoot: true,runAsUser: 10000,runAsGroup: 10000,fsGroup: 10000). This is strictly enforced on GKE Autopilot and is a critical security baseline for GKE Standard. - Minimal Privileges: Always set
allowPrivilegeEscalation: falseandseccompProfile: {type: RuntimeDefault}. - Read-Only Root Filesystem: Set
readOnlyRootFilesystem: trueto prevent modifications to the container image filesystem.- Writable Directory Fallback: If
readOnlyRootFilesystemis enabled, mount a localemptyDirvolume to/tmpor/var/run/to allow applications (like Java/Nginx) to write temp files without crashing.
- Writable Directory Fallback: If
- Secret Volume Mounting: Prefer mounting Secrets as read-only files
(configured in the
volumesspec withdefaultMode: 0400) instead of mapping them as environment variables, unless the application framework exclusively supports env-var based configuration. This prevents secrets leaking into application logs.
4. Health Checking (Mandatory Probes)
-
Liveness & Readiness Probes: Every Deployment container must define both
livenessProbeandreadinessProbe.- Web/API: Use
httpGetprobes. - TCP Services: Use
tcpSocketprobes. - Databases/Caches: Use command-based
execprobes (e.g.,exec.command: ["redis-cli", "ping"]).
- Web/API: Use
-
Startup Probes for Slow-Starting Apps: For applications with slow boot times (e.g., Java spring boot, complex Python scripts, LLM model servers), you must also define a
startupProbe. When astartupProbeis defined, the liveness and readiness probes are disabled until it succeeds, preventing Kubernetes from prematurely killing the pod during startup:startupProbe: httpGet: path: /healthz port: 8080 failureThreshold: 30 periodSeconds: 10 -
Sensible Defaults: Set
initialDelaySeconds: 5to15depending on startup time (e.g., Java requires a longer delay than Go/Nginx).
5. Services & Ingress Routing
- Internal ClusterIP: Default all internal microservices to
type: ClusterIP. Never usetype: LoadBalancerorNodePortunless the workload is explicitly intended to be publicly accessible from the internet. - Port Naming: Always assign clear, standard names to service and
container ports (e.g.,
name: http-weborname: grpc-api) to enable automatic protocol discovery, tracing, and Web App routing. - Prefer Gateway API: When exposing APIs externally, prioritize using GKE
Gateway API (
GatewayandHTTPRouteresources) over legacyIngressobjects to enable advanced L7 routing and security features (e.g., Cloud Armor).
6. Volume Mounts, StorageClasses & subPath Safety
- Avoid Directory Overwrites: When mounting a
ConfigMaporSecretto an application directory containing other files (like Nginx public directories), always usesubPathto overlay only the specific file. Caveat: Note that containers usingsubPathvolume mounts do not receive automatic configuration updates if the underlying ConfigMap or Secret is modified; pods must be restarted manually to pick up changes. - StorageClass Selection: Use the correct GKE storage class in
PersistentVolumeClaims:
- CSI Driver Clusters (Autopilot & Modern Standard): Use
standard-rwo(default balanced PD) orpremium-rwo(SSD PD). - Legacy Standard Clusters: Use
standard(default PD) orpremium(SSD PD) ifstandard-rwo/premium-rwoare not configured. - Database rule: Use SSD storage classes (
premium-rwoorpremium) only when the prompt explicitly requests high IOPS, low latency, or database storage.
- CSI Driver Clusters (Autopilot & Modern Standard): Use
7. High Availability on GKE
- Topology Spread: For deployments with >1 replica, use
podAntiAffinityortopologySpreadConstraintswithtopologyKey: "kubernetes.io/hostname"to distribute pods across GKE nodes and availability zones. - PodDisruptionBudget: For deployments with >1 replica, declare a
PodDisruptionBudgetto guarantee minimum replica availability during voluntary GKE node upgrades and maintenance cycles.
8. Updates & Server-Side Apply Reconciliations
- Stable List Keys: Under Kubernetes Server-Side Apply (SSA), elements in
associative lists (like volumes, volume mounts, ports, and container
definitions) are matched and merged by their unique identifier keys
(typically
name). You must keep thenamekey stable when modifying properties of an existing list item. Renaming thenamekey will cause SSA to create a brand new entry and leave the old entry intact (orphaned) rather than modifying it. - Minimal Diff: Make only the changes requested. Adhere closely to existing labels, annotations, and conventions.
Specialty Workloads: GKE AI/Inference Serving (vLLM, TGI, etc.)
For model serving workloads, prioritize using optimized tooling like GKE Inference Quickstart if available. If generating manually:
- GPU Request & Allocation:
- Always request
nvidia.com/gpuin bothrequestsandlimits. - Add a
nodeSelectoror node affinity targeting the desired GKE accelerator tag (e.g.,cloud.google.com/gke-accelerator: nvidia-l4).
- Always request
- Shared Memory Boost:
- Model servers require high shared memory (
/dev/shm) for inter-process communications. Always declare and mount anemptyDirvolume withmedium: Memoryto/dev/shm.
- Model servers require high shared memory (
- Weight Loading Optimization:
- Mount model weight directories (like GCS buckets) using the GKE GCS Fuse
CSI driver (
csi.storage.gke.io) asreadOnly: truefor efficient cold-starts.
- Mount model weight directories (like GCS buckets) using the GKE GCS Fuse
CSI driver (
Tooling & Grounding Guidelines
When generating manifests, you should leverage the following tooling to reduce hallucinations and optimize configurations:
-
Inference Workloads (GKE Inference Quickstart CLI):
-
Make sure you have the Google Cloud SDK installed.
-
For all AI/LLM inference workloads (e.g. model serving), you must prioritize using the
gcloudCLI GKE Inference Quickstart command to generate the optimized manifests instead of writing them manually:gcloud container ai profiles manifests create \ --model={model_name} \ --model-server={server_name} \ --accelerator-type={accelerator_type} \ --output=manifest \ --output-path={output_file_path} -
Constraint: You must include all resources returned by this command (Deployments, Services, PodMonitoring, etc.) without filtering.
-
-
Grounding in Official Documentation (Developer Knowledge API):
- For GKE-specific features, API defaults, manifest examples, or security
contexts, you must query Google's developer knowledge base to
retrieve official GKE documentation:
answer_query: Use this to ask direct questions (e.g., "How to configure GCS Fuse CSI driver in GKE"). This is the preferred tool for general queries.search_documents: Use this to search for relevant GKE guides or examples when you don't have a specific question.get_document: Use this to fetch full document contents when you have a specific document ID.
- For GKE-specific features, API defaults, manifest examples, or security
contexts, you must query Google's developer knowledge base to
retrieve official GKE documentation:
Reference Examples
For detailed, production-ready manifest templates, consult the following reference guides:
- Basic Hardened Nginx Workload: Production-ready deployment with dedicated service account, security contexts, probes, anti-affinity, and PodDisruptionBudget.
- Network Policy: Default-deny ingress network policy and selective ingress allowance fo
Truncated for display — read the full file on GitHub.
Related Skills
Agent-Reach
85.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
73.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Scrapling
83.7k🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
LocalAI
49.3kLocalAI is the open-source AI engine. Run any model - LLMs, vision, voice, image, video - on any hardware. No GPU required.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
