Skip to main content
skill CX Codex

huawei-cloud-kubectl-cce-installer — Claude Code skill

The huawei-cloud-kubectl-cce-installer Claude Code skill reads Kubernetes resources from Huawei Cloud CCE clusters with kubectl cce. It checks local prerequisites and can prepare their installation when a component is missing.

MIT 141 installs ★ 59 updated 2026-11-12

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-kubectl-cce-installer -a claude-code
Open on GitHub

What huawei-cloud-kubectl-cce-installer does

The skill retrieves details for a Pod, Deployment, Service, ConfigMap, node, or another CCE resource through kubectl cce. Queries are read-only and use get, describe, or logs.

A query needs the cluster UUID and region. Namespaced resources require a namespace and, where feasible, a resource name; cluster-scoped resources require an exact name. Broad cluster-wide queries are blocked. If kubectl or kubectl-cce is missing, the skill shows an installation plan first. It needs explicit approval before running the installer with --execute.

What it helps with

  • inspect a named Pod in a CCE cluster
  • describe a Deployment in a chosen namespace
  • retrieve details for a Service or ConfigMap
  • check whether local kubectl and kubectl-cce are available
  • prepare installation of a missing component for approval

Example prompts for the agent

  • Show the YAML for Pod api-7d9c in namespace production on my CCE cluster.
  • Describe Deployment web in namespace staging and report its status.
  • Check whether kubectl and kubectl-cce are installed, then show an installation plan for anything missing.

How to install huawei-cloud-kubectl-cce-installer

1Skills CLI (Vercel)

npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-kubectl-cce-installer -a claude-code

2Manually: put the files in place

~/.claude/skills/huawei-cloud-kubectl-cce-installer/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/huawei-cloud-kubectl-cce-installer/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about huawei-cloud-kubectl-cce-installer

How do I install huawei-cloud-kubectl-cce-installer in Claude Code?

Run npx skills add huaweicloud/huaweicloud-skills --skill huawei-cloud-kubectl-cce-installer -a claude-code. The skill file is placed at ~/.claude/skills/huawei-cloud-kubectl-cce-installer/SKILL.md.

What does huawei-cloud-kubectl-cce-installer do?

It queries named Kubernetes resources in Huawei Cloud CCE through kubectl cce. It also checks local prerequisites and can install missing components after approval.

What information does a CCE resource query need?

Provide the cluster UUID, region, and resource kind. Namespaced resources need a namespace, while a cluster-scoped resource needs an exact name.

Source text

SKILL.md · MIT
---
name: huawei-cloud-kubectl-cce-installer
description: >
  Query specific Kubernetes resources in Huawei Cloud CCE clusters through kubectl cce. Trigger when users ask to get, describe, inspect, or view a Pod,
  workload, Service, ConfigMap, node, namespace, or other CCE Kubernetes resource, or when they ask to install or repair the local kubectl-cce
  prerequisites. Install kubectl and kubectl-cce only when they are missing locally.
tags: [kubectl, kubectl-cce, cce, kubernetes, resource-query]
version: 1.0.0
---

# Huawei Cloud CCE Kubectl Resource Query

Use this skill to retrieve specific CCE Kubernetes resources through `kubectl cce`. Resource access is the primary task. Local installation is only a
prerequisite recovery step when `kubectl` or the `kubectl-cce` plugin is unavailable.

## Overview And Safety

- Use `kubectl cce`; do not use a direct Kubernetes API client.
- Read-only commands only: `get`, `describe`, and `logs`.
- Never use `-A`, `--all-namespaces`, or another whole-cluster resource query.
- For namespaced resources, require `--namespace <namespace>` and, where feasible, a specific resource name.
- For cluster-scoped resources such as `node`, `namespace`, `persistentvolume`, and `storageclass`, require an exact resource name. Do not list every
  instance.
- Never run `apply`, `create`, `delete`, `edit`, `patch`, `replace`, `scale`, `rollout`, `cordon`, `drain`, or `exec`.
- Do not print credentials, tokens, kubeconfig content, or Secret data.

## Prerequisites And Required Context

| Input | Requirement |
| --- | --- |
| `cluster_id` | Required standard UUID. An exact name may be resolved with `hcloud CCE ListClusters`, but never run `kubectl cce` until it resolves to one UUID. |
| `region` | Required. Obtain it from the request or current context, then `HW_REGION_NAME`; otherwise ask the user. |
| Resource kind | Required, for example `pod`, `deployment`, `service`, `configmap`, or `node`. |
| Namespace or exact name | At least one is required. Namespaced resources require a namespace; cluster-scoped resources require an exact name. |

Credentials follow the plugin rules in [plugin-usage.md](references/plugin-usage.md). Use explicit `--cli-access-key`, `--cli-secret-key`, and optional
`--cli-security-token` only when the caller supplies them. Do not fall back to other credentials in that case.

## Workflow

1. Before any resource query, validate the target region and cluster ID. If either is missing, or the cluster ID cannot be resolved to one existing UUID in that
   region, do not run `kubectl cce`; ask the user to provide the correct region and cluster ID.
2. Confirm the resource kind, namespace, and exact resource name when required.
3. Check local prerequisites:

   ```bash
   bash scripts/install_kubectl_cce.sh --check
   ```

4. When both `kubectl` and `kubectl-cce` are available, query the requested resource.
5. When either executable is missing, read [installation.md](references/installation.md), then show the installer plan. Installation or replacement is an R1
   local change and requires explicit confirmation:

   ```bash
   bash scripts/install_kubectl_cce.sh --bin-dir <directory>
   sudo bash scripts/install_kubectl_cce.sh --execute --bin-dir <directory>
   ```

6. Verify installation with `kubectl version --client` and `kubectl plugin list`, then run only the requested read-only resource query.

## Core Commands

Use one explicit namespace per namespaced query:

```bash
kubectl cce --cluster-id <cluster-id> --region <region> \
  get pod <pod-name> --namespace <namespace> -o yaml

kubectl cce --cluster-id <cluster-id> --region <region> \
  describe deployment <deployment-name> --namespace <namespace>

kubectl cce --cluster-id <cluster-id> --region <region> \
  get service <service-name> --namespace <namespace> -o yaml
```

For a cluster-scoped resource, use an exact name:

```bash
kubectl cce --cluster-id <cluster-id> --region <region> \
  get node <node-name> -o yaml
```

For credential modes, command forms, and x509 retry behavior, read [plugin-usage.md](references/plugin-usage.md). For Windows usage and installation
fallbacks, read [installation.md](references/installation.md). If a command fails with an x509 upstream TLS validation error, retry that same command once
with `--cce-insecure-upstream-tls=true` immediately after `cce`.

## Risk Levels

| Operation | Level | Guidance |
| --- | --- | --- |
| Resource query and local prerequisite check | R3 | May run automatically. |
| Local binary installation, source build, or plugin replacement | R1 | Preview first and require explicit confirmation before `--execute`. |

## IAM Permissions

The installer does not call any Huawei Cloud OpenAPI and needs no IAM permissions or Huawei Cloud credentials. Only local directory write permission and
outbound network reachability to the public download sources are required. See [iam-policies.md](references/iam-policies.md) for the equivalent access
controls.

## Output Format

Return the cluster ID, region, resource kind, namespace when applicable, resource name, and requested status or fields. State clearly whether the resource is
not found, access is denied, prerequisites are missing, or an installation confirmation is needed.

## Parameters And Confirmation

Confirm `cluster_id`, `region`, resource kind, namespace, and exact resource name before issuing a query. If `cluster_id` is missing or cannot be resolved in
the supplied region, stop and ask the user for the correct region and cluster ID. Confirm the target installation directory before any `--execute` action.

## Verification

After installation, run `kubectl version --client` and `kubectl plugin list`; after a query, verify that the returned resource identity matches the requested cluster, namespace, and name.

## Best Practices

Use the narrowest requested resource query and avoid broad list operations even when the caller can access the whole cluster.

## Notes

When the requested resource cannot be scoped to a namespace or exact name, ask the user to narrow the target instead of expanding to a cluster-wide query.

## References

| Document | Use |
| --- | --- |
| [Plugin Usage](references/plugin-usage.md) | Credentials, command forms, and x509 retry. |
| [Installation](references/installation.md) | Local prerequisites, installer parameters, Windows usage, source fallback, confirmation, and troubleshooting. |
| [IAM Policies](references/iam-policies.md) | No IAM permissions required; equivalent local and network access controls. |
| [Acceptance Criteria](references/acceptance-criteria.md) | Resource-query and installation acceptance checks. |

© huaweicloud · MIT · huaweicloud/huaweicloud-skills

Similar skills

All skills for DevOps and infrastructure →

From the same set80

The whole set →
huawei-cloud-ecs-sqlbot-deploy huawei-cloud-ecs-sqlbot-deploy spins up a Huawei Cloud X instance and deploys SQLBot, an app for intelligent SQL queries. One run: server, security groups, COC deployment. CX Codex +1 149installs huawei-cloud-rds-smart-service huawei-cloud-rds-smart-service is a Claude Code skill for analyzing slow SQL, checking instances, troubleshooting, and backup guidance. CX Codex +1 147installs huawei-cloud-doris-sql-check huawei-cloud-doris-sql-check is a skill that checks Apache Doris SQL syntax and design rules before you run a CREATE TABLE or LOAD statement. CX Codex +1 144installs huawei-cloud-flexus-l-server-flexusagent-deployment The huawei-cloud-flexus-l-server-flexusagent-deployment Claude Code skill deploys Dify on Huawei Cloud Flexus L. It triggers on deploy flexusagent, change password, and add maas provider. CX Codex +1 143installs huawei-cloud-icp-rule-consult The huawei-cloud-icp-rule-consult Claude Code skill advises on Huawei Cloud non-commercial ICP filing rules in mainland China. It answers process, document, and quota questions before deployment. CX Codex +1 140installs huawei-cloud-modelarts-notebook-management huawei-cloud-modelarts-notebook-management manages Huawei Cloud ModelArts Notebook instances via the hcloud CLI. It handles instance lifecycle, lease renewals, custom images, and dynamic storage right from the agent chat. CX Codex +1 132installs huawei-cloud-mrs-hive-sql-check The huawei-cloud-mrs-hive-sql-check is a Claude Code skill that checks Hive SQL syntax, development rules, and resource-intensive query risks before SQL runs on Huawei Cloud MRS. CX Codex +1 132installs huawei-cloud-modelarts-training-diagnosis huawei-cloud-modelarts-training-diagnosis diagnoses failed, timed-out, or stalled Huawei Cloud ModelArts training jobs. It gathers job details through hcloud and returns findings with confidence levels. CX Codex +1 129installs

Project sponsors

Companies that keep this analytics open