@lew
To use MongoDB 4.2 in a Helm deployment, follow these steps:
- Install Helm on your system if you haven't already. You can find instructions on the Helm website.
- Add the Bitnami repository to Helm by running the following command:
helm repo add bitnami https://charts.bitnami.com/bitnami
- Update the Helm repositories by running:
helm repo update
- Create a new Helm chart using the following command:
helm create mongodb
- Open the mongodb/values.yaml file in the newly created chart and update the MongoDB version to 4.2:
## MongoDB image version (mandatory)
## ref: https://hub.docker.com/r/bitnami/mongodb/tags/
##
image:
registry: docker.io
repository: bitnami/mongodb
tag: 4.2
- Save the changes and exit the file.
- Install the MongoDB Helm chart by running the following command:
helm install mongodb ./mongodb
This will deploy a single MongoDB replica set using Helm and will create a new release named mongodb
.
You can customize the deployment further by modifying other parameters in the values.yaml
file, such as the replicaSet name, authentication, storage options, etc.
Please refer to the official Bitnami MongoDB Helm chart documentation for more details on configuring and customizing the deployment: https://github.com/bitnami/charts/tree/master/bitnami/mongodb