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.yamland change the installation script based on your operating system. - Replace the 
$MANAGER_IPwith Wazuh Manager IP address inconfigmap.yamland replaceWORKER_IPto wazuh worker ip inossec.conf. - Run 
build.shto build the container and deploy Kubernetes objects. 
Note: Container will be executed with hostPID: true and in privileged mode.
References: