Skip to content

Commit d799dd9

Browse files
committed
fix typo ngnix to nginx
1 parent d65c6e3 commit d799dd9

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

abstraction/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ import .app
2121

2222
app.App {
2323
name = "app"
24-
containers.ngnix = {
25-
image = "ngnix"
24+
containers.nginx = {
25+
image = "nginx"
2626
ports = [{containerPort = 80}]
2727
}
2828
service.ports = [{ port = 80 }]
2929
}
3030
```
3131

32-
In the above code, we defined a configuration using the `App` schema, where we configured an `ngnix` container and configured it with an `80` service port.
32+
In the above code, we defined a configuration using the `App` schema, where we configured an `nginx` container and configured it with an `80` service port.
3333

3434
Besides, KCL allows developers to define the resources required for their applications in a declarative manner and is tied to a platform such as Docker Compose or Kubernetes manifests and allows to generate a platform-specific configuration file such as `docker-compose.yaml` or a Kubernetes `manifests.yaml` file. Next, let's generate the corresponding configuration.
3535

@@ -46,7 +46,7 @@ The output is
4646
```yaml
4747
services:
4848
app:
49-
image: ngnix
49+
image: nginx
5050
ports:
5151
- published: 80
5252
target: 80
@@ -81,8 +81,8 @@ spec:
8181
app: app
8282
spec:
8383
containers:
84-
- name: ngnix
85-
image: ngnix
84+
- name: nginx
85+
image: nginx
8686
ports:
8787
- protocol: TCP
8888
containerPort: 80

abstraction/main.k

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import .app
22

33
app.App {
44
name = "app"
5-
containers.ngnix = {
6-
image = "ngnix"
5+
containers.nginx = {
6+
image = "nginx"
77
ports = [{containerPort = 80}]
88
}
99
service.ports = [{ port = 80 }]

0 commit comments

Comments
 (0)