Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

This article instructs on how to create a DaemonSet in order to run Breeze agent on every node of cloud-managed Kubernetes cluster. This allows to get the agent data from the cluster in Cloudaware CMDB.

Table of Contents

Description

DaemonSet starts the container with Breeze agent installer. The container has two bind mounts:

  • host:/opt > container:/opt - used for the Breeze agent installation from container to the host file system

  • host:/ > container:/var/root - used for launching the agent in the chroot environment

The container runs two commands:

  1. Install the Breeze agent to the /opt directory

  2. Run the simple daemon which runs the Breeze agent every 15 minutes

Create Docker Image

1. Download the Breeze agent installer and unpack it to the current directory:

Code Block
wget breeze-agent.example.version.0.x86_64.linux.tgz
tar xvzf breeze-agent.example.version.0.x86_64.linux.tgz

2. Build the Docker image:

Code Block
docker build -t IMAGE_NAME .

3. Push the image to your private Docker container registry:

Code Block
docker tag IMAGE_NAME:latest DOCKER_SERVER_HOSTNAME/IMAGE_NAME:latest
docker push IMAGE_NAME:latest DOCKER_SERVER_HOSTNAME/IMAGE_NAME:latest

Run DaemonSet

1. Edit the DaemonSet configuration file ds-breeze-agent.yaml and replace the following placeholders with valid values:

  • DOCKER_SERVER_HOSTNAME

  • IMAGE_NAME

  • DOCKER_SERVER_SECRETS

2. Create the new DaemonSet:

Code Block
kubectl create -f ds-breeze-agent.yaml