Prerequisites
Before installing kguardian, verify your environment meets these requirements:Kubernetes Cluster
Kubernetes Cluster
Required:
- Kubernetes version: 1.19+
- Node OS: Linux
- Kernel version: 6.2+ (for eBPF support)
- Container runtime: containerd (required — Docker and CRI-O are not supported)
Helm (Recommended)
Helm (Recommended)
- Helm 3.0+
kubectl Access
kubectl Access
kubectl1.19+ configured with admin privileges
Installation Methods
- Helm (Recommended)
- Kind (Local Development)
Install from OCI Registry
The simplest and recommended method for production deployments.All pods — controller (one per node), broker, db, frontend, and evaluator — should be in
Running state within 2-3 minutes.Install Specific Version
You can pin a particular chart version:Review Default Values
To customize your installation, you can view and save the default values:Configuration Options
Common Helm Values
Customize your installation by creating avalues.yaml file:
charts/kguardian/values.yaml or the auto-generated chart README.
Use External PostgreSQL
For production-grade deployments — managed services like AWS RDS / Cloud SQL / a CloudNativePG cluster you already run — disable the bundled Postgres and point the broker at the external instance:Install the CLI Plugin
After deploying the controller, install the CLI to generate policies.- Quick Install Script (Recommended)
- Manual Download
- From Source
- Detects your OS and architecture
- Downloads the latest CLI release
- Installs to
/usr/local/bin/kubectl-kguardian - Validates the installation
Verification
After installation, verify all components are working:1. Check Pod Status
2. Check Controller Logs
3. Check Broker Connectivity
4. Test CLI Connection
If all checks pass, kguardian is ready to use!
Upgrade
To upgrade kguardian to a newer version:Uninstall
To completely remove kguardian:This will not remove generated policies that were already applied to your namespaces. Clean those up separately if needed.
Quick Start
Jump right into generating policies
Configuration Guide
Deep dive into configuration options
Troubleshooting
Fix common installation issues
Architecture
Understand how components work