Skip to content
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

add some minikube port forwading info contribution #7618

Open
wants to merge 1 commit into
base: 4.8
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -403,3 +403,18 @@ Wazuh agents are designed to monitor hosts. To start using them:
#. Enroll the agent by modifying the file ``/var/ossec/etc/ossec.conf``. Change the “transport protocol” to TCP and replace the ``MANAGER_IP`` with the external IP address of the service pointing to port 1514 or with the hostname provided by the cloud provider

To learn more about registering agents, see the :doc:`Wazuh agent enrollment </user-manual/agent/agent-enrollment/index>` section of the documentation.

.. note:: Quick Tip for Minikube Users

Before deploying Wazuh in a production Kubernetes cluster, you may want to deploy it on Minikube for testing purposes. If you are using Minikube and need to connect Wazuh agents, you must also expose the following services using port-forwarding to avoid connection errors such as ``'[10.10.5.45]:1514/tcp': 'Connection refused'``.

Use the following commands to port-forward the necessary services:

.. code-block:: shell

kubectl port-forward svc/wazuh-workers --address <address> 1514:1514 -n wazuh
kubectl port-forward svc/wazuh --address <address> 1515:1515 55000:55000 -n wazuh

Replace ``<address>`` with the appropriate IP address or hostname.

This addition will help Minikube users to correctly map the necessary ports for connecting Wazuh agents and prevent connection issues.