Issue with Minikube Deployment

70 views
Skip to first unread message

ak

unread,
Oct 30, 2023, 3:11:50 AM10/30/23
to Wazuh | Mailing List
I tried to setup Kubernetes in minikube and I was able to get the indexer running as per the logs.

However, when I do the test curl query pointing to 9200, the connection is successful but I dont see a response with the opensearch version.

curl -k -u admin:SecretPassword https://ip:9200/_cat/nodes?v

From the logs I see requests to run securityadmin has not been initialized. I checked the but the kubernetes wazuh documentation but I cant does not have any information on how to use this specifically in the kubernetes deployment. I can see this documented for the regular deployment and it works. Are there any environment variables that need to be set to execute this script?

Queries/Request:

1. How do I run securityadmin script in kubernetes deployment? If possible, please update the kubernetes documentation with example commands that can be used (similar to the step by step instalation method which is detailed).
2. Similar to Wazuh official deployments where you have the "step by step" method which is very detailed, it would nice to include this for Kubernetes local deployment minikube.

Gonzalo Membrillo Solbes

unread,
Nov 2, 2023, 5:04:28 AM11/2/23
to Wazuh | Mailing List
Hello,

You can run the securityadmin.sh script in the same manner as you would in any other environment, using the following command on the Indexer:

bash /usr/share/wazuh-indexer/plugins/opensearch-security/tools/securityadmin.sh -cd /usr/share/wazuh-indexer/opensearch-security/ -nhnv -cacert  $CACERT -cert $CERT -key $KEY -p 9200 -icl -h $NODE_NAME

You can find this under the Applying the changes section of the Kubernetes deployment documentation. There, you will also see the necessary environment variables:

As per your suggestion, we will review the documentation and make any changes deemed necessary.

Do feel free to let us know if you need anything else.

Regards,
Gonzalo

ak

unread,
Nov 8, 2023, 4:37:27 PM11/8/23
to Wazuh | Mailing List
Hi Gonzalo,

Thanks a ton. I see you the Kubernetes documentation is updated with more details. Thanks a ton! Its super helpful.

Just for future reference:
It would be great if you could make the k8 documentation a bit more more detailed like the step by step sections seen in for baremetal deployments. Maybe a step by step documentation of deployment on microk8s/minikube on Ubuntu would be beneficial.
Reply all
Reply to author
Forward
0 new messages