Skip to content

fix: fix typo ngnix to nginx #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions abstraction/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ import .app

app.App {
name = "app"
containers.ngnix = {
image = "ngnix"
containers.nginx = {
image = "nginx"
ports = [{containerPort = 80}]
}
service.ports = [{ port = 80 }]
}
```

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.
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.

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.

Expand All @@ -46,7 +46,7 @@ The output is
```yaml
services:
app:
image: ngnix
image: nginx
ports:
- published: 80
target: 80
Expand Down Expand Up @@ -81,8 +81,8 @@ spec:
app: app
spec:
containers:
- name: ngnix
image: ngnix
- name: nginx
image: nginx
ports:
- protocol: TCP
containerPort: 80
Expand Down
4 changes: 2 additions & 2 deletions abstraction/main.k
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import .app

app.App {
name = "app"
containers.ngnix = {
image = "ngnix"
containers.nginx = {
image = "nginx"
ports = [{containerPort = 80}]
}
service.ports = [{ port = 80 }]
Expand Down