/kube-dc:install-kube-dcfrom kube-dc
Guides operators through installing a new Kube-DC platform on prepared servers: gathers site facts, checks hosts/disks/DNS, proposes network/Ceph/domain/cert design, then runs bootstrap install, init and accept.
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.
Use it to install Kube-DC on new servers: from prepared Linux hosts to a
cluster that kube-dc bootstrap accept reports usable.
Do not use it for:
create-project, create-vm, create-database, ...).The authoritative reference is the installation guide. This skill is the decision path through it. Decision tables: @decisions.md. Host checks: @host-checks.md. Input file template: @install-input.env.example.
gh or
glab auth; TLS keys, CA bundles and DNS-01 credentials are file paths or
environment variables. Never print a key, token, password or unseal share.latest.bootstrap install and bootstrap init with
--dry-run and review the plan before the real run.init writes clusters/<name>/ once;
running it again resumes, it does not regenerate. Get the inputs right
before the first push (step 7).init
refuses Ceph on an older kernel.git, curl, jq, ssh, Bash 4.4 or
later first in PATH (on macOS, Homebrew's: brew install bash), Python 3 with
PyYAML (python3 -c 'import yaml' must succeed) and kubectl. From the first init run on, the CLI keeps its pinned kubectl,
flux, helm, sops and age in ~/.kube-dc/tools/bin; put that first in PATH
for the commands below (export PATH="$HOME/.kube-dc/tools/bin:$PATH").gh auth login or glab auth login.Collect these before proposing anything. Ask for what is unknown.
| Fact | Why it matters |
|---|---|
| Server list: hostname, role, management/SSH address, internal (node) address | Control-plane count (1 or 3), workers, KUBE_OVN_MASTER_NODES |
| CPU, memory, disks per server | Sizing, Ceph OSD candidates, local-path for platform state |
| Storage arrays, if any: media (flash or disk), free capacity, FC or iSCSI paths to each server, a CSI driver and what it supports | Ceph on array volumes, fast and capacity sets, the class for VM disks |
| NICs, bonds, VLANs per server; MTU | Kube-OVN external network and per-node NIC mapping |
| External (cloud) network: VLAN, CIDR, gateway, addresses reserved by the site | Tenant external IPs, SNAT, exclusions |
| Optional public network: VLAN, CIDR, gateway | cloud+public-vlan preset |
| How users reach the platform: a spare VIP on a shared L2 segment, BGP peering, node addresses, or 1:1 NAT | Front door (see @decisions.md) |
| Domain, who runs its DNS, public or private | DNS records and the TLS mode |
| Certificate: public ACME, DNS-01 provider, or a supplied wildcard and CA | TLS mode |
| Internal ranges already used on the site network | Pod, Service, join and infra ranges must not overlap them |
| Fleet repository: new, existing empty repository, or existing fleet | --fleet-mode |
| Wanted features: VMs, managed services, GPUs | Storage budget, VM storage, accelerators, and which acceptance checks apply |
set -e
v=vX.Y.Z # the released CLI version for this installation
curl -fsSLO "https://github.com/kube-dc/kube-dc-public/releases/download/$v/kube-dc_linux_amd64"
curl -fsSLO "https://github.com/kube-dc/kube-dc-public/releases/download/$v/checksums.txt"
grep ' kube-dc_linux_amd64$' checksums.txt | sha256sum -c - # stop here if this fails
mkdir -p "$HOME/.local/bin" && export PATH="$HOME/.local/bin:$PATH"
install -m 0755 kube-dc_linux_amd64 "$HOME/.local/bin/kube-dc"
kube-dc version
The release notes name the platform bundle (starter) the CLI installs.
Authenticate the Git host (gh auth status, or
glab auth status --hostname HOST).
Run the read-only checks in @host-checks.md on every server and record the results. Start with SSH reach and sudo:
kube-dc bootstrap connect user@server-1
Stop and report when a host fails: kernel too old for Ceph, swap on, no
/dev/kvm on a host that should run VMs, a Ceph candidate disk that is not
empty or not healthy, the installation domain in the resolver search list, or
no outbound access.
Work through @decisions.md with the operator, in this order, and write the agreed values into a copy of @install-input.env.example:
chmod 600 the input file and keep secret values out of it.
Point *.DOMAIN and kube-api.DOMAIN at the front-door address (the VIP, or
the ingress node address with layer none). Check from the workstation and
from a server:
getent hosts console.DOMAIN kube-api.DOMAIN
ssh user@server-1 'getent hosts login.DOMAIN s3.DOMAIN'
Expected: every name returns the front-door address.
First server, then each further node, one at a time. Preview each with
--dry-run:
kube-dc bootstrap install server-1 --ssh-host user@server-1 \
--domain DOMAIN --node-ip NODE_IP_1 --preset PRESET \
[--trusted-ca-bundle CA.pem] [--set POD_CIDR=... --set SVC_CIDR=... --set CLUSTER_DNS=...]
kube-dc bootstrap install server-2 --ssh-host user@server-2 --node-ip NODE_IP_2 \
--join-server user@server-1 --cp-host NODE_IP_1 --role server \
--domain DOMAIN --preset PRESET [same --trusted-ca-bundle and --set values]
# workers: --role worker
Use the same preset, CA bundle and range overrides on every node and in the input file. Then fetch the admin kubeconfig from the first server (before the VIP exists, address it directly):
export KUBECONFIG="$HOME/.kube/NAME.yaml"
kube-dc bootstrap fetch-kubeconfig NAME --ssh-host user@server-1 --domain DOMAIN \
--server https://NODE_IP_1:6443 --kubeconfig "$KUBECONFIG" --set-current
kubectl get nodes -o wide # every node listed; NotReady until the CNI is installed
With rook-ceph-pvc on static volumes (@decisions.md), apply the reviewed
StorageClass and PersistentVolume manifests now and check them:
kubectl apply -f OSD_VOLUMES.yaml
kubectl get pv # one Available volume for each OSD
kube-dc bootstrap init --config NAME.env --repo FLEET_DIR --dry-run --no-tty
kube-dc bootstrap init --config NAME.env --repo FLEET_DIR --no-push --no-tty --yes
The first prints the plan. The second writes and commits the overlay in the local fleet checkout without pushing or touching the cluster, and re-checks DNS, kernels and every selected OSD disk. Review with the operator:
0 destructive gates;Project front door
line with its internal VIP and anchors (reserve those addresses);[scaffold] decision line and every WARNING.If an input must change, nothing has been pushed yet: fix the input file,
move FLEET_DIR aside (keep it until the installation is done), clone the
repository again (or start from a new empty directory for new-repo) and run
the --no-push step there. For new-repo and existing-repo, init imports
the starter and creates a new age key there. For existing-fleet, copy the
fleet's enrolled age.key into the new clone first: that mode never creates
one. Do not rewind the old checkout: its starter import, SOPS enrollment and
age.key belong together. After the push, changes are
reviewed Git commits.
A run that stopped before it wrote clusters/<name> (in the starter import or
the age-key step) needs no new clone: fix the cause and the input, and run the
same command in the same checkout. With CLI v0.9.19 or later, init replaces a
starter the input no longer selects (or whose tag moved) and completes an
interrupted key enrollment there. Once clusters/<name> exists, it keeps the
starter the installation was made from.
Instead of --config, kube-dc bootstrap init with no flags opens the
interactive panel with the same inputs (sections Basics, Fleet, Network,
Certificates, Storage, Accelerators, Gates); press S to save them as an
input file.
kube-dc bootstrap init --config NAME.env --repo FLEET_DIR --no-tty --yes
Run it under tmux or screen. It pushes the overlay, bootstraps Flux,
follows reconciliation and finalizes: OpenBao initialization and unseal,
Keycloak clients, the API servers' OIDC cutover over SSH, and managed
services. If it stops (timeout, dropped session, "action required for
reconcile"), wait until flux get kustomizations -A is Ready and run the same
command again: it resumes, it does not re-create.
"installation action required for keycloak-oidc" (or openbao-init) with
every Kustomization Ready means that finalize step was deferred. The Keycloak
step calls https://login.DOMAIN from the workstation: make the front door
answer there first (the DNS records, and kube-dc bootstrap anchors apply
where the layout uses host anchors), then run the same command again. Before
CLI v0.9.26, both steps are also deferred when the shell does not export
KUBECONFIG.
Tell the operator to move into their custody: the age key (age.key in the
fleet checkout), the RKE2 token (/var/lib/rancher/rke2/server/token on the
first server) and the admin kubeconfig. OpenBao's unseal shares are committed
encrypted with the age key, so the age key is the one file that must not be
lost: ask for copies outside the workstation. With GitLab, also record when
the Git token expires.
Once the platform is up, fetch the kubeconfig again without --server, so it
uses kube-api.DOMAIN.
kube-dc bootstrap accept NAME --repo FLEET_DIR --domain DOMAIN; echo "exit=$?"
flux get kustomizations -A
kubectl -n rook-ceph get cephcluster # with a Ceph object storage mode
Expected: state: usable with every required check PASS and exit=0;
every Kustomization Ready; with Ceph, HEALTH_OK and the planned OSD count.
Then prove, in a test Organization and Project (console at
https://console.DOMAIN), the features this installation includes: a Pod
resolves names and reaches the internet; with S3 exposed, it gets HTTP 200
from https://s3.DOMAIN/; if VMs are in scope, a VM starts and is reachable over
SSH; if managed services are on, a managed PostgreSQL becomes Ready, accepts a
connection and completes a backup. Record what is out of scope.
After acceptance, one account can open the admin console: the Keycloak admin
user, which init gives the superadmin role. Ask the operator who runs the
platform and what each person needs. There are two separate grants; propose
the smaller one where it is enough, and let the operator decide each:
https://admin.DOMAIN): a superadmin signs in and creates
the person under Platform access → Platform administrators, with the
role platform-admin (read-mostly) or superadmin (everything, including
managing the other administrators).admin in
the master realm and runs kube-dc login --domain DOMAIN --admin. This is
cluster-admin, with every Secret of the installation: only for people who
operate the cluster. The account's email must be verified in Keycloak, or
kubectl answers 401.Cluster access does not open the admin console: the person is refused for a missing platform role. Do not create accounts or set passwords in this conversation; the operator does it, or the console sends a setup email. Steps and checks: Add an admin.
Success: accept reports usable and the in-scope checks of step 9
pass.
Failure:
reconciling: Flux has not settled. flux get all -A, wait, ask again.
A settled installation also answers this for a short time after a push to
the fleet repository and during a periodic reconcile.converged: a user-facing check failed; accept names it. Common causes:
wildcard DNS not resolving from the servers, a certificate not trusted
(private CA not passed to install and init), the wildcard certificate
not issued (plain acme cannot issue it; see @decisions.md), OIDC cutover
deferred (init printed the command to run).s3.DOMAIN while a VM can: the front door is on
an address the Pod dials over its locked infra interface. See Class D in
@decisions.md and
How Project Pods reach the platform.rook-ceph-pvc: the OSD claims are Pending because
nothing binds them (kubectl -n rook-ceph get pvc; see @decisions.md).bootstrap init is resumable. Never delete the fleet checkout, the age key
or a partly finalized OpenBao to "start clean" without the operator.lsblk.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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./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./deploy-appDeploy a containerized application to a Kube-DC Project as an Application (apps.kube-dc.com) or a plain workload, with optional persistent storage, a managed database, external exposure, or gated Shared GPU acceleration; set up keyless deploys, builds on push and pull request previews from a GitHub repository, with a managed container registry or the user's own; roll back, pause and inspect builds./deploy-web-stackDeploy a complete web application in a Kube-DC Project — a managed database (PostgreSQL, MySQL or MariaDB) with delivered credentials, an optional persistent volume, and an HTTPS hostname with a platform certificate through the shared Gateway, without a public IP. Use for WordPress, CMSs, APIs and any app that needs a database and a URL.Other plugins' skills for the same job