huawei-cloud-cce-autoscaling-diagnoser

Diagnose Huawei Cloud CCE HPA and Cluster Autoscaler scaling failures with evidence-based Markdown reports.

1|Updated May 27, 2026
One-click install
npx skills add https://github.com/pancake0001/huawei-cloudnative-skills --skill huawei-cloud-cce-autoscaling-diagnoser-pancake0001
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: huawei-cloud-cce-autoscaling-diagnoser
Source: https://github.com/pancake0001/huawei-cloudnative-skills/tree/main/releases/container/cce-unscheduled/huawei-cloud-cce-autoscaling-diagnoser
Command: npx skills add https://github.com/pancake0001/huawei-cloudnative-skills --skill huawei-cloud-cce-autoscaling-diagnoser-pancake0001

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires huaweicloudsdkcore, huaweicloudsdkcce, huaweicloudsdkaom, kubernetes, matplotlib, requests, pyyaml, and includes scripts (resource) and references (resource) components.

What problem does it solve? When autoscaling stops working in a Huawei Cloud CCE cluster, engineers must manually correlate HPA status, Cluster Autoscaler logs, Pending Pod events, node pool limits, subnet IPs, quotas, and IAM permissions across many APIs. This Skill automates that investigation and produces a complete diagnosis report with root cause, confidence, and recommendations. ## Core Features & Use Cases - One-shot autoscaling diagnosis: The huawei_autoscaling_diagnose action performs intent recognition, HPA/CA capability discovery, Path A/B/C routing, and evidence collection, returning a ready-to-use Markdown report. - HPA-to-CA cascade analysis: Links workload-level scaling failures (missing resource requests, maxReplicas reached, metric pipeline broken) with node-level failures (max_nodes reached, subnet IP exhaustion, quota exceeded, IAM denied). - CA Pod log signal matching: Automatically discovers Cluster Autoscaler Pods in kube-system and matches logs against 16 diagnostic signal patterns such as NoExpansionOptions and QuotaExceeded. - Use Case: A user asks why their Deployment is not scaling despite high CPU. The Skill checks the HPA object, finds containers missing CPU resource requests, and reports this as the critical root cause with a remediation suggestion. ## Quick Start Ask the assistant to diagnose why HPA is not scaling your workload in your CCE cluster by providing the region and cluster ID.

Frequently Asked Questions about huawei-cloud-cce-autoscaling-diagnoser

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I diagnose why HPA is not scaling my CCE workload?▼

Run the huawei_autoscaling_diagnose action with your region and cluster_id, optionally adding namespace and workload_name. It checks HPA status, events, metrics, and resource requests, then returns a Markdown report identifying the root cause such as missing CPU requests or maxReplicas reached.

Why is Cluster Autoscaler not adding nodes when Pods are Pending?▼

Common causes include node pools reaching max_nodes, VPC subnet IP exhaustion, ECS quota limits, or IAM permission failures. This Skill retrieves CA Pod logs from kube-system and matches them against 16 signal patterns like NoExpansionOptions and QuotaExceeded to pinpoint the cause.

What credentials and permissions does CCE autoscaling diagnosis require?▼

It requires Huawei Cloud AK/SK set via HUAWEI_AK and HUAWEI_SK environment variables, plus IAM read permissions for CCE clusters, addons, nodepools, HPA, Pods, Events, and AOM metrics. Credentials are never written to disk or exposed in output.

Can this tool fix autoscaling problems automatically?▼

No, it is strictly read-only diagnosis. It never modifies HPA, scales workloads, changes nodepool min/max, or installs addons. For remediation it hands off to the auto-remediation-runner skill with preview and explicit user confirmation.

What Python dependencies are needed to run the diagnosis scripts?▼

The dispatcher requires Python 3.6 or later with huaweicloudsdkcore, huaweicloudsdkcce, huaweicloudsdkaom, and the kubernetes client package installed. All actions run through the scripts/huawei-cloud.py dispatcher, not direct CLI or API calls.