- By Canonical Data Platform
|5/stable||117||20 Apr 2023|
|5/candidate||117||20 Apr 2023|
|5/edge||118||03 May 2023|
|3.6/stable||100||28 Apr 2023|
|3.6/candidate||100||13 Apr 2023|
|3.6/edge||100||03 Feb 2023|
juju deploy mongodb --channel 5/stable
You will need Juju 2.9 to be able to run this command. Learn how to upgrade to Juju 2.9.
Deploy universal operators easily with Juju, the Universal Operator Lifecycle Manager.
Cleanup and extra info
This is part of the Charmed MongoDB Tutorial. Please refer to this page for more information and the overview of the content.
Remove Charmed MongoDB and Juju
If you’re done using Charmed MongoDB and Juju and would like to free up resources on your machine, you can remove Charmed MongoDB and Juju. Warning: when you remove Charmed MongoDB as shown below you will lose all the data in MongoDB. Further, when you remove Juju as shown below you will lose access to any other applications you have hosted on Juju.
To remove Charmed MongoDB and the model it is hosted on run the command:
juju destroy-model tutorial --destroy-storage --force
Next step is to remove the Juju controller. You can see all of the available controllers by entering
juju controllers. To remove the controller enter:
juju destroy-controller overlord
Finally to remove Juju altogether, enter:
sudo snap remove juju --purge
In this tutorial we’ve successfully deployed MongoDB, added/removed replicas, added/removed users to/from the database, and even enabled and disabled TLS. You may now keep your Charmed MongoDB deployment running and write to the database or remove it entirely using the steps in Remove Charmed MongoDB and Juju. If you’re looking for what to do next you can:
- Run Charmed MongoDB on Kubernetes.
- Check out our Charmed offerings of PostGres and Kafka.
- Read about High Availability Best Practices
- Report any problems you encountered.
- Give us your feedback.
- Contribute to the code base
Help us improve this documentation
Most of this documentation can be collaboratively discussed and changed on the respective topic in the doc category of the Charmhub forum. See the documentation guidelines if you’d like to contribute.