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:
- Validates your Rego files.
- Bundles them into a configmap.
- Hot-reloads the OPA sidecars.
bash
# Validate policies locally
cons policy check ./policies
# Deploy to cluster
cons deploy