Prerequisites
Before starting the installation, make sure the following requirements are met:- Kubernetes cluster is ready and accessible
- Helm is installed in your environment
If Helm is not installed, you can review the Helm Installation Document page.
1) Adding Repository
2) Mongo Installation
You can perform MongoDB installation without any special settings by running the following command:Note: Version
mongo:8.0 is used in the current installation. If you want to prefer a more up-to-date version, you can use version mongo:8.0. You can review all Mongodb versions on Docker Hub.Optional Parameters
| Option | Default Value | Description |
|---|---|---|
image.mongo | mongo:8.0 | Specifies the version of MongoDB image. |
3) Installation Information
| Field | Description |
|---|---|
| TZ (Time Zone) | Europe/Istanbul – Set with TZ environment variable inside the container. Thus, application and MongoDB logs work according to Turkey time. |
| Database | apinizerdb |
| Username | kubectl get secret -n mongo mongodb-secret -o jsonpath="{.data.MONGO_ROOT_USERNAME}" | base64 --decode; echo |
| Password | kubectl get secret -n mongo mongodb-secret -o jsonpath="{.data.MONGO_ROOT_PASSWORD}" | base64 --decode; echo |
| Port | 25080 |
| Data directory | /mnt/data this directory is mapped with the path on your host machine (hostPath). Thus, data is kept on the host and is persistent. |

