Skip to main content

Try Locally

Introduction​

This guide provides step-by-step instructions on how to install nudgebee agent with a Kubernetes cluster using KinD (Kubernetes in Docker) with multiple nodes.

Limitation​

  • NudgeBee features like eBPF based tracing may not work using KiND.

Prerequisites​

Before you begin, ensure that you have the following prerequisites installed on your machine:

Installation Steps​

Step 1: Create and Launch KinD Cluster​

Run the following command to create and launch the KinD cluster with a multi-node configuration:

kind create cluster --config <(cat <<EOF
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
nodes:
- role: control-plane
- role: worker
- role: worker
EOF
)

Step 2: Verify installation​

kubectl cluster-info
kubectl get nodes

Step 3: Generate nudgebee Agent Keys​

Log in to nudgebee, go to kubernetes, and then click "Add Account." Select "K8s" and provide the required details. Use the generated keys in the next step.

Step 4: Install nudgebee agent​

wget https://raw.githubusercontent.com/nudgebee/k8s-agent/refs/heads/prod/installation.sh
sh installation.sh -a <agent-key> -d true

It will take upto 5 mintutes to collect data and upto 1 hour to generate recommendation

Step 5: Delete cluster​

After installation delete cluster using

kind delete cluster