How the reporter works
The reporter is packaged as a Helm chart and deployed into the same cluster it monitors. Once installed it creates the following resources:| Resource | Purpose |
|---|---|
| CronJob | Triggers the reporter on a configurable schedule (default: every 5 minutes). |
| ServiceAccount & RBAC | Grants the reporter read-only access to list pods — either cluster-wide or within specific namespaces. |
| Secret reference | Points to a Kubernetes Secret that holds your Kosli API token. |
The reporter only needs
get and list permissions on pods (and namespaces, when using namespace selectors). It does not modify any resources in your cluster.What gets reported
For every running pod the reporter collects:- Container image reference and SHA256 digest
- Pod creation timestamp
Scoping what to report
You can control which parts of the cluster the reporter covers:- Entire cluster — omit namespace selectors to report all pods across all namespaces.
- Include specific namespaces — list namespace names or regex patterns to limit reporting to matching namespaces.
- Exclude specific namespaces — exclude namespace names or regex patterns to report everything except matching namespaces.
- Multiple environments — configure several Kosli environments in a single reporter installation, each with its own namespace selectors.
Prerequisites
- A Kubernetes cluster (v1.21 or later)
- Helm v3.0+
- A Kosli account and API token
- A Kosli environment of type K8S — see creating environments
Setting up the reporter
Create a values file
Create a To report only specific namespaces:
values.yaml file. At minimum you need your Kosli organization name and at least one environment:Alternative reporting methods
If you cannot deploy the Helm chart inside the cluster, you can report snapshots from outside using thekosli snapshot k8s CLI command. This is useful for:
- Quick local testing during development
- Environments where in-cluster deployments are restricted
- Running the reporter from a CI/CD scheduled job (e.g., GitHub Actions cron)
Next steps
- Report Kubernetes environments tutorial — step-by-step walkthrough of all reporting methods
- Helm chart reference — full configuration options
kosli snapshot k8sCLI reference — command flags and examples- Environment policies — define compliance requirements for your environments