Documentation
Docs
Policies

Deploying Policies

How to apply OPA policies to your cluster.

Policy Bundle

Policies are defined in .rego files in your project's policies/ directory.

Applying Changes

When you run cons deploy, the CLI:

  1. Validates your Rego files.
  2. Bundles them into a configmap.
  3. Hot-reloads the OPA sidecars.
bash
# Validate policies locally
cons policy check ./policies

# Deploy to cluster
cons deploy