Prerequisites
- Kubernetes 1.23.0 or later
- Helm 3.0 or later
- kubectl configured to access your cluster
Add Helm Repository
Quick Start Installation
Install Cerbos with default settings:- 1 replica
- HTTP service on port 3592
- gRPC service on port 3593
- Default policy storage configuration
OCI Registry Installation
The chart is also available from an OCI registry:Configuration Options
View all available configuration values:Key Configuration Values
| Parameter | Description | Default |
|---|---|---|
replicaCount | Number of Cerbos pods | 1 |
image.repository | Container image repository | ghcr.io/cerbos/cerbos |
image.tag | Image tag (defaults to chart appVersion) | "" |
image.pullPolicy | Image pull policy | IfNotPresent |
service.type | Kubernetes service type | ClusterIP |
service.httpPort | HTTP service port | 3592 |
service.grpcPort | gRPC service port | 3593 |
cerbos.logLevel | Log level (DEBUG, INFO, WARN, ERROR) | INFO |
cerbos.config | Cerbos configuration object | {} |
type | Workload type (deployment or daemonset) | deployment |
TLS Configuration
Secure Cerbos endpoints with TLS certificates.Using Existing TLS Secret
Create TLS secret
Create a Kubernetes secret with your certificates:The secret must contain:
tls.crt- Certificate chain (required)tls.key- Private key (required)ca.crt- CA certificate for trust pool (optional)
Using cert-manager
If you use cert-manager, the chart can create a Certificate resource:Storage Configurations
Git Repository Storage
Deploy Cerbos configured to read policies from a Git repository.Create GitHub personal access token
Follow GitHub’s documentation to create a PAT with
repo permissions.Volume-Mounted Storage
Deploy Cerbos with policies from a Kubernetes volume.You can use any Kubernetes volume type (PersistentVolumeClaim, ConfigMap, NFS, etc.) instead of
hostPath. See Kubernetes volumes documentation.Cerbos Hub Storage
Connect your PDP to Cerbos Hub for centralized policy distribution.Create values file
Create
hub-values.yaml:For production, use a PersistentVolume instead of
emptyDir for audit log storage.Scaling and High Availability
Horizontal Scaling
Increase replicas for high availability:Autoscaling
Enable Horizontal Pod Autoscaler:DaemonSet Mode
Deploy as a DaemonSet for node-local access:Resource Management
Set resource limits and requests:Advanced Configuration
Customizing Manifests with Kustomize
For advanced customization, use Helm’s post-renderer feature with Kustomize.Service Types
Monitoring and Observability
Prometheus Integration
Enable Prometheus service discovery annotations:Custom Environment Variables
Inject additional environment variables:Upgrading
Upgrade an existing installation:Uninstalling
Remove the Cerbos deployment:Troubleshooting
Chart Information
- Chart Version: 0.52.0
- App Version: 0.52.0
- Kubernetes Version: >= 1.23.0
- Maintainer: Cerbos Authors (help+helm@cerbos.dev)
- Repository: https://download.cerbos.dev/helm-charts
- Source: https://github.com/cerbos/cerbos
Next Steps
- Configure deployment patterns for different use cases
- Set up sidecar deployments for per-pod access
- Explore DaemonSet mode for node-local PDPs
- Review production best practices for Kubernetes