huawei-cloud-cce-kubernetes-event-analyzer

Query and analyze Kubernetes Events in Huawei Cloud CCE clusters via kubectl and LTS.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve? Kubernetes Events in Huawei Cloud CCE clusters are scattered across the live API server and historical LTS log streams, making it hard to spot repeated warnings like FailedScheduling, ImagePullBackOff, or FailedMount during an incident. This Skill unifies current and historical Event queries, aggregates them by reason, namespace, and affected resource, and produces evidence ready for diagnosis handoff. ## Core Features & Use Cases - Current Event Queries: Read Warning or Normal Events cluster-wide or per namespace through external kubeconfig access with automatic fallback to the kubectl cce plugin. - Historical LTS Queries: Retrieve time-bounded historical Events from LTS using the default-event LogConfig, with server-side keyword filtering and pagination. - Event Aggregation and Analysis: Group Events by reason, type, namespace, and involved object, surface repeated patterns, and optionally check the current status of referenced resources. - Use Case: During an incident, ask for Warning Events in a namespace, then analyze the results to find that FailedScheduling dominates, and hand the evidence off to a workload or node diagnosis skill. ## Quick Start Ask the assistant to list the Warning Kubernetes Events for your CCE cluster by providing the region and cluster ID, for example: show the recent Warning events for cluster <cluster-id> in region <region>.

Frequently Asked Questions about huawei-cloud-cce-kubernetes-event-analyzer

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

FAQPage Schema
How do I query Kubernetes Warning events in a Huawei Cloud CCE cluster?▼

Run the huawei_get_cce_events tool with region and cluster_id; it returns Warning Events by default using a server-side field selector. It first tries external kubeconfig access and falls back to the kubectl cce plugin automatically.

How to query historical Kubernetes events from Huawei Cloud LTS?▼

Use huawei_query_k8s_events_from_lts with region, cluster_id, and UTC start_time and end_time. The cluster must have the log-agent add-on with a default-event LogConfig so the tool can locate the LTS group and stream IDs.

What credentials and permissions are needed for CCE event queries?▼

You need Huawei Cloud AK/SK via parameters, hcloud profile, or environment variables, plus IAM permissions cce:cluster:get, cce:cluster:createCert, and lts:logs:search. The Kubernetes identity also needs read-only get and list permission on Events.

Why does the LTS event query return no records?▼

Common causes are a wrong UTC time window, mismatched keywords, expired log retention, or default Event collection not being enabled before the incident. Verify the default-event LogConfig exists and narrow the time window.

Can this skill analyze events without querying the cloud again?▼

Yes. Pass a JSON events array to huawei_analyze_cce_events and it performs offline aggregation of reasons, namespaces, affected objects, and repeated patterns without any additional cloud request.

Does the CCE event analyzer modify cluster or cloud resources?▼

No. The skill is strictly read-only at risk level R3 and never changes Kubernetes, CCE, or LTS resources. Findings that require action are handed off to dedicated diagnosis or remediation skills.