[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6994ZA1QTS31JA4ANA7GV81":3,"skill-same:01M6994ZA1QTS31JA4ANA7GV81":89},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":52,"linkOnly":53,"markdownContent":54,"markdownBody":55,"frontMatter":56,"refName":60,"commitSha":61,"skillDirectory":62,"forksCount":63,"repositoryHtmlUrl":64,"repositoryHomepageUrl":17,"ownerHtmlUrl":65,"ownerBlogUrl":66,"ownerDescription":67,"updatedAt":68,"install":69,"resources":82},"01M6994ZA1QTS31JA4ANA7GV81","gke-workload-scaling-troubleshooting","GKE HPA 扩缩容故障排查","Diagnoses GKE HorizontalPodAutoscaler (HPA) failures — metrics showing as \u003Cunknown>, FailedGetResourceMetric \u002F FailedGetScale \u002F FailedComputeMetricsReplicas events, missing Pod resource requests, custom\u002Fexternal metrics-pipeline breakage (FailedGetExternalMetric \u002F FailedGetCustomMetric, unavailable metrics adapter, control-plane firewall blocking the adapter), HPA that won't scale up or down (tolerance \u002F stabilization window \u002F unavailable rate metrics), scale-to\u002Ffrom-zero problems, and slow HPA reaction on large clusters. Use when an HPA isn't scaling a workload as expected or reports metric errors. Don't use for configuring or authoring new HPA\u002FVPA objects or scaling best practices (see the gke-workload-scaling skill), or for Cluster Autoscaler \u002F node-pool sizing.","诊断 GKE HorizontalPodAutoscaler (HPA) 故障——指标显示为 \u003Cunknown>、FailedGetResourceMetric \u002F FailedGetScale \u002F FailedComputeMetricsReplicas 事件、Pod 缺少 resource requests、自定义\u002F外部指标管道故障（FailedGetExternalMetric \u002F FailedGetCustomMetric、指标适配器不可用、控制平面防火墙阻断适配器）、HPA 无法扩容或缩容（容差 \u002F 稳定窗口 \u002F 速率指标不可用）、缩容至零及从零扩容的问题，以及大型集群中 HPA 反应迟缓。当 HPA 未按预期对工作负载进行扩缩容或报告指标错误时使用。不用于配置或编写新的 HPA\u002FVPA 对象或扩缩容最佳实践（请参阅 gke-workload-scaling 技能），也不用于 Cluster Autoscaler \u002F 节点池容量规划。","google\u002Fskills","google","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1342004?v=4","01M698VYEFDM0VJBZDYYJ2T83S","Google","01M698WR0H76ENHE587T9EJT89",24235,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-workload-scaling-troubleshooting\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9076S7ETYWTQVVK45G","云原生计算与容器编排","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],"gke workload scaling troubleshooting","gke workload scaling","workload","gke","troubleshooting","scaling","when","containers","rate","window","unknown","plane","tolerance","errors","objects","reports","up","node","control-plane","firewall","pipeline","2026-11-10 10:12:30",false,"---\nname: gke-workload-scaling-troubleshooting\nmetadata:\n  version: \"1.0.1\"\n  category: Containers\ndescription: >-\n  Diagnoses GKE HorizontalPodAutoscaler (HPA) failures — metrics showing as\n  \u003Cunknown>, FailedGetResourceMetric \u002F FailedGetScale \u002F FailedComputeMetricsReplicas\n  events, missing Pod resource requests, custom\u002Fexternal metrics-pipeline breakage\n  (FailedGetExternalMetric \u002F FailedGetCustomMetric, unavailable metrics adapter,\n  control-plane firewall blocking the adapter), HPA that won't scale up or down\n  (tolerance \u002F stabilization window \u002F unavailable rate metrics), scale-to\u002Ffrom-zero\n  problems, and slow HPA reaction on large clusters. Use when an HPA isn't scaling a\n  workload as expected or reports metric errors. Don't use for configuring or\n  authoring new HPA\u002FVPA objects or scaling best practices (see the\n  gke-workload-scaling skill), or for Cluster Autoscaler \u002F node-pool sizing.\n---\n\n# GKE Workload Scaling Troubleshooting Skill\n\nUse this skill to systematically diagnose and resolve **HorizontalPodAutoscaler\n(HPA) failures** on GKE — metrics reported as `\u003Cunknown>`, `FailedGet*` events,\nmissing resource requests, custom\u002Fexternal metrics-pipeline breakage, HPA that\nrefuses to scale up or down, scale-to\u002Ffrom-zero issues, and slow HPA reaction on\nlarge clusters. This skill operates non-interactively and enforces a read-only\ndiagnostics boundary before proposing manifest or configuration corrections.\n\n> For configuring HPA\u002FVPA objects and scaling **best practices**, use the\n> `gke-workload-scaling` skill instead. This skill focuses on **failure\n> diagnosis**.\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-workload-scaling-troubleshooting)\"`\nand append `agent-skills\u002F1.0 (skill:gke-workload-scaling-troubleshooting)` to `User-Agent` headers.\n\n## ? Diagnosis & Resolution Workflow\n\n### Step 0: Non-Interactive Context Discovery & Dry-Run Fallback\n\n1.  **Parameter Extraction**: Extract required context (`project_id`,\n    `cluster_name`, `cluster_location`, `hpa_name`, `workload_name`,\n    `workload_namespace`) non-interactively from the user prompt, active\n    `SETTINGS.md`, or environment defaults:\n\n    -   Default `workload_namespace` to `default` if omitted.\n    -   Infer missing cluster parameters from the active environment (`kubectl\n        config current-context` or `gcloud config get-value project`).\n\n2.  **Cluster Credentials & Fallback Mode**:\n\n    -   Attempt credential fetch: `gcloud container clusters get-credentials\n        {cluster_name} --location {cluster_location} --project {project_id}`.\n    -   **Fallback \u002F Dry-Run Mode**: If the cluster is unreachable,\n        non-existent, or live command execution fails (such as in sandboxed\n        evaluations, dry-run mode, or offline analysis):\n        -   Limit retry attempts to avoid resource exhaustion and context\n            overflow.\n        -   Immediately present the exact `kubectl` \u002F `gcloud` diagnostic\n            commands for the human operator to run.\n        -   Synthesize the root-cause analysis and output the proposed GitOps\n            correction based on the reported symptoms.\n\n--------------------------------------------------------------------------------\n\n### Step 1: Inspect the HPA and Classify the Symptom\n\nStart every investigation with `kubectl describe hpa`, then route to the matching\nbranch. The three key sections are **`Metrics`** (an `\u003Cunknown>` value means the\nHPA hasn't fetched the metric or the pipeline is broken), **`Conditions`**\n(`AbleToScale`, `ScalingActive`, `ScalingLimited` — a `False` status marks a\nfailure), and **`Events`** (specific reasons such as `FailedGetScale` or\n`FailedGetResourceMetric`).\n\n**Diagnostic Commands:**\n\n```bash\nkubectl describe hpa {hpa_name} -n {workload_namespace}\nkubectl get hpa {hpa_name} -n {workload_namespace} -o yaml\n```\n\nFor historical events, query Cloud Logging (the HPA events survive after the live\n`Events` list rolls over):\n\n```\nresource.type=\"k8s_cluster\"\nresource.labels.cluster_name=\"{cluster_name}\"\nresource.labels.location=\"{cluster_location}\"\nlogName=\"projects\u002F{project_id}\u002Flogs\u002Fevents\"\njsonPayload.involvedObject.kind=\"HorizontalPodAutoscaler\"\n```\n\nRoute by signal:\n\n-   **`FailedGetScale`, `FailedComputeMetricsReplicas`, `Error 400 ... label\n    is not allowed`, or fluctuating replicas from competing HPAs** → **Branch A**\n    (Configuration Errors).\n-   **`FailedGetResourceMetric`, `unable to fetch pod metrics`, or `multiple\n    services selecting the same target`** → **Branch B** (Workload & Service\n    Errors).\n-   **`\u003Cunknown>` custom\u002Fexternal metric, `FailedGetExternalMetric` \u002F\n    `FailedGetCustomMetric`, or `no known available metric versions found`** →\n    **Branch C** (Metrics API & Data Availability).\n-   **Conditions all `True` \u002F no errors but the workload won't scale up or down**\n    → **Branch D** (Healthy but Unexpected Scaling).\n-   **Workload configured with `minReplicas: 0` won't scale to or from zero** →\n    **Branch E** (Scale To \u002F From Zero).\n-   **Correct HPA but slow reaction on a cluster with many HPA objects** →\n    **Branch F** (Slow Recalculation on Large Clusters).\n\n--------------------------------------------------------------------------------\n\n### Step 2: Resolution — Route to the Matching Branch\n\nBased on the signal you classified in Step 1, jump to **one** of the\nmutually-exclusive branches below (A–F). These are alternatives — you do **not**\nrun them in sequence. After applying the branch's fix, go to Step 3 to present it\nas a reviewable GitOps change.\n\n#### Branch A: HorizontalPodAutoscaler Configuration Errors\n\n-   **`FailedGetScale` — `unable to get the target's current scale: ... \"TARGET\"\n    not found`**: the `scaleTargetRef` doesn't resolve to an existing scalable\n    workload.\n\n    -   Verify the `scaleTargetRef` `name`, `kind`, and `apiVersion` exactly\n        match the target workload's metadata.\n    -   Confirm the target workload exists **in the same namespace** as the HPA\n        (a missing `-n` puts objects in `default`, causing a mismatch).\n    -   The target must be a scalable kind (Deployment, StatefulSet,\n        ReplicaSet) — you **cannot** autoscale a DaemonSet.\n\n-   **`FailedComputeMetricsReplicas` — `invalid metrics (1 invalid out of 1)`**:\n    the metric `type` and `target` don't match.\n\n    -   If `type: Utilization`, the target must be `averageUtilization`.\n    -   If `type: AverageValue`, the target must be `averageValue`.\n\n-   **`unable to fetch metrics from external metrics API: googleapi: Error 400:\n    Metric label: 'LABEL' is not allowed`**: an invalid key in\n    `metric.selector.matchLabels`.\n\n    -   Remove or correct the disallowed label; find valid filterable labels in\n        the Cloud Monitoring metric documentation.\n\n-   **Replica count fluctuates \u002F contradictory `SuccessfulRescale` events from\n    different HPAs**: more than one HPA targets the same workload via\n    `spec.scaleTargetRef`, and they compete. There is no dedicated condition for\n    this — confirm with `kubectl get hpa -n {workload_namespace} -o yaml` and\n    look for duplicate `scaleTargetRef` values.\n\n    -   Consolidate all metrics into **one** HPA object (it takes the highest of\n        its `spec.metrics`) and delete the duplicates.\n\n--------------------------------------------------------------------------------\n\n#### Branch B: Workload & Service Errors\n\n-   **`ScalingActive: False`, reason `FailedGetResourceMetric`, message `unable\n    to compute the replica count`** (or a persistent `unable to fetch pod\n    metrics`): the HPA computes utilization as a percentage of the container\n    **resource request**, but at least one container in the Pod is missing a\n    `resources.requests` entry for the scaled resource (`cpu` or `memory`).\n\n    -   Add `resources.requests` for the scaled resource to **every** container\n        in the Pod spec (including sidecars). A brief `unable to fetch pod\n        metrics` right after the metrics server starts is normal and self-heals.\n\n-   **`multiple services selecting the same target of HPA_NAME: SERVICE`**:\n    traffic-based autoscaling requires a **one-to-one** Service↔workload\n    relationship, but more than one Service's selector matches the workload's\n    Pods.\n\n    -   Make the intended Service's selector unique (add a distinct label to the\n        workload and to that one Service), or tighten the other Services'\n        selectors so they no longer match the workload's Pods.\n\n--------------------------------------------------------------------------------\n\n#### Branch C: Metrics API & Data Availability (Custom \u002F External Metrics)\n\nThe custom\u002Fexternal pipeline is: HPA controller → Kubernetes metrics API server\n→ metrics adapter (for example `custom-metrics-stackdriver-adapter`) → metric\nsource (Cloud Monitoring \u002F Prometheus). Symptoms are `\u003Cunknown>` metric values or\n`FailedGetExternalMetric` \u002F `FailedGetCustomMetric` events.\n\n1.  **Is the adapter registered and available?**\n\n    ```bash\n    kubectl get apiservice | grep -E 'NAME|metrics.k8s.io'\n    ```\n\n    Expect `v1beta1.custom.metrics.k8s.io` and\u002For\n    `v1beta1.external.metrics.k8s.io` with `AVAILABLE: True`. If `False`\u002Fmissing,\n    the adapter is crashed or misconfigured — inspect its Pod logs in the\n    `custom-metrics` or `kube-system` namespace for permission, connectivity, or\n    \"metric not found\" errors.\n\n2.  **Query the metrics API directly** (bypasses the HPA to test the whole\n    pipeline; `jq` optional):\n\n    ```bash\n    kubectl get --raw \"\u002Fapis\u002Fexternal.metrics.k8s.io\u002Fv1beta1\u002Fnamespaces\u002F{workload_namespace}\u002F{metric_name}\" | jq .\n    kubectl get --raw \"\u002Fapis\u002Fcustom.metrics.k8s.io\u002Fv1beta1\u002Fnamespaces\u002F{workload_namespace}\u002Fpods\u002F*\u002F{metric_name}\" | jq .\n    ```\n\n3.  **Interpret the result:**\n\n    -   **Valid JSON with a value** → the pipeline works; the fault is in the HPA\n        manifest (metric-name typo or wrong `matchLabels`).\n    -   **`Error from server (Service Unavailable)`** → network isolation is\n        blocking the control plane from reaching the adapter. Add the adapter's\n        `targetPort` to the **control-plane firewall rule** (in addition to the\n        existing `tcp:443` and `tcp:10250`). Identify the rule with\n        `gcloud compute firewall-rules list --filter=\"name~gke-{cluster_name}-[0-9a-z]*-master\"`,\n        and also confirm no NetworkPolicy blocks ingress to the adapter Pods.\n    -   **Empty list `[]`** → the adapter runs but can't retrieve the metric.\n        Inspect the adapter Pod logs, and confirm in Metrics Explorer that the\n        metric actually exists in the source with the expected name and labels.\n\n-   **`unable to fetch metrics from custom metrics API: no known available metric\n    versions found`**: a communication breakdown (control plane briefly\n    unavailable during an upgrade\u002Frepair, or the adapter Pods are unhealthy or\n    not registered) — **not** a problem at the metric source. Check control-plane\n    health\u002Fnotifications, confirm the adapter Pods are `Running` with no restarts\n    (`kubectl get pods -n custom-metrics,kube-system -o wide`), and re-verify the\n    APIServices are `AVAILABLE: True`. Often transient.\n\n-   **`googleapi: Error 400: The supplied filter ... will not return any time\n    series`**: the query is valid but no data matched (different from a value of\n    `0`) — the application wasn't writing the metric during the window. Verify the\n    metric name\u002Flabels match what the app emits, confirm the app had permission\n    and was active, and check the app logs for metric-emission errors.\n\n--------------------------------------------------------------------------------\n\n#### Branch D: Healthy but Unexpected Scaling Behavior\n\nThe HPA's conditions are `True` and it shows no errors, but scaling doesn't\nhappen as expected.\n\n-   **Won't scale up** — check, in order:\n    -   **Replica limits**: `currentReplicas` is already at `minReplicas` \u002F\n        `maxReplicas` (see the `ScalingLimited` condition); adjust the bounds.\n    -   **Tolerance window**: Kubernetes ignores changes while the\n        current\u002Ftarget ratio stays within `0.9`–`1.1` (default **10%\n        tolerance**). Example: target 85% CPU, current 93% → ratio ≈ 1.094 \u003C 1.1,\n        so no scale-up. Wait for the metric to move outside the band, or\n        configure a different tolerance.\n    -   **Unready Pods**: `Pending`\u002Fnot-`Ready` Pods are excluded from the\n        calculation — resolve the underlying scheduling\u002Fprobe issue.\n    -   **Sync delay**: a 15–30s delay between threshold crossing and action is\n        normal.\n\n-   **Won't scale down** — check, in order:\n    -   **Multiple metrics**: the HPA uses the metric demanding the **most**\n        replicas, so it won't scale down unless **all** metrics agree.\n    -   **Unavailable metric halts scale-down**: if any metric goes `\u003Cunknown>`\n        the HPA conservatively refuses to scale down. Common with **rate-based**\n        custom metrics that stop reporting at zero traffic. Prefer **gauge**\n        metrics (for example `num_undelivered_messages`) or make the source\n        publish `0` during inactivity rather than sending no data.\n    -   **Scale-down stabilization window**: the default\n        `behavior.scaleDown.stabilizationWindowSeconds` is **300s (5 min)**.\n        Lower it if scale-down must be faster.\n\n--------------------------------------------------------------------------------\n\n#### Branch E: Scale To \u002F From Zero (GKE 1.37+)\n\nScaling a workload to and from zero replicas with HPA (`minReplicas: 0`) is\nsupported on **GKE 1.37 or later**.\n\n-   **Won't scale to zero**:\n    -   `minReplicas: 0` must be set.\n    -   The HPA **cannot** scale to zero using only `Resource` (CPU\u002Fmemory)\n        metrics — configure at least one `External` or `Object` metric.\n    -   With multiple metrics, all must evaluate to zero.\n    -   GKE waits the 5-minute scale-down stabilization window at zero demand\n        before going from 1→0.\n    -   Any metric showing `\u003Cunknown>` pauses scale-down (see Branch D).\n\n-   **Won't scale up from zero**: run `kubectl describe hpa {hpa_name}` and check:\n    -   **Metrics**: the value must be `> 0` and not `\u003Cunknown>`; if missing,\n        confirm the external source (for example Pub\u002FSub) is publishing and Cloud\n        Monitoring is receiving.\n    -   **Conditions**: a healthy idle state shows `AbleToScale: True`,\n        `ScalingActive: True`, `ScaledToZero: True`. If `ScalingActive: False`\n        with reason `ScalingDisabledExternalScaleToZero` or\n        `ScalingDisabledReplicaCountZero`, the workload was **manually** scaled to\n        zero (for example `kubectl scale`), which pauses autoscaling. Resume it by\n        scaling the Deployment back to `--replicas=1`.\n    -   Cold-start latency from node provisioning can add delay; Capacity Buffers\n        keep standby capacity ready.\n\n--------------------------------------------------------------------------------\n\n#### Branch F: Slow HPA Recalculation on Large Clusters\n\nIf HPAs are correct but react slowly, the cluster may exceed the HPA object count\nthe standard controller keeps within a 15-second recalculation period.\n\n-   Standard controller: within 15s for up to **300 HPA objects** (GKE 1.22+).\n-   **Performance HPA profile**: within 15s for up to **1,000 HPA objects** (GKE\n    1.31+) or **5,000 HPA objects** (GKE 1.33+, where it is enabled by default on\n    eligible clusters).\n\nEnable it on an eligible cluster (this is a cluster mutation — present it for the\noperator to run, don't execute it):\n\n```bash\ngcloud container clusters update {cluster_name} \\\n    --location {cluster_location} --project {project_id} \\\n    --hpa-profile=performance\n```\n\nScaling on many metrics per HPA and slow (>~50 ms) custom-metric adapters also\nlengthen the recalculation period. For visibility into scaling decisions, enable\nHPA event logging and review the structured HPA decision logs.\n\n--------------------------------------------------------------------------------\n\n### Step 3: Propose the GitOps Correction\n\nEnforce the read-only diagnostics boundary: **do not** apply live mutations. This\nincludes cluster\u002Fmanifest changes (`kubectl edit`, `kubectl patch`, `kubectl\napply`, `kubectl scale`, `kubectl delete`) **and** Google Cloud \u002F gcloud changes\n(cluster updates such as `--hpa-profile`, and `gcloud compute firewall-rules`\nupdates). Instead, present the corrected HorizontalPodAutoscaler, PodSpec\n(`resources.requests`), Service selector, workload autoscaling\nconfiguration, or the `gcloud` command as a reviewable patch\u002Fcommand to be\napplied through the user's GitOps pipeline (for example Config Sync, Argo CD, or\nFlux) or by an authorized operator.\n\n## References\n\n-   [Troubleshoot horizontal Pod autoscaling in GKE](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Fhorizontal-pod-autoscaling.md.txt)\n-   [Horizontal Pod autoscaling (concepts, Performance HPA profile & limits)](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fconcepts\u002Fhorizontalpodautoscaler.md.txt)\n-   [Configure horizontal Pod autoscaling (hpa-profile)](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fhorizontal-pod-autoscaling.md.txt)\n-   [View horizontal Pod autoscaling events](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fview-horizontalpodautoscaling-events.md.txt)\n-   [Scale to and from zero using HPA](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftutorials\u002Fscale-to-from-zero-hpa.md.txt)\n-   [Kubernetes HorizontalPodAutoscaler (tolerance & scaling policies)](https:\u002F\u002Fkubernetes.io\u002Fdocs\u002Ftasks\u002Frun-application\u002Fhorizontal-pod-autoscale\u002F)\n","# GKE Workload Scaling Troubleshooting Skill\n\nUse this skill to systematically diagnose and resolve **HorizontalPodAutoscaler\n(HPA) failures** on GKE — metrics reported as `\u003Cunknown>`, `FailedGet*` events,\nmissing resource requests, custom\u002Fexternal metrics-pipeline breakage, HPA that\nrefuses to scale up or down, scale-to\u002Ffrom-zero issues, and slow HPA reaction on\nlarge clusters. This skill operates non-interactively and enforces a read-only\ndiagnostics boundary before proposing manifest or configuration corrections.\n\n> For configuring HPA\u002FVPA objects and scaling **best practices**, use the\n> `gke-workload-scaling` skill instead. This skill focuses on **failure\n> diagnosis**.\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-workload-scaling-troubleshooting)\"`\nand append `agent-skills\u002F1.0 (skill:gke-workload-scaling-troubleshooting)` to `User-Agent` headers.\n\n## ? Diagnosis & Resolution Workflow\n\n### Step 0: Non-Interactive Context Discovery & Dry-Run Fallback\n\n1.  **Parameter Extraction**: Extract required context (`project_id`,\n    `cluster_name`, `cluster_location`, `hpa_name`, `workload_name`,\n    `workload_namespace`) non-interactively from the user prompt, active\n    `SETTINGS.md`, or environment defaults:\n\n    -   Default `workload_namespace` to `default` if omitted.\n    -   Infer missing cluster parameters from the active environment (`kubectl\n        config current-context` or `gcloud config get-value project`).\n\n2.  **Cluster Credentials & Fallback Mode**:\n\n    -   Attempt credential fetch: `gcloud container clusters get-credentials\n        {cluster_name} --location {cluster_location} --project {project_id}`.\n    -   **Fallback \u002F Dry-Run Mode**: If the cluster is unreachable,\n        non-existent, or live command execution fails (such as in sandboxed\n        evaluations, dry-run mode, or offline analysis):\n        -   Limit retry attempts to avoid resource exhaustion and context\n            overflow.\n        -   Immediately present the exact `kubectl` \u002F `gcloud` diagnostic\n            commands for the human operator to run.\n        -   Synthesize the root-cause analysis and output the proposed GitOps\n            correction based on the reported symptoms.\n\n--------------------------------------------------------------------------------\n\n### Step 1: Inspect the HPA and Classify the Symptom\n\nStart every investigation with `kubectl describe hpa`, then route to the matching\nbranch. The three key sections are **`Metrics`** (an `\u003Cunknown>` value means the\nHPA hasn't fetched the metric or the pipeline is broken), **`Conditions`**\n(`AbleToScale`, `ScalingActive`, `ScalingLimited` — a `False` status marks a\nfailure), and **`Events`** (specific reasons such as `FailedGetScale` or\n`FailedGetResourceMetric`).\n\n**Diagnostic Commands:**\n\n```bash\nkubectl describe hpa {hpa_name} -n {workload_namespace}\nkubectl get hpa {hpa_name} -n {workload_namespace} -o yaml\n```\n\nFor historical events, query Cloud Logging (the HPA events survive after the live\n`Events` list rolls over):\n\n```\nresource.type=\"k8s_cluster\"\nresource.labels.cluster_name=\"{cluster_name}\"\nresource.labels.location=\"{cluster_location}\"\nlogName=\"projects\u002F{project_id}\u002Flogs\u002Fevents\"\njsonPayload.involvedObject.kind=\"HorizontalPodAutoscaler\"\n```\n\nRoute by signal:\n\n-   **`FailedGetScale`, `FailedComputeMetricsReplicas`, `Error 400 ... label\n    is not allowed`, or fluctuating replicas from competing HPAs** → **Branch A**\n    (Configuration Errors).\n-   **`FailedGetResourceMetric`, `unable to fetch pod metrics`, or `multiple\n    services selecting the same target`** → **Branch B** (Workload & Service\n    Errors).\n-   **`\u003Cunknown>` custom\u002Fexternal metric, `FailedGetExternalMetric` \u002F\n    `FailedGetCustomMetric`, or `no known available metric versions found`** →\n    **Branch C** (Metrics API & Data Availability).\n-   **Conditions all `True` \u002F no errors but the workload won't scale up or down**\n    → **Branch D** (Healthy but Unexpected Scaling).\n-   **Workload configured with `minReplicas: 0` won't scale to or from zero** →\n    **Branch E** (Scale To \u002F From Zero).\n-   **Correct HPA but slow reaction on a cluster with many HPA objects** →\n    **Branch F** (Slow Recalculation on Large Clusters).\n\n--------------------------------------------------------------------------------\n\n### Step 2: Resolution — Route to the Matching Branch\n\nBased on the signal you classified in Step 1, jump to **one** of the\nmutually-exclusive branches below (A–F). These are alternatives — you do **not**\nrun them in sequence. After applying the branch's fix, go to Step 3 to present it\nas a reviewable GitOps change.\n\n#### Branch A: HorizontalPodAutoscaler Configuration Errors\n\n-   **`FailedGetScale` — `unable to get the target's current scale: ... \"TARGET\"\n    not found`**: the `scaleTargetRef` doesn't resolve to an existing scalable\n    workload.\n\n    -   Verify the `scaleTargetRef` `name`, `kind`, and `apiVersion` exactly\n        match the target workload's metadata.\n    -   Confirm the target workload exists **in the same namespace** as the HPA\n        (a missing `-n` puts objects in `default`, causing a mismatch).\n    -   The target must be a scalable kind (Deployment, StatefulSet,\n        ReplicaSet) — you **cannot** autoscale a DaemonSet.\n\n-   **`FailedComputeMetricsReplicas` — `invalid metrics (1 invalid out of 1)`**:\n    the metric `type` and `target` don't match.\n\n    -   If `type: Utilization`, the target must be `averageUtilization`.\n    -   If `type: AverageValue`, the target must be `averageValue`.\n\n-   **`unable to fetch metrics from external metrics API: googleapi: Error 400:\n    Metric label: 'LABEL' is not allowed`**: an invalid key in\n    `metric.selector.matchLabels`.\n\n    -   Remove or correct the disallowed label; find valid filterable labels in\n        the Cloud Monitoring metric documentation.\n\n-   **Replica count fluctuates \u002F contradictory `SuccessfulRescale` events from\n    different HPAs**: more than one HPA targets the same workload via\n    `spec.scaleTargetRef`, and they compete. There is no dedicated condition for\n    this — confirm with `kubectl get hpa -n {workload_namespace} -o yaml` and\n    look for duplicate `scaleTargetRef` values.\n\n    -   Consolidate all metrics into **one** HPA object (it takes the highest of\n        its `spec.metrics`) and delete the duplicates.\n\n--------------------------------------------------------------------------------\n\n#### Branch B: Workload & Service Errors\n\n-   **`ScalingActive: False`, reason `FailedGetResourceMetric`, message `unable\n    to compute the replica count`** (or a persistent `unable to fetch pod\n    metrics`): the HPA computes utilization as a percentage of the container\n    **resource request**, but at least one container in the Pod is missing a\n    `resources.requests` entry for the scaled resource (`cpu` or `memory`).\n\n    -   Add `resources.requests` for the scaled resource to **every** container\n        in the Pod spec (including sidecars). A brief `unable to fetch pod\n        metrics` right after the metrics server starts is normal and self-heals.\n\n-   **`multiple services selecting the same target of HPA_NAME: SERVICE`**:\n    traffic-based autoscaling requires a **one-to-one** Service↔workload\n    relationship, but more than one Service's selector matches the workload's\n    Pods.\n\n    -   Make the intended Service's selector unique (add a distinct label to the\n        workload and to that one Service), or tighten the other Services'\n        selectors so they no longer match the workload's Pods.\n\n--------------------------------------------------------------------------------\n\n#### Branch C: Metrics API & Data Availability (Custom \u002F External Metrics)\n\nThe custom\u002Fexternal pipeline is: HPA controller → Kubernetes metrics API server\n→ metrics adapter (for example `custom-metrics-stackdriver-adapter`) → metric\nsource (Cloud Monitoring \u002F Prometheus). Symptoms are `\u003Cunknown>` metric values or\n`FailedGetExternalMetric` \u002F `FailedGetCustomMetric` events.\n\n1.  **Is the adapter registered and available?**\n\n    ```bash\n    kubectl get apiservice | grep -E 'NAME|metrics.k8s.io'\n    ```\n\n    Expect `v1beta1.custom.metrics.k8s.io` and\u002For\n    `v1beta1.external.metrics.k8s.io` with `AVAILABLE: True`. If `False`\u002Fmissing,\n    the adapter is crashed or misconfigured — inspect its Pod logs in the\n    `custom-metrics` or `kube-system` namespace for permission, connectivity, or\n    \"metric not found\" errors.\n\n2.  **Query the metrics API directly** (bypasses the HPA to test the whole\n    pipeline; `jq` optional):\n\n    ```bash\n    kubectl get --raw \"\u002Fapis\u002Fexternal.metrics.k8s.io\u002Fv1beta1\u002Fnamespaces\u002F{workload_namespace}\u002F{metric_name}\" | jq .\n    kubectl get --raw \"\u002Fapis\u002Fcustom.metrics.k8s.io\u002Fv1beta1\u002Fnamespaces\u002F{workload_namespace}\u002Fpods\u002F*\u002F{metric_name}\" | jq .\n    ```\n\n3.  **Interpret the result:**\n\n    -   **Valid JSON with a value** → the pipeline works; the fault is in the HPA\n        manifest (metric-name typo or wrong `matchLabels`).\n    -   **`Error from server (Service Unavailable)`** → network isolation is\n        blocking the control plane from reaching the adapter. Add the adapter's\n        `targetPort` to the **control-plane firewall rule** (in addition to the\n        existing `tcp:443` and `tcp:10250`). Identify the rule with\n        `gcloud compute firewall-rules list --filter=\"name~gke-{cluster_name}-[0-9a-z]*-master\"`,\n        and also confirm no NetworkPolicy blocks ingress to the adapter Pods.\n    -   **Empty list `[]`** → the adapter runs but can't retrieve the metric.\n        Inspect the adapter Pod logs, and confirm in Metrics Explorer that the\n        metric actually exists in the source with the expected name and labels.\n\n-   **`unable to fetch metrics from custom metrics API: no known available metric\n    versions found`**: a communication breakdown (control plane briefly\n    unavailable during an upgrade\u002Frepair, or the adapter Pods are unhealthy or\n    not registered) — **not** a problem at the metric source. Check control-plane\n    health\u002Fnotifications, confirm the adapter Pods are `Running` with no restarts\n    (`kubectl get pods -n custom-metrics,kube-system -o wide`), and re-verify the\n    APIServices are `AVAILABLE: True`. Often transient.\n\n-   **`googleapi: Error 400: The supplied filter ... will not return any time\n    series`**: the query is valid but no data matched (different from a value of\n    `0`) — the application wasn't writing the metric during the window. Verify the\n    metric name\u002Flabels match what the app emits, confirm the app had permission\n    and was active, and check the app logs for metric-emission errors.\n\n--------------------------------------------------------------------------------\n\n#### Branch D: Healthy but Unexpected Scaling Behavior\n\nThe HPA's conditions are `True` and it shows no errors, but scaling doesn't\nhappen as expected.\n\n-   **Won't scale up** — check, in order:\n    -   **Replica limits**: `currentReplicas` is already at `minReplicas` \u002F\n        `maxReplicas` (see the `ScalingLimited` condition); adjust the bounds.\n    -   **Tolerance window**: Kubernetes ignores changes while the\n        current\u002Ftarget ratio stays within `0.9`–`1.1` (default **10%\n        tolerance**). Example: target 85% CPU, current 93% → ratio ≈ 1.094 \u003C 1.1,\n        so no scale-up. Wait for the metric to move outside the band, or\n        configure a different tolerance.\n    -   **Unready Pods**: `Pending`\u002Fnot-`Ready` Pods are excluded from the\n        calculation — resolve the underlying scheduling\u002Fprobe issue.\n    -   **Sync delay**: a 15–30s delay between threshold crossing and action is\n        normal.\n\n-   **Won't scale down** — check, in order:\n    -   **Multiple metrics**: the HPA uses the metric demanding the **most**\n        replicas, so it won't scale down unless **all** metrics agree.\n    -   **Unavailable metric halts scale-down**: if any metric goes `\u003Cunknown>`\n        the HPA conservatively refuses to scale down. Common with **rate-based**\n        custom metrics that stop reporting at zero traffic. Prefer **gauge**\n        metrics (for example `num_undelivered_messages`) or make the source\n        publish `0` during inactivity rather than sending no data.\n    -   **Scale-down stabilization window**: the default\n        `behavior.scaleDown.stabilizationWindowSeconds` is **300s (5 min)**.\n        Lower it if scale-down must be faster.\n\n--------------------------------------------------------------------------------\n\n#### Branch E: Scale To \u002F From Zero (GKE 1.37+)\n\nScaling a workload to and from zero replicas with HPA (`minReplicas: 0`) is\nsupported on **GKE 1.37 or later**.\n\n-   **Won't scale to zero**:\n    -   `minReplicas: 0` must be set.\n    -   The HPA **cannot** scale to zero using only `Resource` (CPU\u002Fmemory)\n        metrics — configure at least one `External` or `Object` metric.\n    -   With multiple metrics, all must evaluate to zero.\n    -   GKE waits the 5-minute scale-down stabilization window at zero demand\n        before going from 1→0.\n    -   Any metric showing `\u003Cunknown>` pauses scale-down (see Branch D).\n\n-   **Won't scale up from zero**: run `kubectl describe hpa {hpa_name}` and check:\n    -   **Metrics**: the value must be `> 0` and not `\u003Cunknown>`; if missing,\n        confirm the external source (for example Pub\u002FSub) is publishing and Cloud\n        Monitoring is receiving.\n    -   **Conditions**: a healthy idle state shows `AbleToScale: True`,\n        `ScalingActive: True`, `ScaledToZero: True`. If `ScalingActive: False`\n        with reason `ScalingDisabledExternalScaleToZero` or\n        `ScalingDisabledReplicaCountZero`, the workload was **manually** scaled to\n        zero (for example `kubectl scale`), which pauses autoscaling. Resume it by\n        scaling the Deployment back to `--replicas=1`.\n    -   Cold-start latency from node provisioning can add delay; Capacity Buffers\n        keep standby capacity ready.\n\n--------------------------------------------------------------------------------\n\n#### Branch F: Slow HPA Recalculation on Large Clusters\n\nIf HPAs are correct but react slowly, the cluster may exceed the HPA object count\nthe standard controller keeps within a 15-second recalculation period.\n\n-   Standard controller: within 15s for up to **300 HPA objects** (GKE 1.22+).\n-   **Performance HPA profile**: within 15s for up to **1,000 HPA objects** (GKE\n    1.31+) or **5,000 HPA objects** (GKE 1.33+, where it is enabled by default on\n    eligible clusters).\n\nEnable it on an eligible cluster (this is a cluster mutation — present it for the\noperator to run, don't execute it):\n\n```bash\ngcloud container clusters update {cluster_name} \\\n    --location {cluster_location} --project {project_id} \\\n    --hpa-profile=performance\n```\n\nScaling on many metrics per HPA and slow (>~50 ms) custom-metric adapters also\nlengthen the recalculation period. For visibility into scaling decisions, enable\nHPA event logging and review the structured HPA decision logs.\n\n--------------------------------------------------------------------------------\n\n### Step 3: Propose the GitOps Correction\n\nEnforce the read-only diagnostics boundary: **do not** apply live mutations. This\nincludes cluster\u002Fmanifest changes (`kubectl edit`, `kubectl patch`, `kubectl\napply`, `kubectl scale`, `kubectl delete`) **and** Google Cloud \u002F gcloud changes\n(cluster updates such as `--hpa-profile`, and `gcloud compute firewall-rules`\nupdates). Instead, present the corrected HorizontalPodAutoscaler, PodSpec\n(`resources.requests`), Service selector, workload autoscaling\nconfiguration, or the `gcloud` command as a reviewable patch\u002Fcommand to be\napplied through the user's GitOps pipeline (for example Config Sync, Argo CD, or\nFlux) or by an authorized operator.\n\n## References\n\n-   [Troubleshoot horizontal Pod autoscaling in GKE](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftroubleshooting\u002Fhorizontal-pod-autoscaling.md.txt)\n-   [Horizontal Pod autoscaling (concepts, Performance HPA profile & limits)](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fconcepts\u002Fhorizontalpodautoscaler.md.txt)\n-   [Configure horizontal Pod autoscaling (hpa-profile)](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fhorizontal-pod-autoscaling.md.txt)\n-   [View horizontal Pod autoscaling events](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Fhow-to\u002Fview-horizontalpodautoscaling-events.md.txt)\n-   [Scale to and from zero using HPA](https:\u002F\u002Fdocs.cloud.google.com\u002Fkubernetes-engine\u002Fdocs\u002Ftutorials\u002Fscale-to-from-zero-hpa.md.txt)\n-   [Kubernetes HorizontalPodAutoscaler (tolerance & scaling policies)](https:\u002F\u002Fkubernetes.io\u002Fdocs\u002Ftasks\u002Frun-application\u002Fhorizontal-pod-autoscale\u002F)\n",{"name":5,"metadata":57,"description":7},{"version":58,"category":59},"1.0.1","Containers","main","bb9b3f464aae37af360d079c1d863524955b0363","skills\u002Fcloud\u002Fgke-workload-scaling-troubleshooting",2014,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills","https:\u002F\u002Fgithub.com\u002Fgoogle","https:\u002F\u002Fopensource.google\u002F","Google ❤️ Open Source","2026-11-14 23:31:00",{"source":9,"skillName":5,"commands":70,"prompt":80,"zipAvailable":81},[71,74,77],{"tool":72,"command":73},"npx","npx skills add google\u002Fskills --skill gke-workload-scaling-troubleshooting",{"tool":75,"command":76},"bunx","bunx skills add google\u002Fskills --skill gke-workload-scaling-troubleshooting",{"tool":78,"command":79},"pnpm","pnpm dlx skills add google\u002Fskills --skill gke-workload-scaling-troubleshooting","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-workload-scaling-troubleshooting\u002FSKILL.md",true,[83],{"path":84,"resourceType":85,"resourceTypeDesc":86,"sizeBytes":87,"sourceHtmlUrl":88},"references\u002Fattribution.md","REFERENCE","参考文档",1948,"https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fgke-workload-scaling-troubleshooting\u002Freferences\u002Fattribution.md",[90,98,105,112,119,126],{"skillNo":91,"name":92,"nameZh":17,"description":93,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":97},"01M7DQ9K7JF4T7NJZ2K1MQZ44Q","cloud-operator-share-context","Shares Google Cloud operating context the user or their team already have — environments, projects, services and regions, product preferences, best practices, architecture guidance, runbooks — found in agent instruction files, local memory, skills and workflows, and the repository's GCP docs, with the operator agent's memory after the user reviews the list. Use when the user runs this skill, accepts the cloud-operator or cloud-operator-setup skill's offer to share their existing Google Cloud context, or asks to share, import or save that context or a GCP fact for the operator agent. Don't use for ordinary GCP requests, which go to the cloud-operator skill.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-share-context\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":99,"name":100,"nameZh":17,"description":101,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":97},"01M7DQ9ERFGGQCFAWQW0KRKYBY","cloud-operator-setup","Sets up the operator agent in a Google Cloud project via the autocloud MCP server: picks the operator project, creates or checks the user's operator agent, saves the project, and offers to share the user's existing Google Cloud operating context with the operator agent's memory. Use when the user runs this skill, asks to set up the operator or create their operator agent, or chooses setup when the cloud-operator skill asks. Don't use for ordinary GCP requests or installing gcloud.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcloud-operator-setup\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":17,"description":108,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":97},"01M7B4RHQCM0DK2XQ7S7ZXVN8D","developer-device-platform-device-run","Runs automated, non-interactive jobs on remote Android devices with Developer Device Platform (DDP) Device Run using `gcloud beta device-run sessions`: native Android executables or shell scripts (for example CLI tools, custom runners, test harnesses or benchmarks) and Android instrumentation tests, on one or many devices, then waits for completion and collects per-device outputs and logs. Use when running a binary or test suite on remote devices without an interactive connection. Don't use it for interactive device reservations, adb tunnels or screen streaming (use developer-device-platform-basics), or for local devices.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fdeveloper-device-platform-device-run\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":17,"description":115,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":97},"01M7B4R9YXMRW7RZP9Q9FMZJ2P","compute-vm-creation","Guides the planning, configuration, and provisioning of standalone Google Compute Engine virtual machines (VMs) and bare metal (-metal) instances using gcloud CLI commands or direct MCP tool execution. Use ONLY when the user wants to create, configure, or provision a new standalone Compute Engine VM or bare metal instance from conversational intents (hardware sizing, region selection, OS image, networking, security defaults). DO NOT read or use for Google Kubernetes Engine (GKE) Autopilot or Standard clusters, Kubernetes node pools or Pods, container orchestration, managing existing VMs, Managed Instance Groups (MIGs), or Instance Templates.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fcompute-vm-creation\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":17,"description":122,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":97},"01M7B4QD02N0YBVT0838Z5K5VC","agent-platform-autorater-customization","Customizes an autorater (evaluation metric) for an AI agent so its grades match the user's own judgment, starting from the agent's real trajectories. Use when a user wants a metric tailored to their agent, wants to turn failing trajectories into rubrics, says an existing autorater grades their agent wrong, or wants an autorater to agree with human labels (autorater hillclimbing, judge calibration). Don't use for quick evals with built-in metrics or for improving the agent itself (use agent-platform-eval-flywheel).","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fagent-platform-autorater-customization\u002FSKILL.md",[],[],{"skillNo":127,"name":128,"nameZh":17,"description":129,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":130,"categories":131,"keywords":132,"publishedAt":97},"01M78JP22K73KK96JH0JNDT5C4","iap-agent-platform-troubleshooting","Diagnoses Identity-Aware Proxy (IAP) denials of outbound requests from Gemini Enterprise Agent Platform agents that run on Agent Runtime and send traffic through Agent Gateway. Use when an agent request fails with \"Egress request is not authorized\", when Cloud Audit Logs show an IAP egressViaIAP decision with granted false, when IAP audit entries are missing while debugging agent egress, or when Access policies, IAP allow policies, policy bindings, or Agent Registry entries might block agent egress. Don't use for Gemini model IAM permission errors (such as aiplatform.endpoints.predict), Agent Platform API errors, or Agent Runtime deployment or 500 errors (use agent-platform-troubleshooting instead). Don't use for setting up, creating, or connecting an Agent Gateway, or for IAP web apps, IAP TCP forwarding, or SSH.","https:\u002F\u002Fgithub.com\u002Fgoogle\u002Fskills\u002Fblob\u002Fmain\u002Fskills\u002Fcloud\u002Fiap-agent-platform-troubleshooting\u002FSKILL.md",[],[]]