huaweicloud/huaweicloud-skills/huawei-cloud-cce-cluster-management
Claude Code and agent skill by huaweicloud/huaweicloud-skills
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
Huawei Cloud CCE (Cloud Container Engine) cluster lifecycle management skill using hcloud CLI (KooCLI) for Huawei Cloud API calls and kubectl cce plugin for Kubernetes node operations (cordon/uncordon/drain/status). Use this skill when the user wants to: (1) create, delete, hibernate, or awake CCE clusters, (2) list clusters and query cluster/node/nodepool/addon information, (3) manage node pools (create, delete, resize), (4) manage nodes (create, delete, cordon, uncordon, drain), (5) manage addons (install, uninstall, update), (6) bind/unbind cluster EIP for public access, (7) get cluster kubeconfig. Trigger: user mentions "CCE cluster", "create cluster", "delete cluster", "node pool", "node management", "hibernate cluster", "awake cluster", "addon", "kubeconfig", "EIP binding", "CCE 集群", "创建集群", "删除集群", "节点池", "节点管理", "休眠集群", "唤醒集群", "插件", "kubeconfig", "EIP 绑定"
Install
npx vskill@latest install huaweicloud/huaweicloud-skills/huawei-cloud-cce-cluster-managementSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as huaweicloud/huaweicloud-skills/huawei-cloud-cce-cluster-management.
Huawei Cloud CCE Cluster Management
Overview
Manage CCE (Cloud Container Engine) cluster lifecycle, including cluster creation/deletion/hibernation/awakening, node pool management, node scheduling control, and addon management.
The skill executes Huawei Cloud API calls through hcloud (KooCLI) and Kubernetes node operations (cordon/uncordon/drain/status) through kubectl cce (the kubectl-cce plugin). The plugin connects to the CCE API Gateway using AK/SK credentials — no cluster EIP or manual kubeconfig required. Two operations (create cluster, create node pool) fall back to the Python SDK because of a known hcloud metadata parsing defect — see cce-api-guide.md.
Dependency: This skill requires kubectl and the kubectl-cce plugin. Install them via the huawei-cloud-kubectl-cce-installer skill.
⛔ Security Constraints
Dangerous Operation Confirmation Mechanism
This skill strictly enforces a two-step confirmation mechanism for all dangerous operations to prevent accidental service disruption or data loss.
All dangerous operations require confirm=true parameter to execute. Otherwise, they return a preview and confirmation prompt.
Operations Requiring Confirmation
| Tool | Operation Type | Risk Level | Description | |
|---|---|---|---|---|
huawei_delete_cce_cluster | Delete | 🔴 Critical | Deletes entire CCE cluster, irreversible | |
huawei_hibernate_cce_cluster | Hibernate | 🟠 High | Stops all workloads, pauses control plane billing | |
huawei_awake_cce_cluster | Awake | 🟠 High | Resumes cluster from hibernation | |
huawei_resize_cce_nodepool | Scale | 🟡 Medium | Adjusts node pool size, affects capacity | |
huawei_delete_cce_nodepool | Delete | 🟠 High | Deletes node pool, affects business capacity | |
huawei_delete_cce_node | Delete | 🟠 High | Removes node from cluster, affects scheduling | |
huawei_uninstall_cce_addon | Uninstall | 🟠 High | Removes addon, may affect cluster functionality | |
huawei_cce_node_cordon | Cordon | 🟡 Medium | Marks node unschedulable, new pods won't be assigned | |
huawei_cce_node_uncordon | Uncordon | 🟡 Medium | Marks node schedulable, new pods may be assigned immediately | |
huawei_cce_node_drain | Drain | 🟠 High | Cordons + evicts all pods from node, affects running workloads |
Workflow
Step 1: Preview Operation - Call without confirm parameter
Returns: operation preview, risk warning, confirmation example
Step 2: Confirm Execution - Call with confirm=true
Credential Security
✅ This skill strictly follows these security rules:
- No persistent credential storage - Never saves AK/SK, tokens, or certificates to disk
- No long-term memory cache - AK/SK exists only during API call, released afterward
- Only project ID memory cache - Non-sensitive project ID cached in process memory
- No credential leakage - Never includes AK/SK in logs, responses, or errors
- Temporary file cleanup - Temporary kubeconfig files are deleted immediately after use
- Config-first credential passing - If hcloud CLI config has credentials, AK/SK are not passed as CLI arguments (avoids
ps auxexposure). Environment variables are only set for subprocesses if not already present in the parent environment.
Credentials are resolved from parameters or environment variables (process-level, never written to disk):
- Permanent credentials:
HW_ACCESS_KEY+HW_SECRET_KEY - Temporary credentials (recommended for CI/CD / IAM temporary access keys):
HW_ACCESS_KEY+HW_SECRET_KEY+HW_SECURITY_TOKEN HW_PROJECT_IDis optional — auto-fetched viahcloud IAM KeystoneListProjectswhen not provided (only for hcloud API calls; kubectl-cce node operations do not need it)- Per-call
ak/skparameters override the environment variables for that single call
Security hardening tip: Set HW_ACCESS_KEY / HW_SECRET_KEY in the parent process environment (e.g., ~/.bashrc or systemd environment file) so they are inherited by subprocesses without explicit passing. The skill detects existing env vars and skips passing AK/SK as CLI arguments to hcloud, preventing credential exposure in process listings (ps aux). kubectl-cce reads these env vars directly from the process environment.
Node Login Password Security
When creating nodes or node pools, the login credential is resolved with the following three-level priority:
- `ssh_key` parameter — SSH key pair name (preferred when available). Mutually exclusive with password.
- `password` parameter — raw node login password passed per call (8–26 chars, ≥3 of: uppercase / lowercase / digits / special).
- `CCE_NODE_PASSWORD` environment variable — used when neither
ssh_keynorpasswordis provided. - Auto-generated random password — when none of the above is supplied, the skill generates a strong random password automatically.
⚠️ The auto-generated password is NEVER returned in the tool response (not indata, not inmessage, not in logs). To access the node afterwards, the user must reset the node password via the CCE console or the ECS API. The success message only contains a hint instructing the user to reset the password.
The raw password is never sent to the CCE API directly; the skill applies SHA-512 salted encryption + base64 encoding internally (see cce-cluster-parameters.md).
Prerequisites
CLI Tools
- `hcloud` (Huawei Cloud KooCLI 7.2+) — drives all Huawei Cloud API calls. Install:
``bash curl -sSL https://cn-north-4-hdn-koocli.obs.cn-north-4.myhuaweicloud.com/cli/latest/hcloud_install.sh -o ./hcloud_install.sh && bash ./hcloud_install.sh hcloud version # verify install ``
`kubectl` + `kubectl-cce` plugin — required for node scheduling operations (cordon/uncordon/drain/status). Install via the huawei-cloud-kubectl-cce-installer skill:
```bash # Check if already installed bash ../huawei-cloud-kubectl-cce-installer/scripts/install_kubectl_cce.sh --check
# Install (after confirming the plan) sudo bash ../huawei-cloud-kubectl-cce-installer/scripts/install_kubectl_cce.sh --execute --bin-dir /usr/local/bin ```
The kubectl cce plugin connects through the CCE API Gateway using AK/SK credentials — no cluster EIP or manual kubeconfig needed.
Python Environment
- Python 3.8+
- Install SDK packages (retained for create-cluster / create-nodepool fallback) and helpers:
``bash pip install huaweicloudsdkcce huaweicloudsdkcore huaweicloudsdkiam passlib pyyaml ``
passlib provides SHA-512 salting. huaweicloudsdkcce + huaweicloudsdkcore + huaweicloudsdkiam are used by the two SDK fallback functions (create cluster, create node pool) and IAM project-ID resolution. pyyaml parses hcloud JSON output.
Environment Variables
The skill detects existing environment variables before passing credentials to subprocesses:
- hcloud CLI calls: if
HW_ACCESS_KEY/HW_SECRET_KEYare already inos.environ, the skill skips passing--cli-access-key/--cli-secret-keyas CLI arguments, preventing exposure inps aux. - kubectl-cce calls: the plugin reads
HW_ACCESS_KEY/HW_SECRET_KEYfrom the process environment directly. If these variables are already set, the subprocess inherits them naturally — the skill does not set them again.
🔒 Security Tip: SetHW_ACCESS_KEY/HW_SECRET_KEYat the system or session level (e.g., in~/.bashrcor a systemd environment file) so the skill never needs to pass them as explicit CLI arguments. This eliminates the risk of credential exposure in process listings (ps aux) and shell history.
IAM Permission Policies
Ensure the IAM user has the minimum required permissions:
| Permission | Description | |
|---|---|---|
cce:cluster:list | List clusters | |
cce:cluster:get | Get cluster details | |
cce:cluster:create | Create clusters | |
cce:cluster:delete | Delete clusters | |
cce:cluster:update | Update clusters (hibernate/awake/bind EIP) | |
cce:node:list | List nodes | |
cce:node:get | Get node details | |
cce:node:create | Create nodes | |
cce:node:delete | Delete nodes | |
cce:node:update | Update nodes (cordon/uncordon/drain) | |
cce:nodepool:list | List node pools | |
cce:nodepool:create | Create node pools | |
cce:nodepool:delete | Delete node pools | |
cce:nodepool:update | Update node pools (resize) | |
cce:addon:list | List addons | |
cce:addon:get | Get addon details | |
cce:addon:create | Install addons | |
cce:addon:update | Update addons | |
cce:addon:delete | Uninstall addons |
参数确认
Before executing any command, confirm the following parameters with the user:
认证参数
| Parameter | Env Variable | Required | Description | |
|---|---|---|---|---|
| Access Key ID | HW_ACCESS_KEY | ✅ | Huawei Cloud AK, permanent or temporary credential | |
| Secret Access Key | HW_SECRET_KEY | ✅ | Huawei Cloud SK, permanent or temporary credential | |
| Region | HW_REGION_NAME | ✅ | Region, e.g. cn-north-4 | |
| Security Token | HW_SECURITY_TOKEN | ❌ | Temporary credential security token, STS only | |
| Node Password | CCE_NODE_PASSWORD | ❌ | Node login password, auto-generated if not set |
集群参数
| Parameter | Required | Default | Description | |
|---|---|---|---|---|
cluster_name | ✅ | — | Cluster name, recommended <env>-<app>-cluster | |
cluster_type | ❌ | Turbo | Cluster type (Turbo/VirtualMachine) | |
container_network_type | ❌ | eni | Container network type, eni for Turbo clusters | |
cluster_version | ❌ | API latest | Kubernetes version, auto-select latest if omitted | |
vpc_id | ✅ | — | VPC ID | |
subnet_id | ✅ | — | Subnet ID | |
flavor_id | ✅ | — | Node flavor, e.g. c7.large.2 | |
confirm | ❌ | false | Danger confirmation flag, required true for delete/hibernate/resize |
节点池参数
| Parameter | Required | Default | Description | |
|---|---|---|---|---|
nodepool_name | ✅ | — | Node pool name, recommended <env>-<role>-pool | |
node_count | ❌ | 2 | Initial node count, ≥2 recommended for HA | |
min_node_count | ❌ | — | Auto-scaling minimum | |
max_node_count | ❌ | — | Auto-scaling maximum | |
ssh_key | ❌ | — | SSH key pair name, takes priority over password | |
root_volume_size | ❌ | 40 | Root disk size (GB) | |
data_volume_size | ❌ | 100 | Data disk size (GB) |
其他参数
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/container/cce/huawei-cloud-cce-cluster-management/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/huaweicloud/huaweicloud-skills/huawei-cloud-cce-cluster-management)