[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69947D90WDDA4PFK16CCY7C":3,"skill-same:01M69947D90WDDA4PFK16CCY7C":96},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":51,"commitSha":52,"skillDirectory":53,"forksCount":54,"repositoryHtmlUrl":55,"repositoryHomepageUrl":6,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":73},"01M69947D90WDDA4PFK16CCY7C","gke-manifest-generation",null,"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\u002Fmemory resource limits, defining readiness\u002Fliveness\u002Fstartup 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).","google\u002Fskills","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698WR0H76ENHE587T9EJT89",23908,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-manifest-generation\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42],"gke manifest generation","gke","manifest","generation","model","when","limits","production-ready","manifests","updates","targeting","CPU","creation","container security","ready","containers","secrets","api","secure","workload","memory","inference","security","kubernetes","2026-11-10 10:12:30",false,"---\nname: gke-manifest-generation\nmetadata:\n  version: \"1.0.1\"\n  category: Containers\ndescription: >-\n  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\u002Fmemory resource limits, defining readiness\u002Fliveness\u002Fstartup 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).\n---\n\n# GKE Manifest Generation Skill\n\nThis skill provides guidelines, tooling integration, and templates to translate\nnatural language descriptions or application code changes into secure,\ncompliant, and cost-effective Kubernetes YAML manifests optimized for both GKE\nAutopilot and GKE Standard clusters.\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:gke-manifest-generation)\"`\nand append `agent-skills\u002F1.0 (skill:gke-manifest-generation)` to `User-Agent` headers.\n\n## Core Rules & Verification\n\nWhen generating or updating YAML manifests, you **must** strictly adhere to the\nfollowing rules:\n\n### 1. Namespace & Resource Isolation\n\n-   **Explicit Namespace**: Always declare `namespace: {namespace}` explicitly\n    in the metadata of every resource (Deployments, Services, ConfigMaps,\n    Secrets, PVCs, Roles, bindings). Map it to the namespace configured in your\n    active `SETTINGS.md`. Never omit the namespace.\n-   **Dedicated ServiceAccount**: Avoid using the namespace's `default`\n    ServiceAccount. Always create and reference a dedicated `ServiceAccount`\n    (e.g., `devteam-agent-sa`) for each microservice.\n\n### 2. GKE Resource Tuning (Autopilot & Standard)\n\n-   **Resources Requests & Limits**: Always specify CPU and Memory requests and\n    limits for all containers.\n    -   *GKE Autopilot*: Requests determine pod billing directly; requests and\n        limits must be equal. If they differ, Autopilot will automatically scale\n        requests up to match limits, which can significantly increase costs.\n    -   *GKE Standard*: Requests ensure stable scheduling and bin-packing;\n        limits prevent resource starvation\u002Fnoisy-neighbor issues.\n-   **Density Defaults**: For stateless apps or sidecars on GKE Standard,\n    default to conservative requests (e.g., `requests.cpu: \"100m\"` or `\"200m\"`,\n    `requests.memory: \"256Mi\"` or `\"512Mi\"`) with burstable limits. Use a\n    reasonable overcommit ratio for limits (e.g., 2x to 4x requests, like\n    `limits.cpu: \"400m\"` to `\"800m\"`, and `limits.memory: \"512Mi\"` to `\"1Gi\"`).\n    Avoid excessive overcommit limits (like `limits.cpu: \"4\"` for a `100m`\n    request) to prevent severe CPU throttling and latency degradation under\n    heavy scheduling load, particularly in environments without guaranteed node\n    shares.\n-   **Spot VMs for Staging\u002FDev**: For non-production workloads (e.g., namespaces\n    containing `-test`, `-dev`, or `-staging`), or if the user requests cost\n    optimization, automatically target GKE Spot VMs. This requires injecting\n    both the `nodeSelector` targeting Spot VMs AND the corresponding toleration\n    to tolerate the Spot VM taint:\n\n    ```yaml\n    nodeSelector:\n      cloud.google.com\u002Fgke-spot: \"true\"\n    tolerations:\n      - key: \"cloud.google.com\u002Fgke-spot\"\n        operator: \"Equal\"\n        value: \"true\"\n        effect: \"NoSchedule\"\n    ```\n\n    (On GKE Standard, this assumes a Spot node pool is configured).\n\n### 3. Container Security Hardening (Pod Security Standards)\n\n-   **Non-Root Execution**: Always configure `securityContext` at the Pod level\n    (and container level if overriding) to run as a non-root user (e.g.,\n    `runAsNonRoot: true`, `runAsUser: 10000`, `runAsGroup: 10000`, `fsGroup:\n    10000`). This is strictly enforced on GKE Autopilot and is a critical\n    security baseline for GKE Standard.\n-   **Minimal Privileges**: Always set `allowPrivilegeEscalation: false` and\n    `seccompProfile: {type: RuntimeDefault}`.\n-   **Read-Only Root Filesystem**: Set `readOnlyRootFilesystem: true` to prevent\n    modifications to the container image filesystem.\n    -   *Writable Directory Fallback*: If `readOnlyRootFilesystem` is enabled,\n        mount a local `emptyDir` volume to `\u002Ftmp` or `\u002Fvar\u002Frun\u002F` to allow\n        applications (like Java\u002FNginx) to write temp files without crashing.\n-   **Secret Volume Mounting**: Prefer mounting Secrets as read-only files\n    (configured in the `volumes` spec with `defaultMode: 0400`) instead of\n    mapping them as environment variables, unless the application framework\n    exclusively supports env-var based configuration. This prevents secrets\n    leaking into application logs.\n\n### 4. Health Checking (Mandatory Probes)\n\n-   **Liveness & Readiness Probes**: Every Deployment container must define both\n    `livenessProbe` and `readinessProbe`.\n    -   **Web\u002FAPI**: Use `httpGet` probes.\n    -   **TCP Services**: Use `tcpSocket` probes.\n    -   **Databases\u002FCaches**: Use command-based `exec` probes (e.g.,\n        `exec.command: [\"redis-cli\", \"ping\"]`).\n-   **Startup Probes for Slow-Starting Apps**: For applications with slow boot\n    times (e.g., Java spring boot, complex Python scripts, LLM model servers),\n    you **must** also define a `startupProbe`. When a `startupProbe` is defined,\n    the liveness and readiness probes are disabled until it succeeds, preventing\n    Kubernetes from prematurely killing the pod during startup:\n\n    ```yaml\n    startupProbe:\n      httpGet:\n        path: \u002Fhealthz\n        port: 8080\n      failureThreshold: 30\n      periodSeconds: 10\n    ```\n\n-   **Sensible Defaults**: Set `initialDelaySeconds: 5` to `15` depending on\n    startup time (e.g., Java requires a longer delay than Go\u002FNginx).\n\n### 5. Services & Ingress Routing\n\n-   **Internal ClusterIP**: Default all internal microservices to `type:\n    ClusterIP`. Never use `type: LoadBalancer` or `NodePort` unless the workload\n    is explicitly intended to be publicly accessible from the internet.\n-   **Port Naming**: Always assign clear, standard names to service and\n    container ports (e.g., `name: http-web` or `name: grpc-api`) to enable\n    automatic protocol discovery, tracing, and Web App routing.\n-   **Prefer Gateway API**: When exposing APIs externally, prioritize using GKE\n    Gateway API (`Gateway` and `HTTPRoute` resources) over legacy `Ingress`\n    objects to enable advanced L7 routing and security features (e.g., Cloud\n    Armor).\n\n### 6. Volume Mounts, StorageClasses & subPath Safety\n\n-   **Avoid Directory Overwrites**: When mounting a `ConfigMap` or `Secret` to\n    an application directory containing other files (like Nginx public\n    directories), always use `subPath` to overlay only the specific file.\n    *Caveat*: Note that containers using `subPath` volume mounts do not receive\n    automatic configuration updates if the underlying ConfigMap or Secret is\n    modified; pods must be restarted manually to pick up changes.\n-   **StorageClass Selection**: Use the correct GKE storage class in\n    PersistentVolumeClaims:\n    -   *CSI Driver Clusters (Autopilot & Modern Standard)*: Use `standard-rwo`\n        (default balanced PD) or `premium-rwo` (SSD PD).\n    -   *Legacy Standard Clusters*: Use `standard` (default PD) or `premium`\n        (SSD PD) if `standard-rwo`\u002F`premium-rwo` are not configured.\n    -   *Database rule*: Use SSD storage classes (`premium-rwo` or `premium`)\n        only when the prompt explicitly requests high IOPS, low latency, or\n        database storage.\n\n### 7. High Availability on GKE\n\n-   **Topology Spread**: For deployments with >1 replica, use `podAntiAffinity`\n    or `topologySpreadConstraints` with `topologyKey: \"kubernetes.io\u002Fhostname\"`\n    to distribute pods across GKE nodes and availability zones.\n-   **PodDisruptionBudget**: For deployments with >1 replica, declare a\n    `PodDisruptionBudget` to guarantee minimum replica availability during\n    voluntary GKE node upgrades and maintenance cycles.\n\n### 8. Updates & Server-Side Apply Reconciliations\n\n-   **Stable List Keys**: Under Kubernetes Server-Side Apply (SSA), elements in\n    associative lists (like volumes, volume mounts, ports, and container\n    definitions) are matched and merged by their unique identifier keys\n    (typically `name`). You **must** keep the `name` key stable when modifying\n    properties of an existing list item. Renaming the `name` key will cause SSA\n    to create a brand new entry and leave the old entry intact (orphaned) rather\n    than modifying it.\n-   **Minimal Diff**: Make only the changes requested. Adhere closely to\n    existing labels, annotations, and conventions.\n\n--------------------------------------------------------------------------------\n\n## Specialty Workloads: GKE AI\u002FInference Serving (vLLM, TGI, etc.)\n\nFor model serving workloads, prioritize using optimized tooling like GKE\nInference Quickstart if available. If generating manually:\n\n1.  **GPU Request & Allocation**:\n    -   Always request `nvidia.com\u002Fgpu` in both `requests` and `limits`.\n    -   Add a `nodeSelector` or node affinity targeting the desired GKE\n        accelerator tag (e.g., `cloud.google.com\u002Fgke-accelerator: nvidia-l4`).\n2.  **Shared Memory Boost**:\n    -   Model servers require high shared memory (`\u002Fdev\u002Fshm`) for inter-process\n        communications. Always declare and mount an `emptyDir` volume with\n        `medium: Memory` to `\u002Fdev\u002Fshm`.\n3.  **Weight Loading Optimization**:\n    -   Mount model weight directories (like GCS buckets) using the GKE GCS Fuse\n        CSI driver (`csi.storage.gke.io`) as `readOnly: true` for efficient\n        cold-starts.\n\n--------------------------------------------------------------------------------\n\n## Tooling & Grounding Guidelines\n\nWhen generating manifests, you should leverage the following tooling to reduce\nhallucinations and optimize configurations:\n\n1.  **Inference Workloads (GKE Inference Quickstart CLI)**:\n\n    -   Make sure you have the\n        [Google Cloud SDK](https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fdocs\u002Finstall) installed.\n    -   For all AI\u002FLLM inference workloads (e.g. model serving), you **must**\n        prioritize using the `gcloud` CLI GKE Inference Quickstart command to\n        generate the optimized manifests instead of writing them manually:\n\n        ```bash\n        gcloud container ai profiles manifests create \\\n          --model={model_name} \\\n          --model-server={server_name} \\\n          --accelerator-type={accelerator_type} \\\n          --output=manifest \\\n          --output-path={output_file_path}\n        ```\n\n    -   *Constraint*: You must include all resources returned by this command\n        (Deployments, Services, PodMonitoring, etc.) without filtering.\n\n2.  **Grounding in Official Documentation (Developer Knowledge API)**:\n\n    -   For GKE-specific features, API defaults, manifest examples, or security\n        contexts, you **must** query Google's developer knowledge base to\n        retrieve official GKE documentation:\n        -   **`answer_query`**: Use this to ask direct questions (e.g., *\"How to\n            configure GCS Fuse CSI driver in GKE\"*). This is the preferred tool\n            for general queries.\n        -   **`search_documents`**: Use this to search for relevant GKE guides\n            or examples when you don't have a specific question.\n        -   **`get_document`**: Use this to fetch full document contents when\n            you have a specific document ID.\n\n--------------------------------------------------------------------------------\n\n## Reference Examples\n\nFor detailed, production-ready manifest templates, consult the following\nreference guides:\n\n-   **[Basic Hardened Nginx Workload](references\u002Fbasic-workload.md)**:\n    Production-ready deployment with dedicated service account, security\n    contexts, probes, anti-affinity, and PodDisruptionBudget.\n-   **[Network Policy](references\u002Fnetwork-policy.md)**: Default-deny ingress\n    network policy and selective ingress allowance for specific apps.\n-   **[AI\u002FLLM Inference Workload](references\u002Fai-inference.md)**: GPU resource\n    allocation, Workload Identity, GCS FUSE CSI driver mounting, `\u002Fdev\u002Fshm`\n    shared memory boost, and startup probes.\n-   **[GKE Gateway API Routing](references\u002Fgateway-api.md)**: Exposing workloads\n    using GKE L7 Gateway API (`Gateway` and `HTTPRoute` resources).\n","# GKE Manifest Generation Skill\n\nThis skill provides guidelines, tooling integration, and templates to translate\nnatural language descriptions or application code changes into secure,\ncompliant, and cost-effective Kubernetes YAML manifests optimized for both GKE\nAutopilot and GKE Standard clusters.\n\n## Attribution\n\n**MUST READ**: Before executing any `gcloud`, REST API, or MCP command, you\nMUST read [Usage Attribution](references\u002Fattribution.md). For commands executed\ndirectly in the terminal (never in generated scripts, Terraform, or user code),\nprefix `gcloud` with\n`CLOUDSDK_METRICS_REQUEST_ATTRIBUTION=\"agent-skills\u002F1.0 (skill:gke-manifest-generation)\"`\nand append `agent-skills\u002F1.0 (skill:gke-manifest-generation)` to `User-Agent` headers.\n\n## Core Rules & Verification\n\nWhen generating or updating YAML manifests, you **must** strictly adhere to the\nfollowing rules:\n\n### 1. Namespace & Resource Isolation\n\n-   **Explicit Namespace**: Always declare `namespace: {namespace}` explicitly\n    in the metadata of every resource (Deployments, Services, ConfigMaps,\n    Secrets, PVCs, Roles, bindings). Map it to the namespace configured in your\n    active `SETTINGS.md`. Never omit the namespace.\n-   **Dedicated ServiceAccount**: Avoid using the namespace's `default`\n    ServiceAccount. Always create and reference a dedicated `ServiceAccount`\n    (e.g., `devteam-agent-sa`) for each microservice.\n\n### 2. GKE Resource Tuning (Autopilot & Standard)\n\n-   **Resources Requests & Limits**: Always specify CPU and Memory requests and\n    limits for all containers.\n    -   *GKE Autopilot*: Requests determine pod billing directly; requests and\n        limits must be equal. If they differ, Autopilot will automatically scale\n        requests up to match limits, which can significantly increase costs.\n    -   *GKE Standard*: Requests ensure stable scheduling and bin-packing;\n        limits prevent resource starvation\u002Fnoisy-neighbor issues.\n-   **Density Defaults**: For stateless apps or sidecars on GKE Standard,\n    default to conservative requests (e.g., `requests.cpu: \"100m\"` or `\"200m\"`,\n    `requests.memory: \"256Mi\"` or `\"512Mi\"`) with burstable limits. Use a\n    reasonable overcommit ratio for limits (e.g., 2x to 4x requests, like\n    `limits.cpu: \"400m\"` to `\"800m\"`, and `limits.memory: \"512Mi\"` to `\"1Gi\"`).\n    Avoid excessive overcommit limits (like `limits.cpu: \"4\"` for a `100m`\n    request) to prevent severe CPU throttling and latency degradation under\n    heavy scheduling load, particularly in environments without guaranteed node\n    shares.\n-   **Spot VMs for Staging\u002FDev**: For non-production workloads (e.g., namespaces\n    containing `-test`, `-dev`, or `-staging`), or if the user requests cost\n    optimization, automatically target GKE Spot VMs. This requires injecting\n    both the `nodeSelector` targeting Spot VMs AND the corresponding toleration\n    to tolerate the Spot VM taint:\n\n    ```yaml\n    nodeSelector:\n      cloud.google.com\u002Fgke-spot: \"true\"\n    tolerations:\n      - key: \"cloud.google.com\u002Fgke-spot\"\n        operator: \"Equal\"\n        value: \"true\"\n        effect: \"NoSchedule\"\n    ```\n\n    (On GKE Standard, this assumes a Spot node pool is configured).\n\n### 3. Container Security Hardening (Pod Security Standards)\n\n-   **Non-Root Execution**: Always configure `securityContext` at the Pod level\n    (and container level if overriding) to run as a non-root user (e.g.,\n    `runAsNonRoot: true`, `runAsUser: 10000`, `runAsGroup: 10000`, `fsGroup:\n    10000`). This is strictly enforced on GKE Autopilot and is a critical\n    security baseline for GKE Standard.\n-   **Minimal Privileges**: Always set `allowPrivilegeEscalation: false` and\n    `seccompProfile: {type: RuntimeDefault}`.\n-   **Read-Only Root Filesystem**: Set `readOnlyRootFilesystem: true` to prevent\n    modifications to the container image filesystem.\n    -   *Writable Directory Fallback*: If `readOnlyRootFilesystem` is enabled,\n        mount a local `emptyDir` volume to `\u002Ftmp` or `\u002Fvar\u002Frun\u002F` to allow\n        applications (like Java\u002FNginx) to write temp files without crashing.\n-   **Secret Volume Mounting**: Prefer mounting Secrets as read-only files\n    (configured in the `volumes` spec with `defaultMode: 0400`) instead of\n    mapping them as environment variables, unless the application framework\n    exclusively supports env-var based configuration. This prevents secrets\n    leaking into application logs.\n\n### 4. Health Checking (Mandatory Probes)\n\n-   **Liveness & Readiness Probes**: Every Deployment container must define both\n    `livenessProbe` and `readinessProbe`.\n    -   **Web\u002FAPI**: Use `httpGet` probes.\n    -   **TCP Services**: Use `tcpSocket` probes.\n    -   **Databases\u002FCaches**: Use command-based `exec` probes (e.g.,\n        `exec.command: [\"redis-cli\", \"ping\"]`).\n-   **Startup Probes for Slow-Starting Apps**: For applications with slow boot\n    times (e.g., Java spring boot, complex Python scripts, LLM model servers),\n    you **must** also define a `startupProbe`. When a `startupProbe` is defined,\n    the liveness and readiness probes are disabled until it succeeds, preventing\n    Kubernetes from prematurely killing the pod during startup:\n\n    ```yaml\n    startupProbe:\n      httpGet:\n        path: \u002Fhealthz\n        port: 8080\n      failureThreshold: 30\n      periodSeconds: 10\n    ```\n\n-   **Sensible Defaults**: Set `initialDelaySeconds: 5` to `15` depending on\n    startup time (e.g., Java requires a longer delay than Go\u002FNginx).\n\n### 5. Services & Ingress Routing\n\n-   **Internal ClusterIP**: Default all internal microservices to `type:\n    ClusterIP`. Never use `type: LoadBalancer` or `NodePort` unless the workload\n    is explicitly intended to be publicly accessible from the internet.\n-   **Port Naming**: Always assign clear, standard names to service and\n    container ports (e.g., `name: http-web` or `name: grpc-api`) to enable\n    automatic protocol discovery, tracing, and Web App routing.\n-   **Prefer Gateway API**: When exposing APIs externally, prioritize using GKE\n    Gateway API (`Gateway` and `HTTPRoute` resources) over legacy `Ingress`\n    objects to enable advanced L7 routing and security features (e.g., Cloud\n    Armor).\n\n### 6. Volume Mounts, StorageClasses & subPath Safety\n\n-   **Avoid Directory Overwrites**: When mounting a `ConfigMap` or `Secret` to\n    an application directory containing other files (like Nginx public\n    directories), always use `subPath` to overlay only the specific file.\n    *Caveat*: Note that containers using `subPath` volume mounts do not receive\n    automatic configuration updates if the underlying ConfigMap or Secret is\n    modified; pods must be restarted manually to pick up changes.\n-   **StorageClass Selection**: Use the correct GKE storage class in\n    PersistentVolumeClaims:\n    -   *CSI Driver Clusters (Autopilot & Modern Standard)*: Use `standard-rwo`\n        (default balanced PD) or `premium-rwo` (SSD PD).\n    -   *Legacy Standard Clusters*: Use `standard` (default PD) or `premium`\n        (SSD PD) if `standard-rwo`\u002F`premium-rwo` are not configured.\n    -   *Database rule*: Use SSD storage classes (`premium-rwo` or `premium`)\n        only when the prompt explicitly requests high IOPS, low latency, or\n        database storage.\n\n### 7. High Availability on GKE\n\n-   **Topology Spread**: For deployments with >1 replica, use `podAntiAffinity`\n    or `topologySpreadConstraints` with `topologyKey: \"kubernetes.io\u002Fhostname\"`\n    to distribute pods across GKE nodes and availability zones.\n-   **PodDisruptionBudget**: For deployments with >1 replica, declare a\n    `PodDisruptionBudget` to guarantee minimum replica availability during\n    voluntary GKE node upgrades and maintenance cycles.\n\n### 8. Updates & Server-Side Apply Reconciliations\n\n-   **Stable List Keys**: Under Kubernetes Server-Side Apply (SSA), elements in\n    associative lists (like volumes, volume mounts, ports, and container\n    definitions) are matched and merged by their unique identifier keys\n    (typically `name`). You **must** keep the `name` key stable when modifying\n    properties of an existing list item. Renaming the `name` key will cause SSA\n    to create a brand new entry and leave the old entry intact (orphaned) rather\n    than modifying it.\n-   **Minimal Diff**: Make only the changes requested. Adhere closely to\n    existing labels, annotations, and conventions.\n\n--------------------------------------------------------------------------------\n\n## Specialty Workloads: GKE AI\u002FInference Serving (vLLM, TGI, etc.)\n\nFor model serving workloads, prioritize using optimized tooling like GKE\nInference Quickstart if available. If generating manually:\n\n1.  **GPU Request & Allocation**:\n    -   Always request `nvidia.com\u002Fgpu` in both `requests` and `limits`.\n    -   Add a `nodeSelector` or node affinity targeting the desired GKE\n        accelerator tag (e.g., `cloud.google.com\u002Fgke-accelerator: nvidia-l4`).\n2.  **Shared Memory Boost**:\n    -   Model servers require high shared memory (`\u002Fdev\u002Fshm`) for inter-process\n        communications. Always declare and mount an `emptyDir` volume with\n        `medium: Memory` to `\u002Fdev\u002Fshm`.\n3.  **Weight Loading Optimization**:\n    -   Mount model weight directories (like GCS buckets) using the GKE GCS Fuse\n        CSI driver (`csi.storage.gke.io`) as `readOnly: true` for efficient\n        cold-starts.\n\n--------------------------------------------------------------------------------\n\n## Tooling & Grounding Guidelines\n\nWhen generating manifests, you should leverage the following tooling to reduce\nhallucinations and optimize configurations:\n\n1.  **Inference Workloads (GKE Inference Quickstart CLI)**:\n\n    -   Make sure you have the\n        [Google Cloud SDK](https:\u002F\u002Fcloud.google.com\u002Fsdk\u002Fdocs\u002Finstall) installed.\n    -   For all AI\u002FLLM inference workloads (e.g. model serving), you **must**\n        prioritize using the `gcloud` CLI GKE Inference Quickstart command to\n        generate the optimized manifests instead of writing them manually:\n\n        ```bash\n        gcloud container ai profiles manifests create \\\n          --model={model_name} \\\n          --model-server={server_name} \\\n          --accelerator-type={accelerator_type} \\\n          --output=manifest \\\n          --output-path={output_file_path}\n        ```\n\n    -   *Constraint*: You must include all resources returned by this command\n        (Deployments, Services, PodMonitoring, etc.) without filtering.\n\n2.  **Grounding in Official Documentation (Developer Knowledge API)**:\n\n    -   For GKE-specific features, API defaults, manifest examples, or security\n        contexts, you **must** query Google's developer knowledge base to\n        retrieve official GKE documentation:\n        -   **`answer_query`**: Use this to ask direct questions (e.g., *\"How to\n            configure GCS Fuse CSI driver in GKE\"*). This is the preferred tool\n            for general queries.\n        -   **`search_documents`**: Use this to search for relevant GKE guides\n            or examples when you don't have a specific question.\n        -   **`get_document`**: Use this to fetch full document contents when\n            you have a specific document ID.\n\n--------------------------------------------------------------------------------\n\n## Reference Examples\n\nFor detailed, production-ready manifest templates, consult the following\nreference guides:\n\n-   **[Basic Hardened Nginx Workload](references\u002Fbasic-workload.md)**:\n    Production-ready deployment with dedicated service account, security\n    contexts, probes, anti-affinity, and PodDisruptionBudget.\n-   **[Network Policy](references\u002Fnetwork-policy.md)**: Default-deny ingress\n    network policy and selective ingress allowance for specific apps.\n-   **[AI\u002FLLM Inference Workload](references\u002Fai-inference.md)**: GPU resource\n    allocation, Workload Identity, GCS FUSE CSI driver mounting, `\u002Fdev\u002Fshm`\n    shared memory boost, and startup probes.\n-   **[GKE Gateway API Routing](references\u002Fgateway-api.md)**: Exposing workloads\n    using GKE L7 Gateway API (`Gateway` and `HTTPRoute` resources).\n",{"name":5,"metadata":48,"description":7},{"version":49,"category":50},"1.0.1","Containers","main","bb9b3f464aae37af360d079c1d863524955b0363","skills\u002Fcloud\u002Fgke-manifest-generation",1994,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-12 00:37:41",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":72},[62,65,68],{"tool":63,"command":64},"npx","npx skills add google\u002Fskills --skill gke-manifest-generation",{"tool":66,"command":67},"bunx","bunx skills add google\u002Fskills --skill gke-manifest-generation",{"tool":69,"command":70},"pnpm","pnpm dlx skills add google\u002Fskills --skill gke-manifest-generation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-manifest-generation\u002FSKILL.md",true,[74,80,84,88,92],{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"references\u002Fai-inference.md","REFERENCE","参考文档",3065,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-manifest-generation\u002Freferences\u002Fai-inference.md",{"path":81,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":82,"sourceHtmlUrl":83},"references\u002Fattribution.md",1909,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-manifest-generation\u002Freferences\u002Fattribution.md",{"path":85,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":86,"sourceHtmlUrl":87},"references\u002Fbasic-workload.md",3519,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-manifest-generation\u002Freferences\u002Fbasic-workload.md",{"path":89,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":90,"sourceHtmlUrl":91},"references\u002Fgateway-api.md",906,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-manifest-generation\u002Freferences\u002Fgateway-api.md",{"path":93,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":94,"sourceHtmlUrl":95},"references\u002Fnetwork-policy.md",918,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-manifest-generation\u002Freferences\u002Fnetwork-policy.md",[97,133,164,192,218,242],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":111,"publishedAt":43},"01M6998S2EZKD3GEJ7F943RZTE","sign-in-with-google-web","Implement, configure, and secure Sign In With Google (SiwG) using Google Identity Services (GIS \u002F `https:\u002F\u002Faccounts.google.com\u002Fgsi\u002Fclient`) across web architectures. Use when creating Google sign-in buttons, implementing Google One Tap with FedCM, integrating GIS in React\u002FNext.js\u002FAngular\u002FHTML, verifying ID tokens on backend runtimes (Python\u002FNode.js\u002FGo\u002FJava), enforcing Google Workspace domain restrictions (`hd`), securing client-side ID tokens via WebCrypto nonces or encrypted IndexedDB, embedding in cross-origin iframes via the Intermediate Iframe API (`https:\u002F\u002Faccounts.google.com\u002Fgsi\u002Fintermediate`), configuring Content Security Policy (CSP), COOP, and Permissions Policy (`identity-credentials-get`) headers, or handling sign-out and revocation. Don't use for legacy Google Sign-In (`gapi.auth2`), Google Cloud IAM service accounts, or Android\u002FiOS native Credential Manager.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fsign-in-with-google-web\u002FSKILL.md",[103,108],{"categoryNo":104,"categoryName":105,"taxonomyType":106,"taxonomyTypeDesc":107},"01JBSEEDCAT000000000000009","前端开发","SCENARIO","使用场景",{"categoryNo":109,"categoryName":110,"taxonomyType":106,"taxonomyTypeDesc":107},"01JBSEEDCAT000000000000010","后端与接口",[9,112,113,114,115,116,117,41,118,119,120,121,122,123,124,125,126,127,37,128,129,130,131,132],"sign in with google web","sign","with","web","android","go","google workspace","google cloud","implement","policy","python","implementing","react","iam","permissions","buttons","manager","identity","architectures","domain","runtimes",{"skillNo":134,"name":135,"nameZh":6,"description":136,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":137,"categories":138,"keywords":148,"publishedAt":43},"01M6998PHPDCAD684VW5WRG83D","dpop-adoption","Implement and debug OAuth 2.0 DPoP (RFC 9449) refresh token sender-constraining for WebCrypto, Node.js ES6, and browser runtimes integrating with Google's OAuth platform. Use when configuring non-extractable asymmetric key pairs (P-256), generating DPoP Proof JWTs for authorization code exchange and token refresh, or handling 400 use_dpop_nonce challenge retry loops at oauth2.googleapis.com\u002Ftoken. Don't use for unconstrained OAuth 2.0 flows (where refresh tokens are not bound to a client key pair), or for Google Cloud IAM \u002F service account authentication.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fidentity\u002Fdpop-adoption\u002FSKILL.md",[139,140,143],{"categoryNo":109,"categoryName":110,"taxonomyType":106,"taxonomyTypeDesc":107},{"categoryNo":141,"categoryName":142,"taxonomyType":106,"taxonomyTypeDesc":107},"01JBSEEDCAT000000000000023","Skill与智能体开发",{"categoryNo":144,"categoryName":145,"taxonomyType":146,"taxonomyTypeDesc":147},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[149,150,9,119,151,152,153,154,155,156,125,157,158,159,160,161,162,129,132,163,24],"dpop adoption","adoption","es6","retry","authentication","flows","challenge","code","browser","loops","at","node","token","pair","platform",{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":176,"publishedAt":43},"01M6998M72TC73EEAQH4XC7EXW","retrieving-developer-knowledge","Searches, retrieves, and synthesizes official Google developer documentation across Google Cloud, AI\u002FGemini, Android, Chrome, Web, Flutter, Go, Firebase, and other Google developer platforms. Integrates with the Developer Knowledge MCP server (search_documents, get_documents, answer_query) or the Developer Knowledge REST API fallback. Use when searching for gcloud CLI commands, API syntax, IAM permissions, official documentation, architectural comparisons, or product choice overviews. Don't use for local filesystem lookups or non-Google documentation.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdevelopers\u002Fretrieving-developer-knowledge\u002FSKILL.md",[170,171,174,175],{"categoryNo":109,"categoryName":110,"taxonomyType":106,"taxonomyTypeDesc":107},{"categoryNo":172,"categoryName":173,"taxonomyType":106,"taxonomyTypeDesc":107},"01JBSEEDCAT000000000000021","资料检索与研究",{"categoryNo":141,"categoryName":142,"taxonomyType":106,"taxonomyTypeDesc":107},{"categoryNo":144,"categoryName":145,"taxonomyType":146,"taxonomyTypeDesc":147},[177,178,179,180,119,181,182,183,184,185,186,187,188,24,189,36,190,125,191,126],"retrieving developer knowledge","knowledge","developer","MCP","mcp server","official","developer documentation","get","search","local","choice","documents","query","across","documentation",{"skillNo":193,"name":194,"nameZh":6,"description":195,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":196,"categories":197,"keywords":198,"publishedAt":43},"01M6998J2CZEXS9BES9S3WWFKC","migrate-to-rust","Clones, analyzes, plans, and migrates legacy codebases (C++, Fortran, Java, Python, C, Shell) from a GitHub URL or local directory to a modern, high-performance, deterministic, 100% Safe Rust architecture, tracking live telemetry across every task bucket, test failure\u002Ffix cycle, and Profile-Guided Optimization (PGO) stage, and producing a first-person AI storytelling report and interactive HTML infographic. Use when migrating a GitHub repository or local codebase to Rust, porting legacy C++, Fortran, Python, or Java workloads to memory-safe Rust, designing Struct-of-Arrays (SoA) or SIMD Rust architectures, or optimizing Rust ports with LLVM PGO. Don't use for unrelated non-Rust refactoring or single-line syntax questions.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdevelopers\u002Fmigrate-to-rust\u002FSKILL.md",[],[199,200,201,202,39,203,204,205,122,206,207,208,209,210,211,186,212,213,214,24,215,216,190,217],"migrate to rust","rust","migrate","github","performance","directory","safe","ports","llvm","soa","cycle","porting","fix","arrays","infographic","high-performance","URL","architecture","unrelated",{"skillNo":219,"name":220,"nameZh":6,"description":221,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":222,"categories":223,"keywords":227,"publishedAt":43},"01M6998GCC3K29WZ82KXMB9E02","finding-google-skills","Google platform decision and setup guidance, loaded on demand from Google's skill catalog. Use when a developer is choosing or setting up part of their stack, such as where to run a service, a database, storage, messaging, authentication, analytics, ads, or AI model serving, and a Google product is a reasonable candidate - whether or not a vendor is named - or when a request names a Google product or API. Brings in the matching Google skill so the answer can weigh Google options, their trade-offs, and when they are not the right fit. Skip when the stack is already settled on another provider and no Google product is named, or the task involves no platform choice.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fdevelopers\u002Ffinding-google-skills\u002FSKILL.md",[224,225,226],{"categoryNo":109,"categoryName":110,"taxonomyType":106,"taxonomyTypeDesc":107},{"categoryNo":141,"categoryName":142,"taxonomyType":106,"taxonomyTypeDesc":107},{"categoryNo":144,"categoryName":145,"taxonomyType":146,"taxonomyTypeDesc":147},[9,228,229,230,231,163,23,232,233,234,235,153,236,237,238,187,239,240,24,241,36],"finding google skills","storage","as","messaging","trade-offs","provider","answer","fit","catalog","up","decision","use","database","candidate",{"skillNo":243,"name":244,"nameZh":6,"description":245,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":246,"categories":247,"keywords":250,"publishedAt":43},"01M6998DWNHTH0BS6W1CY8ZXMP","workload-manager-basics","Use this skill to manage Google Cloud Workload Manager evaluations, rules, scanned resources, and validation results by using public client libraries and the REST API. Use when you need to inspect workload best-practice rules, create and run evaluations for Google Cloud general best practices, SAP, SQL Server, or custom organizational rules, review violations, export results to BigQuery, or automate Workload Manager through client libraries because no service-specific public CLI or MCP server is available. Don't use for general Google Compute Engine instance management, VPC configuration, or standard IAM auditing.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fworkload-manager-basics\u002FSKILL.md",[248,249],{"categoryNo":109,"categoryName":110,"taxonomyType":106,"taxonomyTypeDesc":107},{"categoryNo":141,"categoryName":142,"taxonomyType":106,"taxonomyTypeDesc":107},[251,38,128,252,9,180,253,119,181,254,255,256,257,24,258,36,125,259,260,261,262],"workload manager basics","basics","cli","review","vpc","resources","inspect","you","create","libraries","server","run"]