Skip to content

Commit 535f048

Browse files
committed
inital README
1 parent 9542862 commit 535f048

2 files changed

Lines changed: 43 additions & 39 deletions

File tree

README.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,44 @@
11
# microservices-demo
2-
Online Boutique demo application tailored for deployment on DigitalOcean
2+
3+
Online Boutique demo application tailored for deployment on DigitalOcean using Helm.
4+
5+
## Technical Details
6+
7+
This Helm chart deploys the Online Boutique, a 10+ microservices application. It is configured to be flexible for both development and production-like deployments.
8+
9+
### Deployment
10+
11+
The chart can be deployed directly from the OCI registry.
12+
13+
**Command to install:**
14+
```bash
15+
helm install demo oci://ghcr.io/do-solutions/microservices-demo
16+
```
17+
18+
### Configuration
19+
20+
The deployment is controlled by the values in the `values.yaml` file. You can override these values during installation using the `--set` flag or by providing your own values file with `--values`.
21+
22+
#### Development vs. Production Deployments (`devDeployment`)
23+
24+
The most important configuration is the `devDeployment` flag, which controls how dependencies are handled.
25+
26+
* `devDeployment: true` (Default): This mode is for development and testing. The chart will deploy local instances of dependencies like PostgreSQL (for `adservice`) and Valkey (for `cartservice`) as subcharts. This is the easiest way to get the application running.
27+
28+
* `devDeployment: false`: This mode is for production-like environments where you manage your own databases. When set to `false`, the chart will not deploy the database subcharts. You are responsible for creating the necessary `ConfigMap` and `Secret` resources that provide connection details for each service before deploying the chart. For example, `adservice` requires a `ConfigMap` named `adservice-database-configuration` and a `Secret` named `adservice-database`.
29+
30+
To deploy in a production-like mode, you would run:
31+
```bash
32+
helm install demo oci://ghcr.io/do-solutions/microservices-demo --namespace boutique --set devDeployment=false
33+
```
34+
35+
### Accessing the Application
36+
37+
By default, the `frontend` service is exposed via a Kubernetes `Service` of type `LoadBalancer`. To access the application, you need to get the external IP address of this service.
38+
39+
You can find the external IP by running:
40+
```bash
41+
kubectl get svc frontend-external -n boutique -o jsonpath='{.status.loadBalancer.ingress[0].ip}'
42+
```
43+
44+
Once you have the IP address, you can access the application by navigating to `http://<EXTERNAL_IP>` in your web browser.

helm/README.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)