Skip to content

ConfigHub Guides

Each guide shows how to do one kind of task with ConfigHub, using the cub CLI and, where it has one, the web UI. They assume you have done the tutorial, which introduces Components, variants, Targets and Releases, and that you have installed the CLI. The Background section explains the concepts and entities the guides use, and the Developer section has the API and CLI references.

After the tutorial, these guides, in this order, cover the work most people do every day: Manage Environments, Create and Manage Variants, Make Changes, Automate Validation, Changes, and Analysis with Functions, Publish Releases, Track and Promote Changes, and Validate Configuration and Enforce Policies.

The guides are grouped by the stage of work they cover. To find the one for a task, look it up below.

Bring Configuration In

To Read
Get Kubernetes manifests into ConfigHub, from Helm, kustomize, kubectl and other tools Author, Migrate, and Import Configuration
Install off-the-shelf software, such as k8sbot or registrybot, from a package Install Packages
Change a package's answers, upgrade it, or undo an install Changing answers and upgrading
Write and publish a package of your own Working step by step, and writing packages
Install a Helm chart as a component, and upgrade it Install Helm Charts
Upload rendered manifests as a component's base Seeding a base space with cub variant upload
Store application configuration files (YAML, JSON, TOML, INI, properties, env) Store and Use Application Configuration
Deliver application configuration as a ConfigMap, and roll the workload when it changes Deploying as a Kubernetes ConfigMap
Find the Unit a live resource came from Finding where a resource came from
Bring a change made in the cluster back into its Unit Keeping a change made in the cluster
Record a cluster's Kubernetes version, resource types and other facts on its Target Recording facts about a cluster
Give workloads secrets without storing them in ConfigHub Reference Secrets
Read a different secret manager key in each environment A different key in each environment

Organize Components, Environments, and Variants

To Read
Create a component, and add variants to it Organize Configuration into Components
See a component's variants, or select them all Seeing a component and Selecting across components
Require a ChangeWorkflow, or a ChangeSet, for every change to a component Governing changes to a component
Lay out dev, staging and production for your components Manage Environments
Create a deployment of a component from its base Creating a variant with cub variant create
Leave a value to be filled in by each deployment Placeholders for undetermined values
Clone individual Units, or change which Unit is upstream of which Work with Variants at the Unit Level
Fill in one Unit's values from another's, such as a service's endpoint or an image tag Manage Dependencies

Change Configuration

To Read
Edit configuration, and group the edits into a named change Make Changes
Draft a change in a Space of its own and propose it for review Drafting a change in a Space of its own
Set an image, replica count, environment variable or any other value with a function Automate Validation, Changes, and Analysis with Functions
Select a set of Units to change together, such as every production deployment of a component Manage Sets of Units
Save the Units you work with as a Filter, and show them in a View Organize and Focus with Filters and Views
Write one change that works on every variant Write Changes That Generalize Across Variants
Keep a value a variant chose when its upstream changes Protecting a variant's own values
Deal with what a merge could not apply Conflicts
Keep a value from being changed by anyone who doesn't know why it is set Guarding values against every change
Re-run upstream changes downstream, or limit what a merge may touch Use Advanced Merging Techniques
Find out who set a value, when, and as part of which change Trace Where Configuration Values Came From
Undo a change Undoing a Change Set and Reverting changes

Release and Promote

To Read
Connect a Kubernetes cluster so Argo CD, Flux or Sveltos deploys what ConfigHub releases Connect a Cluster
Attach a cluster you already have, from a kubeconfig or EKS Attaching a cluster you already have
Configure Argo CD, Flux or Sveltos to pull from ConfigHub yourself Wiring a cluster by hand
Publish a Release, and find out what one contained Publish Releases
Move a change from dev to staging to production Track and Promote Changes
Require approvals before a change reaches a stage Requiring approvals
Roll out new container image tags as they are published Update Container Images Automatically
Choose how to undo a change, a ChangeSet, a rollout or a Release Roll Back and Recover
Go back to what an earlier Release deployed Rolling a Space back to an earlier Release
Undo a rollout in every stage it reached Undoing a rollout
Keep a change someone made in the cluster during an incident Keeping a change made in the cluster

Validate and Govern

To Read
Check configuration against a ready-made set of rules Guardrail packs
Write a check of your own, and decide whether it blocks a Release Validate Configuration and Enforce Policies
Share Triggers across Spaces, and run policies on a cluster's Target Organizing Triggers across Spaces and Targets
Find out why a Unit has a Validation Error, or why a Trigger is not running Troubleshooting
Check configuration with Kyverno or OPA Gatekeeper policies Validate with Admission Webhooks
Prevent a production Space or Unit from being deleted Protect Precious Entities
Require every change to be made in a ChangeSet or under a ChangeOrder Requiring a ChangeSet or ChangeOrder
Ask for a review, comment on a change, and approve or reject it Review and Approve Changes
See the reviews that wait for you Finding what waits for you
Make review mandatory for a Component's variants Requiring approval
Find out who did what Audit Who Did What

Work as a Team

To Read
See who is in the Organization, and add or remove members Members of an Organization
Understand what an Organization role allows, and where it comes from Organization roles
Grant a team access to its Spaces through a Group Groups and Granting access
Decide who may change, publish and approve in each Space Laying out access for teams
Give CI or a bot an identity of its own Create and Use Service Accounts
Have an AI agent work with ConfigHub Use ConfigHub with AI Agents
Post a status, runbook links or notes on a Unit for teammates Share Operational Information via Unit Metadata

Extend ConfigHub

To Read
Write a function of your own and run it Write and Run External Functions
Validate configuration with the admission webhook of another policy engine Write an Admission Webhook Function
Manage Triggers, Filters, Views and other entities as versioned documents Manage Entities with Backing Units
Build a bot that runs commands for ConfigHub Command Bots

Run ConfigHub

To Read
Install ConfigHub in your own environment, try it on a Mac, add people, and upgrade it Install a Self-Hosted Server
Run the server from your own manifests, or expose its OCI registry behind a load balancer Self-hosting
Monitor the server, k8sbot and registrybot with Prometheus or OpenTelemetry Monitor with Metrics