Skip to content

Commit c444128

Browse files
committed
Highlight helm with backticks
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
1 parent 967d1b8 commit c444128

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,15 @@ This is a simple example of how to use connection pooling in MongoDB with OpenFa
1414

1515
Before we can build and deploy the example we'll set up OpenFaaS on Kubernetes or Swarm followed by MongoDB. This configuration is suitable for development and testing.
1616

17+
1. Start by cloning the Github repository:
18+
19+
```
20+
$ git clone https://github.com/alexellis/mongodb-function
21+
```
22+
1723
### Kubernetes
1824

19-
1. Install OpenFaaS with helm
25+
1. Install OpenFaaS with `helm`
2026

2127
https://docs.openfaas.com/deployment/kubernetes/
2228

@@ -26,22 +32,22 @@ https://docs.openfaas.com/deployment/kubernetes/
2632
curl -sL https://cli.openfaas.com | sudo sh
2733
```
2834

29-
3. Set your OPENFAAS_URL variable
35+
3. Set your `OPENFAAS_URL` variable
3036

3137
```
3238
$ export OPENFAAS_URL=127.0.0.1:31112
3339
```
3440

3541
If you're using minikube or a remote machine then replace 127.0.0.1 with that IP address.
3642

37-
4. Install mongodb via helm
43+
4. Install mongodb via `helm`
3844

39-
```
45+
```shell
4046
$ helm install stable/mongodb --name openfaas-db \
4147
--namespace openfaas-fn \
4248
--set persistence.enabled=false
4349
```
44-
x
50+
4551
Note down the name of the MongoDB instance i.e. `openfaas-db-mongodb`
4652

4753
> If you want to use the fully-qualified DNS name that would be: `openfaas-db-mongodb.openfaas-fn.svc.cluster.local.`
@@ -60,7 +66,7 @@ https://docs.openfaas.com/deployment/docker-swarm/
6066
curl -sL https://cli.openfaas.com | sudo sh
6167
```
6268

63-
3. Set your OPENFAAS_URL variable
69+
3. Set your `OPENFAAS_URL` variable
6470

6571
```
6672
$ export OPENFAAS_URL=127.0.0.1:8080

0 commit comments

Comments
 (0)