huawei-cloud-kubectl-cce-installer

Query Huawei Cloud CCE Kubernetes resources through kubectl cce with read-only commands.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Accessing specific Kubernetes resources in Huawei Cloud CCE clusters requires the kubectl-cce plugin, correct cluster and region context, and strict read-only discipline. This Skill guides safe resource queries through kubectl cce and repairs missing local prerequisites (kubectl and the kubectl-cce plugin) with a preview-then-confirm installer. ## Core Features & Use Cases - Read-only resource queries: Run get, describe, and logs against a specific Pod, Deployment, Service, ConfigMap, node, or namespace using explicit cluster ID, region, project ID, and namespace scoping. - Prerequisite installation and repair: Check for kubectl and kubectl-cce locally, preview an installation plan, and install missing binaries from Huawei Cloud OBS, official Kubernetes releases, or a pinned Gitee source tag after explicit confirmation. - Credential and TLS handling: Supports environment-variable or CLI-flag credential modes and a documented retry for x509 upstream TLS validation errors. - Use Case: A user asks to inspect why a specific Pod in a CCE cluster is failing. The Skill validates the cluster ID and region, confirms kubectl-cce is installed, and runs a single namespaced kubectl cce describe pod command without touching any other resource. ## Quick Start Ask the assistant to describe a specific Pod in your Huawei Cloud CCE cluster by providing the cluster ID, region, namespace, and Pod name.

Frequently Asked Questions about huawei-cloud-kubectl-cce-installer

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

FAQPage Schema
How do I query a Pod in a Huawei Cloud CCE cluster with kubectl?▼

Use kubectl cce with the cluster ID, region, project ID, Pod name, and an explicit namespace, for example kubectl cce --cluster-id <id> --region <region> --project-id <pid> get pod <name> --namespace <ns> -o yaml. Only get, describe, and logs are permitted.

How do I install the kubectl-cce plugin on Linux or macOS?▼

Run the bundled installer with bash scripts/install_kubectl_cce.sh --bin-dir <directory> to preview the plan, then rerun with --execute after confirmation. Linux downloads the v0.2.1 Gitee Release asset; macOS builds the pinned source tag.

Can I use kubectl cce to list all resources across every namespace?▼

No. The Skill forbids -A and --all-namespaces and requires one explicit namespace for namespaced resources or an exact name for cluster-scoped resources like nodes. Broad cluster-wide queries are refused in favor of narrowing the target.

Does kubectl cce support temporary credentials or CLI credential flags?▼

Yes. Version 0.2.1 accepts --cli-access-key, --cli-secret-key, and --cli-security-token for temporary credentials, or it can read HW_ACCESS_KEY, HW_SECRET_KEY, and HW_SECURITY_TOKEN from the environment. CLI flags may be visible in process listings.

Why does kubectl cce fail with an x509 certificate error?▼

The error comes from upstream TLS validation against the cluster endpoint. Retry the identical command once with --cce-insecure-upstream-tls=true placed immediately after cce, and use this flag only when that specific TLS validation error occurs.

Can I install kubectl-cce on Windows with the installer script?▼

No. The bundled script supports Linux and macOS only. On Windows, download kubectl.exe from the official Kubernetes release site and the kubectl-cce v0.2.1 ZIP from the Gitee Release, then place both on PATH.