In the native wazuh, there was no option available to deploy agents on Kubernetes nodes automatically in native way. Though wazuh can be installed on Kubernetes using https://github.com/wazuh/wazuh-kubernetes/ but it doesn't have a way to install agents.
Please change the configuration based on your need and setup.
.
├── authd.pass
├── build.sh
├── Dockerfile
├── k8s
│ ├── configmap.yaml
│ └── daemonset.yaml
├── ossec.conf
├── README.md
├── runOnHost.sh
└── wait.sh
- Review the content of
configmap.yaml
and change the installation script based on your operating system. - Replace the
$MANAGER_IP
with Wazuh Manager IP address inconfigmap.yaml
and replaceWORKER_IP
to wazuh worker ip inossec.conf
. - Run
build.sh
to build the container and deploy Kubernetes objects.
Note: Container will be executed with hostPID: true
and in privileged mode.
References: