How to convert Wizard Mode to Provisioning Mode
Migrating from Lenses Wizard Mode to Provision
Overview
Lenses 5.0+ introduces two primary methods for configuring your Lenses instance:
Wizard Mode: An interactive UI-based setup that appears when no Kafka brokers are configured
Provision Mode: A programmatic approach using
provisioning.yamlconfiguration with(out) sidecar containers
This guide walks you through migrating from the Wizard Mode setup to a fully automated Provision configuration, enabling GitOps workflows and Infrastructure as Code practices.
Understanding the Migration Path
When to Consider Migration
You should migrate from Wizard Mode to Provision when you need:
Automated deployments and Infrastructure as Code
GitOps workflows for configuration management
Consistent environments across development, staging, and production
Version control for your Lenses configuration
Scalable deployment patterns for multiple Lenses Agent instances
Migrating from Lenses â…˜ to Lenses 6 Agent
Key Differences
Setup Method
Interactive UI
YAML configuration
Automation
Manual
Fully automated
Version Control
Not supported
Full Git integration
Secrets Management
Manual entry
Kubernetes secrets + file references
Deployment
One-time setup
Repeatable deployments
Configuration Updates
UI-based
Code-based with CI/CD
Pre-Migration Checklist
Before starting your migration, please check Tips: Before Upgrade
Prepare Your Provision Configuration
Basic Structure
For Helm Deployment:
create a
values.yamlfile with the provision configuration enabled
For deployment from Archive create:
lenses-agent.confandprovisioning.yamlfile
Connections that provisioning is going to have:
Kafka;
SchemaRegistry;
KafkaConnect;
LensesHQ.
Configure Kafka Connection
For more Kafka connection details, such as using secure connections, please read Kafka
Configure Database details
In case Postgres is being used:
You would have to use two files:
lenses-agent.conf
provisioning.yaml
H2 as a storage mechanism is available only from Agent v6.0.6
Be aware that H2 is not recommended for production environments
You would have to use two files:
lenses-agent.conf
provisioning.yaml
Complete Migration Example
Here's a complete values.yaml and lenses-agent + provisioning.yaml example for a production migration:
For more Helm options, please check lenses-helm-chart repo.
You would have to use two files:
lenses-agent.conf
provisioning.yaml
Deployment and Testing
Deploy through Archive
Download Archive
Link to archives can be found here: https://archive.lenses.io/lenses/6.0/agent/
Extract the archive using the following command
Start Agent
Best Practices for Production
Security Considerations
Use Kubernetes secrets for sensitive data instead of inline values
Enable TLS for all Lenses HQ connections
Implement RBAC for Kubernetes and Lenses HQ & Agent access
Rotate credentials regularly
Operations Best Practices
Monitor resource usage of sidecar containers
Set resource limits to prevent resource monopolization
Implement health checks for the provision process
Use GitOps workflows for configuration management
Scaling Considerations
Plan for multiple environments (dev, staging, prod)
Implement configuration templates for reusability
Use Helm chart dependencies for complex deployments
Monitor deployment metrics and success rates
Conclusion
Migrating from Lenses Wizard Mode to Provision Mode enables Infrastructure as Code practices, better security management, and automated deployments. While the initial setup requires more configuration, the long-term benefits of automated, version-controlled, and repeatable deployments make this migration worthwhile for production environments.
The provision sidecar pattern ensures that your Lenses configuration is managed alongside your infrastructure code, enabling true GitOps workflows and reducing configuration drift between environments.
Last updated
Was this helpful?


