huawei-cloud-cce-cluster-management

Manages Huawei Cloud CCE cluster lifecycle, node pools, nodes, and addons via hcloud CLI and kubectl cce.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires huaweicloudsdkcce, huaweicloudsdkcore, huaweicloudsdkiam, passlib, pyyaml, and includes scripts (resource) and references (resource) components.

What problem does it solve? Managing Huawei Cloud CCE clusters requires juggling multiple APIs, CLI tools, and credential modes, and dangerous operations like cluster deletion or node draining risk irreversible damage if executed without safeguards. This Skill provides a unified, confirmation-gated interface for the full CCE cluster lifecycle. ## Core Features & Use Cases - Cluster Lifecycle Management: Create, delete, hibernate, awake, and list CCE clusters, bind/unbind EIPs for public access, and retrieve kubeconfig. - Node & Node Pool Operations: Create, delete, resize node pools and cordon, uncordon, drain, or query nodes through the kubectl cce plugin without needing a cluster EIP or manual kubeconfig. - Addon Management: Install, update, uninstall, and inspect cluster addons such as coredns, metrics-server, and everest. - Use Case: A platform engineer needs to perform node maintenance. They preview a drain operation, review the affected pods list, confirm with confirm=true, and the node is cordoned with pods evicted while respecting PodDisruptionBudgets. ## Quick Start Ask the assistant to list all CCE clusters in region cn-north-4 using your configured Huawei Cloud credentials.

Frequently Asked Questions about huawei-cloud-cce-cluster-management

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

FAQPage Schema
How do I create a Huawei Cloud CCE cluster from the command line?▼

Call huawei_create_cce_cluster with region, cluster_name, flavor_id, vpc_id, and subnet_id. Omit cluster_version to let the API select the latest Kubernetes version; container_network_type defaults to eni for Turbo clusters. This operation uses the Python SDK due to a known hcloud metadata parsing defect.

How do I drain a CCE node for maintenance?▼

Use huawei_cce_node_drain with region, cluster_id, node_name, and confirm=true. It follows standard kubectl drain semantics: cordons the node, then evicts pods while respecting PodDisruptionBudgets and skipping DaemonSet pods. Call it without confirm first to preview affected pods.

Does the kubectl cce plugin require a cluster EIP or kubeconfig?▼

No. The kubectl cce plugin connects to the CCE API Gateway using AK/SK credentials, so node operations like cordon, uncordon, drain, and status work without a cluster EIP or manually downloaded kubeconfig. Only cluster-id, region, and project-id are needed.

What credentials does Huawei Cloud CCE management support?▼

It supports permanent AK/SK via HW_ACCESS_KEY and HW_SECRET_KEY, plus temporary STS credentials by adding HW_SECURITY_TOKEN. Credentials can come from environment variables or sandbox-injected CLI flags, and are never persisted to disk or included in logs.

Why does deleting a CCE cluster ask for confirmation?▼

All dangerous operations including cluster deletion, hibernation, node drain, and addon uninstall require a two-step confirmation. Calling without confirm=true returns a preview with risk warnings; the operation only executes when confirm=true is passed explicitly.

Which node flavors work with CCE Turbo clusters?▼

Turbo clusters using ENI networking require ENI-compatible flavors such as the c7 or s7 series, for example c7.large.2. Older s6 and c6 series flavors do not support ENI and will fail with a subeni quota error during node pool creation.