Charmed OpenSearch Tutorial > 2. Deploy OpenSearch
Deploy OpenSearch
To deploy Charmed OpenSearch, all you need to do is run the following command:
juju deploy opensearch --channel 2/beta
The command will fetch the charm from Charmhub and deploy it to the LXD cloud. This process can take several minutes depending on your machine.
You can track the progress by running:
juju status --watch 1s
This command is useful for checking the status of your Juju model, including the applications and machines it hosts. Helpful information it displays includes IP addresses, ports, state, etc. The output of this command updates once every other second.
When the application is ready, juju status
will show something similar to the sample output below:
Model Controller Cloud/Region Version SLA Timestamp
tutorial opensearch-demo localhost/localhost 3.5.3 unsupported 13:20:34Z
App Version Status Scale Charm Channel Rev Exposed Message
opensearch blocked 1 opensearch 2/beta 117 no Missing TLS relation with this cluster.
self-signed-certificates active 1 self-signed-certificates latest/stable 155 no
Unit Workload Agent Machine Public address Ports Message
opensearch/0* blocked idle 0 10.214.176.107 Missing TLS relation with this cluster.
Machine State Address Inst id Base AZ Message
0 started 10.214.176.107 juju-b0826b-0 ubuntu@22.04 Running
To exit the juju status
screen, enter Ctrl + C
.
The status message Waiting for TLS to be fully configured...
is displayed because Charmed OpenSearch requires TLS to be configured before use, to ensure data is encrypted in transit for the HTTP and Transport layers. We will do this in the next step.
If you see the following status message:
vm.swappiness should be 0 - net.ipv4.tcp_retries2 should be 5
you need to set the correct kernel parameters to continue.
Next step: 3. Enable TLS