sample-app
by MongoDB
A sample application to install in your Kubernetes cluster that uses a Secret containing a connection string to your Mongo Database.
About this chart
MongoDB Sample App
This Chart contains a very simple application that you can use to test your MongoDB Deployment. This application requires a MongoDB resource deployed with one of the MongoDB Operators.
Both Atlas and Community create
a Secret containing a series of attributes that a client application can
use to connect to MongoDB. If you haven't done it yet, make sure you deploy
a MongoDB resource with one of the operators and install this chart with:
helm install mongodb-app mongodb/sample-app --set mongodb.connectionStringSecret=<secret-with-connection-string>
The Secret containing the MongoDB Connection String will be called:
<resource-name>-<database>-<user>
Look at each Operator documentation for more details.
Deploy sample-app with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has sample-app on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartsample-app is pinned at v0.1.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply