rexlow / Wazuh-Daemons

Wazuh DaemonSet Agent for Kubernetes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wazuh DaemonSet Agent for Kubernetes

If you are running a kubernetes cluster for a compliance workload, you're probably thinking how to install wazuh agent in worker nodes.

Technically, we can ssh into individual compute instance and install the wazuh-agent from the terminal.

However, this is not the best way to do it considering the auto-scale nature of kubernetes as the agent will not be installed in new nodes.

One way to achieve that is through a DaemonSet workload.

This repo installs wazuh-agent in CentOS. If you're deploying it in other OS, feel free to update the ConfigMap in agent.yaml

Configuration

  1. Replace your-domain.com across all files with your wazuh domain.
  2. Replace your dockerhub handler in build.sh

Installation

bash build.sh

Note

This tool does not offer auto remove and auto add agent if an existing agent is found. If you need to add a new agent with the same name, login to your master node and run the below command to remove the agents first

/var/ossec/bin/manage_agents

About

Wazuh DaemonSet Agent for Kubernetes


Languages

Language:Shell 91.8%Language:Dockerfile 8.2%