Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

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.

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:

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:

docker build -t IMAGE_NAME .

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

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:

kubectl create -f ds-breeze-agent.yaml

  • No labels