-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to change namespace from other than wazuh #627
Comments
Is the agent connecting properly when you don't change the namespace ? |
yes the agents are connecting fine when we set the namespace to wazuh. btw we're using wazuh 4.7.2 for the server and the agents |
I managed to change the namespace creating it first on kubernetes (Im using rancher + longhorn + rke) the main reference is the wazuh/base/wazuh-ns.yaml file: and a rough sed, probably not the best way, but works for now:
|
Please ignore my suggestion, as it will replace the namespace globally and that will break some other services. The correct goal was to on the main kustomization.yaml be set and globally be pushed to all deployments on the overlays (eks / local-env) it actually works on deployment, but it breaks communication between the worker nodes and each other if the namespace is not wazuh overall. I'm trying to compare here and debug what is the difference on a custom namespace and wazuh namespace, as when I try to register agents it will only work if the deployment was done to wazuh namespace. |
update on my lab testing, for example I have two namespaces, dummyclient and wazuh. I used the default wazuh-kubernetes-4.8.0 kustomize default packages, only change I did was on the root kustomize.yaml and changed the namespace from wazuh to dummyclient. doing this the deployment works fine, dashboard works, filebeat also, but the workers cannot connect to the cluster manager |
the issue can be solved adding the new namespace on the ossec.conf files, as its hardcoded the expected pod hostname:
kubernetes default dns host format is as follows: so the namespace must follow the one with the kustomize deployment |
We are redesigning our Kubernetes deployment for 5.0.0. |
Hello,
We are trying to deploy this in kubernetes in a devn and production environment and we need to isolate it based on the namespace. Is there a way for us to use custom namespace with this? something like wazuh-dev, wazuh-prod?
We tried changing the namespace but when we did, the agents would not connect for some reason. they would show up in the dashboard but would never go past the "never connected" stage
Thanks.
The text was updated successfully, but these errors were encountered: