Setup minikube:
minikube config set driver docker # set Docker as minikube driver
minikube config set cpus 4 # adjust depending on your needs
minikube config set memory 8000MB
A script is provided to help you generate some certificates (setup_certs.sh
). Run it. Then replace the values inside the certs-secrets
folder with the values of the certificates you just generated.
Then create the secrets:
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.
If you choose to have more than 1 master node, be sure to change the cluster.initial_master_nodes
options in opensearch/configmap.yml
.
For example, if you decide to have 3 master nodes, you will need to put:
cluster.initial_master_nodes: opensearch-master-0,opensearch-master-1,opensearch-master-2
Choose the port where you want to access opensearch in the spec.ports[0].nodePort
options in opensearch/service.yml
. (by default it will be accessible on port 30002)
You can now launch your opensearch cluster
kubectl apply -f opensearch/
Make sure to also launch the security-admin job to initialize the security plugin.
kubectl apply -f security-admin
Choose the number of replicas and set the replicas count accordingly in dashboards/dashboards.yml
.
Choose the port where you want to access dashboards in the spec.ports[0].nodePort
options in dashboards/service.yml
. (by default it will be accessible on port 30003)
kubectl apply -f dashboards/
Use the minikube command: minikube service list
to get the public IP address of Opensearch and Dashboards.