Manage CCE (Cloud Container Engine) cluster lifecycle, including cluster creation/deletion/hibernation/awakening, node pool management, node scheduling control, and addon management.
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.
ToolOperation TypeRisk LevelDescriptionhuawei_delete_cce_clusterDelete🔴 CriticalDeletes entire CCE cluster, irreversiblehuawei_hibernate_cce_clusterHibernate🟠 HighStops all workloads, pauses control plane billinghuawei_awake_cce_clusterAwake🟠 HighResumes cluster from hibernationhuawei_resize_cce_nodepoolScale🟡 MediumAdjusts node pool size, affects capacityhuawei_delete_cce_nodepoolDelete🟠 HighDeletes node pool, affects business capacityhuawei_delete_cce_nodeDelete🟠 HighRemoves node from cluster, affects schedulinghuawei_uninstall_cce_addonUninstall🟠 HighRemoves addon, may affect cluster functionalityhuawei_cce_node_cordonCordon🟡 MediumMarks node unschedulable, new pods won't be assignedhuawei_cce_node_uncordonUncordon🟡 MediumMarks node schedulable, new pods may be assigned immediatelyhuawei_cce_node_drainDrain🟠 HighEvicts all pods from node, affects running workloads
Step 1: Preview Operation - Call without confirm parameter
bash
# Example: Preview cluster deletion
python3 scripts/huawei-cloud.py huawei_delete_cce_cluster \
region=cn-north-4 \
cluster_id=xxx
Returns: operation preview, risk warning, confirmation example
Step 2: Confirm Execution - Call with confirm=true
bash
# Example: Confirm and execute deletion
python3 scripts/huawei-cloud.py huawei_delete_cce_cluster \
region=cn-north-4 \
cluster_id=xxx \
confirm=true
✅ This skill strictly follows these security rules:
AK/SK usage methods:
HW_ACCESS_KEY / HW_SECRET_KEY / HW_REGION_NAME (process-level, not saved)pip install huaweicloudsdkcce huaweicloudsdkcorepip install kubernetesbash
export HW_ACCESS_KEY="your-access-key-id"
export HW_SECRET_KEY="your-secret-access-key"
export HW_REGION_NAME="cn-north-4"
Ensure the IAM user has the minimum required permissions:
PermissionDescriptioncce:cluster:listList clusterscce:cluster:getGet cluster detailscce:cluster:createCreate clusterscce:cluster:deleteDelete clusterscce:cluster:updateUpdate clusters (hibernate/awake/bind EIP)cce:node:listList nodescce:node:getGet node detailscce:node:createCreate nodescce:node:deleteDelete nodescce:node:updateUpdate nodes (cordon/uncordon/drain)cce:nodepool:listList node poolscce:nodepool:createCreate node poolscce:nodepool:deleteDelete node poolscce:nodepool:updateUpdate node pools (resize)cce:addon:listList addonscce:addon:getGet addon detailscce:addon:createInstall addonscce:addon:updateUpdate addonscce:addon:deleteUninstall addons
ToolFunctionParametershuawei_list_cce_clustersList all CCE clusters in regionregion``huawei_get_cce_nodesGet detailed node informationregion, cluster_id, node_id``huawei_get_cce_kubeconfigGet cluster kubeconfigregion, cluster_id, duration
ToolFunctionRisk LevelRequires Confirmationhuawei_create_cce_clusterCreate CCE cluster🟢 LowNohuawei_delete_cce_clusterDelete CCE cluster🔴 CriticalYeshuawei_hibernate_cce_clusterHibernate cluster🟠 HighYeshuawei_awake_cce_clusterAwake cluster🟠 HighYeshuawei_bind_cce_cluster_eipBind cluster EIP🟢 LowNohuawei_unbind_cce_cluster_eipUnbind cluster EIP🟡 MediumNo
Recommended defaults:
Turbo (best performance with ENI network)eni for Turbo clusters<env>-<app>-cluster (e.g., prod-web-cluster)ToolFunctionRisk LevelRequires Confirmationhuawei_list_cce_nodepoolsList node pools🟢 LowNohuawei_create_cce_nodepoolCreate node pool🟢 LowNohuawei_delete_cce_nodepoolDelete node pool🟠 HighYeshuawei_resize_cce_nodepoolResize node pool🟡 MediumYes
Recommended defaults:
<env>-<role>-pool (e.g., prod-worker-pool)ToolFunctionRisk LevelRequires Confirmationhuawei_list_cce_nodesList cluster nodes🟢 LowNohuawei_create_cce_nodeCreate nodes directly🟢 LowNohuawei_delete_cce_nodeDelete node🟠 HighYeshuawei_cce_node_cordonMark node unschedulable🟡 MediumYeshuawei_cce_node_uncordonMark node schedulable🟡 MediumYeshuawei_cce_node_drainEvict all pods from node🟠 HighYeshuawei_cce_node_statusQuery node scheduling status🟢 LowNo
Note: Prefer node pools for managed scaling. Direct node creation is for special cases.
ToolFunctionRisk LevelRequires Confirmationhuawei_list_cce_addonsList cluster addons🟢 LowNohuawei_get_cce_addon_detailGet addon details🟢 LowNohuawei_install_cce_addonInstall addon🟢 LowNohuawei_uninstall_cce_addonUninstall addon🟠 HighYeshuawei_update_cce_addonUpdate addon🟡 MediumNo
Common addons:
coredns - DNS servicemetrics-server - Monitoring metricseverest - Storage driverToolFunctionParametershuawei_list_vpcList VPCs with CIDR inforegion``huawei_list_vpc_subnetsList subnets with AZ inforegion, vpc_id
Use these tools to find VPC/subnet IDs before cluster creation.
Region CodeRegion Namecn-north-4North China-Beijing 4cn-north-1North China-Beijing 1cn-north-2North China-Beijing 2cn-east-3East China-Shanghai 1cn-south-1South China-Guangzhoucn-south-2South China-Guangzhou Friendlycn-east-4East China IIcn-southwest-2Guiyang 1ap-southeast-1Asia-Pacific-Hong Kongap-southeast-2Asia-Pacific-Bangkokap-southeast-3Asia-Pacific-Singapore
All tools return JSON-formatted results containing:
status: operation result ( success / error)data: operation-specific response (cluster info, node list, addon details, etc.)message: human-readable description of the resultwarning: risk warning for dangerous operations (preview mode only)See verification-method.md for detailed verification steps. Quick checklist:
huawei_list_cce_clusters to confirm API connectivityconfirm=true)HW_ACCESS_KEY / HW_SECRET_KEY) for credentials — avoid hardcodingconfirm=truecontainer_network_type=eni) for high-performance workloadshuawei_list_cce_clusters and huawei_show_cce_clusterDocumentDescriptiontask-cluster-management.mdCluster lifecycle operationstask-nodepool-management.mdNode pool operationstask-node-management.mdNode scheduling operationsiam-policies.mdIAM permission policiesverification-method.mdVerification stepstroubleshooting.mdTroubleshooting guidecce-api-guide.mdCCE Python SDK API referencecce-cluster-parameters.mdCluster/nodepool creation parameters