Skip to main content
This guide covers all installation methods for kguardian, from quick setups to production deployments.

Prerequisites

Before installing kguardian, verify your environment meets these requirements:
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)
Verify kernel version:
  • kubectl 1.19+ configured with admin privileges
Verify access:
Kernel Compatibility: kguardian requires Linux kernel 6.2+ for eBPF CO-RE (Compile Once, Run Everywhere) support. Older kernels may work with manual BPF program compilation but are not officially supported.

Installation Methods


Configuration Options

Common Helm Values

Customize your installation by creating a values.yaml file:
Install with custom values:
For the full list of values, see 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:
Create the secret in the kguardian namespace before installing:
Then install:

Install the CLI Plugin

After deploying the controller, install the CLI to generate policies.

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:
Always review the Release Notes before upgrading, especially for breaking changes in major versions.

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