/kube-dc:check-quotafrom kube-dc
Checks Kube-DC Organization and Project quota before creating workloads, VMs, databases, Managed Clusters, public IPs, or storage. Reads quota usage from kubectl and inspects ResourceQuota enforcement state.
Ships in kube-dc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Quota is governed at the Organization level and can be narrowed for an individual Project. Do not embed plan names, prices, or limits in automation; read the active values from status or the billing console.
kubectl config current-context
kubectl config view --minify -o jsonpath='{.contexts[0].context.namespace}{"\n"}'
A Project context should name the selected Project and set its backing namespace.
Use kube-dc use {domain}/{organization}/{project} if they do not agree.
kubectl -n {organization} get organization {organization} -o jsonpath='{.status.quotaUsage}' | jq .
The status can contain:
cpu, memory, storage, and pods with used and hard values;publicIPv4, counted across the Organization's Projects;objectStorage;accelerators when GPU profiles are configured;lastUpdated, the observation timestamp.CPU is normalized to cores and memory/storage to GiB. For CPU and memory, the reported pair follows whichever requests or limits axis is closest to its cap.
An empty objectStorage.used value means usage is not available from the
in-cluster controller. It is not zero; consult the provider's object-storage
usage surface before provisioning a large bucket.
kubectl -n {organization} get project {project} -o jsonpath='{.status.quotaUsage}' | jq .
perProjectQuotaSet: true means an explicit project-quota ResourceQuota is
active. Otherwise, the Project status reflects the inherited Organization
limit. Organization usage is still the sum across Projects, so headroom shown
on one Project is not reserved for it.
Compare all Projects when deciding where capacity is being consumed:
kubectl -n {organization} get projects -o custom-columns='PROJECT:.metadata.name,CPU:.status.quotaUsage.cpu.used,MEMORY:.status.quotaUsage.memory.used,STORAGE:.status.quotaUsage.storage.used,PODS:.status.quotaUsage.pods.used,UPDATED:.status.quotaUsage.lastUpdated'
Status is a normalized product view. When a create is being rejected, inspect the ResourceQuota objects the API server is enforcing in the Project's backing namespace:
kubectl -n {project-backing-namespace} get resourcequota
kubectl -n {project-backing-namespace} describe resourcequota
The expected sources are:
| ResourceQuota | Meaning |
|---|---|
hrq.hnc.x-k8s.io | Organization quota propagated into the Project |
project-quota | Optional tighter Project cap |
This view covers native Kubernetes resources such as CPU, memory, storage, pods, and configured accelerator resource names. Public IPv4 and object-storage accounting use separate platform/provider paths and do not appear as ordinary ResourceQuota dimensions.
Add the workload's requested capacity, not only its apparent idle usage:
Leave operational headroom for rollouts, node maintenance, database failover, and autoscaling. A workload at exactly the hard limit can fail when Kubernetes temporarily creates a replacement Pod.
Where the installation serves ServiceOffering objects
(kubectl api-resources --api-group=services.kube-dc.com | grep -i serviceofferings),
each usable offering (status.projectionFormat 1, Ready=True) shows a
plan's own defaults and limits for new services. It does not show the
Organization's or Project's remaining quota, and it reserves nothing. Combine
the two before creating a service:
kubectl -n {project-backing-namespace} get serviceoffering {plan} \
-o jsonpath='{.status.projectionFormat} {.status.conditions[?(@.type=="Ready")].status}{"\n"}{.status.defaults}{"\n"}{.status.limits.servicesPerProject}{"\n"}'
kubectl -n {project-backing-namespace} get managedservice \
-o custom-columns='NAME:.metadata.name,PLAN:.spec.planRef.name'
status.defaults.perInstance) multiplied by the member count (instances,
shards x replicasPerShard, or dataReplicas). No default storage on a
usable offering means the plan has no persistent storage. On an offering
that is not usable, get the sizes from the provider. Add headroom for
backup Jobs, poolers and operations.limits.servicesPerProject. Over it, creation is refused with
PlanQuotaExceeded. On a usable offering, absent limits means no
per-Project limit beyond quota; quota (steps 2 to 4) is still checked. On an
offering that is not usable, the per-Project count is unknown.Offerings work the same for pay-as-you-go, fixed-plan and plan-less Organizations and carry no prices. In every mode, check the quota that is actually enforced (steps 2 to 4). Without offerings, read the plan's sizing from the console or ask the provider.
Public IPv4 quota does not guarantee physical address availability. An authorized
operator must inspect the selected external subnet before allocating an EIP.
Replace EXTERNAL_SUBNET with the installation's selected subnet name:
kubectl get subnets.kubeovn.io EXTERNAL_SUBNET -o jsonpath='{.status.v4availableIPs}{" available, "}{.status.v4usingIPs}{" used\n"}'
Kube-DC preserves one external address as a reserve. A known available count of zero or one blocks a new allocation; require at least two reported available addresses before requesting one EIP. A new Project can also allocate a public router address, so account for that separately. Status is asynchronous and does not reserve capacity for your request.
If your tenant role cannot read subnets, ask the provider to verify capacity. Do not change RBAC or bypass the allocation guard. A quota addon does not expand the routed physical pool. Deleting a FIP frees its address only when its associated EIP allocation is also released.
A typical API error names the ResourceQuota and exhausted resource. Capture it, then inspect both scopes:
kubectl -n {organization} get organization {organization} -o yaml
kubectl -n {organization} get project {project} -o yaml
kubectl -n {project-backing-namespace} describe resourcequota
Resolve the exhausted dimension by deleting unused resources, reducing the request, moving work only when governance permits, or requesting a quota or plan change from the Organization administrator. Do not retry unchanged manifests in a loop.
lastUpdated as an observation timestamp and use ResourceQuota for a
current admission failure.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
18 skills in this plugin
/create-databaseCreate a managed database (PostgreSQL, MySQL, MariaDB, ClickHouse) or Valkey cache in a Kube-DC Project as a ManagedService, deliver its credential to workloads with a ServiceBinding Secret, and prepare backup and restore workflows./create-projectCreate a Kube-DC Project inside an existing Organization. Covers network selection, quota preflight, the Project manifest, and readiness verification./create-vmCreate a KubeVirt virtual machine in a Kube-DC Project using the live OS catalog, Project networking, supported storage, and the generated SSH keypair.npx claudepluginhub kube-dc/kube-dc-public --plugin kube-dcOther plugins' skills for the same job