Skip to content

Opensearch code for kubernetes (minikube) manifest files without docker compose.

Notifications You must be signed in to change notification settings

fatimaasif155/opensearch-kubernetes-yaml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

opensearch-kubernetes-yaml

Opensearch code for kubernetes (minikube) manifest files without docker compose.

Pre-requisite

Install minikube and Docker

Setup Certificates

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/

Opensearch

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/

Opensearch Dashboard

Now launch the dashboard to access the UI

kubectl apply -f dashboard/

Security

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.

Browser

Run minikibe service list to get the public IP address of the dashboard.

About

Opensearch code for kubernetes (minikube) manifest files without docker compose.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages