[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M720Z4QG85DN6H60AWVXE4D2":3,"skill-same:01M720Z4QG85DN6H60AWVXE4D2":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":30,"ownerHtmlUrl":31,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M720Z4QG85DN6H60AWVXE4D2","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), Google Cloud resources as Config Connector manifests, a new cluster included (use gcp-config-connector), cluster shape and template advice (use gke-cluster-creation), third-party Helm charts (use gitops-helm-chart), or deleting a resource (use submit-suggestion's \"Deleting a resource\").","gke-labs\u002Fkube-agents","gke-labs","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F197140281?v=4","01M720MEZR8K6WD2WTHNQE346Q","01M720MF0BRA9RGH1QVT4J0M0E",126,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgke-manifest-generation\u002FSKILL.md",[],[],"2026-11-10 18:39:20",false,"---\nname: gke-manifest-generation\nmetadata:\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), Google Cloud resources as Config Connector manifests, a new cluster included (use gcp-config-connector), cluster shape and template advice (use gke-cluster-creation), third-party Helm charts (use gitops-helm-chart), or deleting a resource (use submit-suggestion's \"Deleting a resource\").\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## 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., `checkout-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-   **Deletion Is Removal**: A manifest cannot ask for its object to be\n    deleted. Adding one, with any annotation or label, declares the object\n    and keeps it. For a request to delete a resource, follow\n    submit-suggestion's \"Deleting a resource\".\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_file_path}\n        ```\n\n        Redirect stdout rather than passing `--output-path`: `gcloud` runs in\n        the credential proxy's container, so that flag writes the manifest\n        next to the credentials instead of in your workspace, and the proxy\n        refuses it.\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        -   **`search_documents`**: Start every lookup here (e.g., *\"configure\n            GCS Fuse CSI driver in GKE\"*). It takes only `query`.\n        -   **`get_documents`**: Use this to fetch full document contents when\n            a returned chunk needs its surrounding page.\n        -   Do not call **`answer_query`**: its quota is 50 requests per day per\n            project, shared by every agent in the install, and it reads the\n            same corpus as `search_documents`. Never retry its `429`.\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## 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., `checkout-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-   **Deletion Is Removal**: A manifest cannot ask for its object to be\n    deleted. Adding one, with any annotation or label, declares the object\n    and keeps it. For a request to delete a resource, follow\n    submit-suggestion's \"Deleting a resource\".\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_file_path}\n        ```\n\n        Redirect stdout rather than passing `--output-path`: `gcloud` runs in\n        the credential proxy's container, so that flag writes the manifest\n        next to the credentials instead of in your workspace, and the proxy\n        refuses it.\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        -   **`search_documents`**: Start every lookup here (e.g., *\"configure\n            GCS Fuse CSI driver in GKE\"*). It takes only `query`.\n        -   **`get_documents`**: Use this to fetch full document contents when\n            a returned chunk needs its surrounding page.\n        -   Do not call **`answer_query`**: its quota is 50 requests per day per\n            project, shared by every agent in the install, and it reads the\n            same corpus as `search_documents`. Never retry its `429`.\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":23,"description":7},{"category":24},"Containers","main","af354bf2b99e17df77e52c512a7ba968c37c2306","agents\u002Fplatform\u002Fskills\u002Fgke-manifest-generation",44,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents","https:\u002F\u002Fgke-labs.github.io\u002Fkube-agents\u002F","https:\u002F\u002Fgithub.com\u002Fgke-labs","2026-11-14 20:53:19",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add gke-labs\u002Fkube-agents --skill gke-manifest-generation",{"tool":39,"command":40},"bunx","bunx skills add gke-labs\u002Fkube-agents --skill gke-manifest-generation",{"tool":42,"command":43},"pnpm","pnpm dlx skills add gke-labs\u002Fkube-agents --skill gke-manifest-generation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgke-manifest-generation\u002FSKILL.md",true,[47,53,57,61],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"references\u002Fai-inference.md","REFERENCE","参考文档",3065,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgke-manifest-generation\u002Freferences\u002Fai-inference.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"references\u002Fbasic-workload.md",3519,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgke-manifest-generation\u002Freferences\u002Fbasic-workload.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"references\u002Fgateway-api.md",906,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgke-manifest-generation\u002Freferences\u002Fgateway-api.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"references\u002Fnetwork-policy.md",918,"https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fagents\u002Fplatform\u002Fskills\u002Fgke-manifest-generation\u002Freferences\u002Fnetwork-policy.md",[66,73,80,87,94,101],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M72168JZM6CYRZFWW204PA2V","gke-workload-troubleshooting","Diagnoses GKE workload failures (CrashLoopBackOff, OOMKilled, ImagePullBackOff, Pending, etc.) via logs and events. Use when pods fail to start or crash repeatedly. Don't use for GKE cluster infrastructure provisioning, node pool creation, or non-Kubernetes Google Cloud services.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-troubleshooting\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M721643JPG43MFDHGN067D7T","gke-workload-security","Audits, configures, and hardens workload-level security controls for Google Kubernetes Engine (GKE) applications and namespaces. Covers running security audits (`audit_cluster.sh`), enforcing Network Policies (default-deny and Dataplane V2 logging), isolating high-risk pods inside GKE Sandbox (`gVisor`), enforcing Pod Security Standards (`restricted` labeling) and pod securityContext, and mounting Secret Manager secrets via CSI (`SecretProviderClass`). Use when auditing workload security posture, isolating namespaces, applying pod security standards, or configuring network policies and secret volume mounts. Don't use for Workload Identity (use gke-workload-identity), cluster-wide control plane security, RBAC hardening, Binary Authorization, Shielded Nodes, or enabling platform-level GKE add-ons (use gke-platform-security instead).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-security\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M721618QGFKZRWHS0RFVG7WT","gke-workload-scaling","Manages scaling for GKE workloads using HPA and VPA. Use when configuring Horizontal Pod Autoscaler (HPA), configuring Vertical Pod Autoscaler (VPA), or applying best practices for GKE workload autoscaling. Do not use for cluster-level autoscaling (Cluster Autoscaler), static cluster sizing, or configuring node-level machine styles directly.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-scaling\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7215WA1TNFDZE22VJEN3XXW","gke-workload-identity","Configures and diagnoses Workload Identity Federation for GKE authentication failures for Pods (403 \"iam.serviceAccounts.getAccessToken\" \u002F permission denied, \"could not find default credentials\", or GKE metadata server unreachable) by verifying cluster and node-pool Workload Identity configuration, the Kubernetes ServiceAccount (KSA) to IAM binding (direct principal binding and legacy Google ServiceAccount impersonation), target-resource IAM roles, and gke-metadata-server health. Use when setting up KSA\u002FGSA bindings (`roles\u002Fiam.workloadIdentityUser`, `iam.gke.io\u002Fgcp-service-account`) or when a Pod cannot authenticate to Google Cloud APIs. Don't use for in-cluster Kubernetes RBAC errors (API-server authorization), general workload crashes (use gke-workload-troubleshooting), or Pod Security Standards and NetworkPolicies (use gke-workload-security).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-workload-identity\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M7215PJTBTZ0W15ZZ2W32FF9","gke-upgrades","Plans, executes, and validates Google Kubernetes Engine (GKE) cluster upgrades and maintenance operations for both Standard and Autopilot clusters. Produces upgrade plans, pre\u002Fpost-upgrade checklists, maintenance runbooks with gcloud commands, release channel strategy, and troubleshooting guides. Handles node pool upgrade strategies (surge, blue-green), version compatibility, PDB management, and workload-specific concerns (stateful, GPU, operators). Use this skill whenever the user mentions GKE upgrades, Kubernetes version bumps, node pool maintenance, GKE patching, cluster version management, release channel selection, maintenance windows, surge upgrades, stuck upgrades, or any GKE lifecycle management task — even casual mentions like \"we need to upgrade our clusters\" or \"plan our next GKE maintenance\" or \"our upgrade is stuck.\" Don't use for GKE cluster creation, application onboarding, general networking\u002Frouting setup, or security policy configurations (use gke-basics or relevant GKE skills instead).","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-upgrades\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":18},"01M7215JX0FBZBTG4570CJ20HS","gke-tpu-metrics-monitoring","Monitors and troubleshoots GKE TPU workloads, nodes, and node pools using GKE system metrics and PromQL. Use when monitoring TensorCore duty cycle, TPU memory, node readiness, multi-host TPU node pool availability, host maintenance or preemption interruptions, and calculating MTTR or MTBI metrics for GKE TPUs. Don't use for general non-TPU GKE workload monitoring or non-metric TPU debugging.","https:\u002F\u002Fgithub.com\u002Fgke-labs\u002Fkube-agents\u002Fblob\u002Fmain\u002Fthird_party\u002Fgoogle-skills\u002Fgke-tpu-metrics-monitoring\u002FSKILL.md",[],[]]