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.yaml configuration 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

Aspect
Wizard Mode
Provision Mode

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

1

Assess Agent Connections that have to be migrated from Lenses 5

In the picture below it is visible that three connections has to be migrated to provisioning.yaml file:

  1. Kafka

  2. SchemaRegistry

  3. KafkaConnect

in addition to that a new connection has to be made called LensesHQ.

2

Prepare Your Provision Configuration

Basic Structure

For Helm Deployment:

  • create a values.yaml file with the provision configuration enabled

For deployment from Archive create:

  • lenses-agent.conf and

  • provisioning.yaml file

Connections that provisioning is going to have:

  • Kafka;

  • SchemaRegistry;

  • KafkaConnect;

  • LensesHQ.

3

Configure Kafka Connection

For more Kafka connection details, such as using secure connections, please read Kafka

4

Configure Additional Services Connections

Last two bits are:

  • Kafka Connect and

  • Schema Registry

5

Prepare HQ Connection

Through last few steps, we covered configuring of:

  • Kafka

  • Schema Registry

  • Kafka Connect connections.

Last but not least and probably the most important one is creating HQ connection otherwise Agent won't be useable.

6

Configure Database details

In case Postgres is being used:

Complete Migration Example

Here's a complete values.yaml and lenses-agent + provisioning.yaml example for a production migration:

Deployment and Testing

1

Deploy with Helm

Add the Lenses Helm repository:

Deploy Lenses with your provision configuration:

Monitor the deployment:

2

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?