Cluster Lifecycle Guide
This guide covers how to provision, initialize, and decommission Kubernetes clusters using the Codiac CLI. It describes the three supported paths for standing up a cluster, and the day-2 operations that keep clusters healthy over time.
Background: What Is an Infrx Enterprise?
Codiac manages two distinct classes of software assets:
| Class | Purpose | Enterprise |
|---|---|---|
| SDLC assets | Application workloads that make up a company's service architecture | Your product enterprise (e.g., acme) |
| Infrx assets | Cluster-level components that support or enhance the cluster itself | k8sinfrx (the built-in infrastructure enterprise) |
The k8sinfrx enterprise is a Codiac built-in that every tenant has. It is the home for
cluster infrastructure assets — things like an ingress controller, a cert manager, a cluster
autoscaler, and the Codiac in-cluster agent.
Note:
k8sinfrxis a fixed, well-known name in the current release. Future releases will let you designate any enterprise as an infrx enterprise, but for now this single built-in enterprise covers all cluster-level asset management.
Infrx assets work exactly the same way as SDLC assets — they have versions, snapshots
(called cluster stacks), config, and the same cod asset and cod snapshot feature
set. The only differences are:
- The infrx lexicon uses install / uninstall instead of deploy / undeploy, and cluster stack instead of snapshot, to reduce confusion between the two layers.
- You target a cluster directly when installing infrx assets — Codiac handles the underlying deployment routing.
- Infrx assets can optionally declare a namespace config to control which Kubernetes namespace they are installed into. If no namespace is specified, the asset goes into the default infrx asset namespace.
The Codiac In-Cluster Agent
The Codiac in-cluster agent runs inside your cluster and enables Codiac to manage workloads
and configurations there. It can be installed using the Codiac CLI (using the
cod cluster agent install command) or installed with Helm as a standalone Helm chart
(using helm install). It is distinct from the other infrx assets — it is the prerequisite
for all cluster installs and must be installed before running any cod cluster install or
cod cluster stack install operation.
See the Codiac Agent Reference for CLI usage, Helm equivalents, and the full settings schema.
Three Paths to a Running Cluster
Path A — Bootstrap (recommended for most users)
The fastest way to stand up a fully working cluster. One command handles provisioning, agent install, and default stack install end to end.
cod cluster bootstrap
What it does, in order:
- Provisions the raw cluster (cloud infra only — no agent, no components)
- Installs the Codiac in-cluster agent
- Installs the default cluster stack (the latest snapshot in
k8sinfrxtaggeddefault)