Opensearch code for kubernetes (minikube) manifest files without docker compose.
Install minikube and Docker
The script provided above should be used to generate the certificates and then change the content of the files in the folder "cert-secrets" with the new certificates generated by the script.
./setup_certs.sh
Then create the secrets by running
kubectl apply -f certs-secrets/
Choose the number of master and data nodes you want in your cluster and modify the replicas count in the opensearch/master.yml and opensearch/data.yml file.
Now launch your opensearch cluster
kubectl apply -f opensearch/
Now launch the dashboard to access the UI
kubectl apply -f dashboard/
To add the security plugin, Exec into the master pod and apply the following commands
kubectl exec -it opensearch-master-0 -- /bin/bash
chmod +x plugins/opensearch-security/tools/securityadmin.sh
cd plugins/opensearch-security/tools
./securityadmin.sh -cd ../securityconfig/ -icl -nhnv \
-cacert ../../../config/certificates/ca/ca.pem \
-cert ../../../config/certificates/admin/admin.pem \
-key ../../../config/certificates/admin/admin.key
soon you will see the success message.
Run minikibe service list
to get the public IP address of the dashboard.