/kube-dc:manage-networkingfrom kube-dc
Manages Kube-DC project networking: EIP/FIP allocation, LoadBalancer service exposure, and Routed Network attachments to approved external destinations.
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.
Read when SKILL.md points to them.
{organization}-{project}.public or cloud pool.Before requesting a new public address, use check-quota to check both quota and
physical pool capacity. Kube-DC reserves the last external address: at least two
reported available addresses are needed before requesting one EIP. An authorized
operator checks the selected subnet; a tenant must not bypass the guard or alter
subnet RBAC. Deleting a FIP releases an address only when its EIP allocation is
also released. Budget any new Project router address separately.
{backing-namespace}/default.manage-networking platform documentation when direct segment attachment,
rather than whole-Project routing, is required.| Need | Use |
|---|---|
| HTTP/HTTPS hostname | Gateway route via the expose-service skill |
| Selected TCP/UDP ports | LoadBalancer on the Project gateway address (bind-on-default-gw-eip); a dedicated EIP only on request |
| Direct access to one VM interface | FIP with vmTarget |
| Managed PostgreSQL workstation access | spec.parameters.expose.type: loadbalancer (PostgreSQL only; plan entitlement plus IPv4 quota) |
| Whole Project reaches approved corporate prefixes | Routed Network attachment |
apiVersion: kube-dc.com/v1
kind: EIp
metadata:
name: "{eip-name}"
namespace: "{backing-namespace}"
spec:
externalNetworkType: public # or cloud
Bind it to a LoadBalancer Service with:
metadata:
annotations:
service.nlb.kube-dc.com/bind-on-eip: "{eip-name}"
externalNetworkType is immutable after allocation.
apiVersion: kube-dc.com/v1
kind: FIp
metadata:
name: "{fip-name}"
namespace: "{backing-namespace}"
spec:
externalNetworkType: public
vmTarget:
vmName: "{vm-name}"
interfaceName: default
When externalNetworkType is set, the FIP controller creates and owns its
required EIP. Do not create a second EIP for the same FIP. Alternatively, an
advanced manifest can reference an existing EIP with spec.eip, but
spec.eip and spec.externalNetworkType are mutually exclusive.
A qualified installation supports FIp.spec.allowedCIDRs, up to 32 IPv4 CIDRs.
The controller gate is disabled by default and rejects new restrictive intent
while unavailable. Omission, [] and /0 request open IPv4 access; invalid
entries never clear protection. Confirm the provider has qualified the actual
public/cloud pool, target topology, return traffic and lifecycle before use.
Wait for a current-generation Ready condition plus sourcePolicySpecHash and
sourcePolicyRevision, then verify allowed and denied source traffic. A generic
Ready boolean or stored schema field does not prove protection. Restricted FIPs
need an exclusive EIP and a target in the owning Project; a router interface
address cannot be the restricted DNAT address. Preserve FIP/LoadBalancer target
conflict rules. Billing quota addons do not expand a full physical routed pool.
# EIP readiness and allocated address
kubectl get eip {eip-name} -n {backing-namespace} \
-o jsonpath='{.status.ready}{"\t"}{.status.ipAddress}{"\n"}'
# FIP readiness, external address, and resolved target
kubectl get fip {fip-name} -n {backing-namespace} \
-o jsonpath='{.status.ready}{"\t"}{.status.externalIP}{"\t"}{.status.resolvedTargetIP}{"\n"}'
kubectl describe eip {eip-name} -n {backing-namespace}
kubectl describe fip {fip-name} -n {backing-namespace}
A Ready EIP has a non-empty .status.ipAddress. A Ready FIP has non-empty
.status.externalIP and .status.resolvedTargetIP.
public: internet-routable subject to firewall and provider policy.cloud: not internet-routable; reachable only from configured cloud or
platform networks.A Project's egressNetworkType chooses its default gateway address pool. It
does not by itself prevent a cloud Project from requesting a public EIP when
the provider enables that pool and quota is available.
Prefer the filtered console at Organization → Networks → Routed Networks to discover allocations and attach/detach Projects. BGP peers, ASNs, authentication, imports, and exports are platform-owned and must never be inferred or authored.
When the caller already knows the allocated handle, create the namespaced
request from routed-network-attachment-template.yaml:
apiVersion: kube-dc.com/v1
kind: ProjectRouteAttachment
metadata:
name: "{attachment-name}"
namespace: "{backing-namespace}"
spec:
allocationRef: "{routed-network-allocation}"
direction: routed-egress
Organization administrators receive only create and delete; they do not
receive cluster-wide discovery or update/patch. Admission verifies that the
allocation and Project belong to the caller's Organization and rechecks every
prefix collision.
View tenant-safe health at Project → Network → Routed Networks. Confirm:
Internet gateway: unchanged;BGP is managed by your Organization;These routes are available to this Project only; andReady, or Degraded with at least one ready replica.To detach a known request:
kubectl delete projectrouteattachment {attachment-name} \
-n {backing-namespace}
Deletion drains managed gateways and retains the destination drop until the transport is gone. Do not force-remove the finalizer.
0.0.0.0/0.ProjectRoutingGateway, FRR ConfigMap/Secret, gateway Deployment,
routing-link Subnet/NAD, or VPC route. They are controller-owned security
assets and admission should deny the mutation.routed-egress in v1: Project-initiated flows and replies
only. They do not peer Projects or make a Project transit.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub kube-dc/kube-dc-public --plugin kube-dc18 skills in this plugin
/check-quotaCheck Kube-DC Organization and Project quota before creating workloads, VMs, databases, Managed Clusters, public IPs, or storage./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.Other plugins' skills for the same job