Skip to content

Commit 0097b9d

Browse files
Update examples/nginx.md - fix typos (#178)
2 parents c04914d + b718352 commit 0097b9d

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

content/en/docs/examples/nginx.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ In this example we will walk you through how you can deploy a Nginx containerize
1111

1212
## 1. `score.yaml`
1313

14-
Open your IDE and paste in the following `score.yaml` file, which describes a simple web server that queries a PostgreSQL database on each request and is exposed via a DNS. The demo code can be found [here](https://github.com/score-spec/sample-score-app).
14+
Open your IDE and paste in the following `score.yaml` file, which describes a simple web server that is exposed via a DNS. The demo code can be found [here](https://github.com/mathieu-benoit/nginx-score-demo).
1515

1616
```yaml
1717
apiVersion: score.dev/v1b1
@@ -93,7 +93,7 @@ The `init` command will create the `.score-compose` directory with the [default
9393
score-compose provisioners list
9494
```
9595

96-
The Score file example illustrated uses three resource types: `postgres`, `dns` and `route`.
96+
The Score file example illustrated uses three resource types: `dns`, `route` and `volume`.
9797

9898
```none
9999
+---------------+-------+------------------+--------------------------------+---------------------------------+
@@ -111,6 +111,8 @@ The Score file example illustrated uses three resource types: `postgres`, `dns`
111111
+---------------+-------+------------------+--------------------------------+---------------------------------+
112112
```
113113

114+
By using the [`--patch-templates`](/docs/score-implementation/score-compose/patch-templates/) (in this case: [`unprivileged.tpl`](https://github.com/score-spec/community-patchers/blob/main/score-compose/unprivileged.tpl)) we are also making sure that the generated workload will run as unprivileged.
115+
114116
### `generate`
115117

116118
Convert the `score.yaml` file into a runnable `compose.yaml`, run the following command in your terminal:
@@ -229,7 +231,7 @@ The `init` command will create the `.score-k8s` directory with the [default reso
229231
score-k8s provisioners list
230232
```
231233

232-
The Score file example illustrated uses three resource types: `postgres`, `dns` and `route`.
234+
The Score file example illustrated uses three resource types: `dns`, `route` and `volume`.
233235

234236
```none
235237
+---------------+-------+------------------+--------------------------------+---------------------------------+
@@ -247,6 +249,8 @@ The Score file example illustrated uses three resource types: `postgres`, `dns`
247249
+---------------+-------+------------------+--------------------------------+---------------------------------+
248250
```
249251

252+
By using the [`--patch-templates`](/docs/score-implementation/score-compose/patch-templates/) (in this case: [`unprivileged.tpl`](https://github.com/score-spec/community-patchers/blob/main/score-compose/unprivileged.tpl)) we are also making sure that the generated workload will run as unprivileged.
253+
250254
### `generate`
251255

252256
Convert the `score.yaml` file into a runnable `manifests.yaml`, run the following command in your terminal:

0 commit comments

Comments
 (0)