Onboarding a K8s Cluster

Onboarding your Kubernetes (EKS) cluster to OneLens is quick and easy. By following the steps below, you will integrate your kubernetes cluster with OneLens.

circle-check

RBAC Permission Required

Onboarding Checklist

Before you onboard your cluster, you need to verify that all the necessary prerequisites are in place.

Use the below command to quickly verify the prerequisites:

curl -sSL https://raw.githubusercontent.com/astuto-ai/onelens-installation-scripts/release/v1.3.0-prereq-check/scripts/prereq-check/onelens-prereq-check.sh | bash

This script will automatically check your cluster's configuration and let you know if anything needs to be adjusted.

Onboarding Process: Video Guide

Here is the detailed video showcasing how you can setup the OneLens Agent in your kubernetes cluster.

Step-by-Step Guide

Follow these steps to onboard your Kubernetes cluster. You can execute them locally or from a bastion server that has access to your clusters.

1. Verify Prerequisites

Ensure you meet all the prerequisites outlined above before proceeding.

2. Select the EKS Cluster

Use kubectl to set the context to the cluster you want to onboard:

This command targets the correct cluster for the OneLens Agent deployment.

triangle-exclamation

Precaution

3. Run the Onboarding Script

Log into the OneLens UI and select the cluster you want to onboard.

Click on the plus icon.

The UI will automatically generate a deployment command for the selected cluster.

Copy the onboarding script.

Here’s the format of setup command that you’ll will get:

Run it in your terminal.

4. Verification

It will take around 2-3 minutes for the deployment of the agent in your cluster.

After the agent deployment, the status in the OneLens UI will show as Connecting.

The status will update to Connected within 1–2 hours, once data is received on our end.

Finally, simply click on the cluster name to view detailed insights and analysis.

Upgrade the OneLens Agent

circle-info

Currently the process is manual. OneLens team will reach out to you in order to perform new patches on each integrated cluster. The following process outlines the approach we are working on, in order to make this seamless.

You can initiate OneLens agent upgrades directly from your OneLens account. The console displays the available patch version along with detailed release notes. You can select the clusters to patch, and the request will be routed to the authorized owner in your organization for approval.

How Patching is executed in you Cluster

  • OneLens Updater is responsible for the patch process.

  • It runs daily at 2:00 AM UTC and checks via OneLens APIs whether the current cluster is approved for patching.

  • If a request is found, it applies the patch without manual intervention.

Patch Command

Following patch command will be executed by OneLens Updater, ensuring the existing configurations are used:

Last updated