Skip to content

Commit

Permalink
CI tutorial typo fix (#392)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinc authored Mar 8, 2021
1 parent 04e26de commit f6319f6
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions docs/tutorials/simple-nodejs-app-ci-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ weight: 14
title: Kev CI workflow example with a simple Node.js App
---

# CI workflow example with a simple Node.js app
# CI workflow example with a simple Node.js app

This example walks through using Kev in a commit based CI pipeline.

You will setup CircleCI to render, build, push and deploy to a remote staging environment.
You will setup CircleCI to render, build, push and deploy to a remote staging environment.

We assume that you,
- Use [`git`](https://git-scm.com/) for source control and can push to a remote Git repo.
Expand Down Expand Up @@ -67,13 +67,13 @@ These allow us to push our app's image to a secure docker registry. Should that

### config.yaml

Here is the [CircleCI config file](../../examples/node-app/.circleci/config.yml). It will create a CI pipeline that is triggered by a commit to your Git repo.
Here is the [CircleCI config file](../../examples/node-app/.circleci/config.yaml). It will create a CI pipeline that is triggered by a commit to your Git repo.

It assumes the necessary **CircleCI Environment Variables have been setup**, and the target cluster has a `staging` namespace already setup.

It also depends on the Kev staging environment that we will be creating shortly. Here's the relevant step that performs the actual deployment,

> CircleCI Deploy step: render staging, use Skaffold to build, push and deploy your app to Kubernetes.
> CircleCI Deploy step: render staging, use Skaffold to build, push and deploy your app to Kubernetes.
```yaml
...
...
Expand All @@ -85,7 +85,7 @@ It also depends on the Kev staging environment that we will be creating shortly.
./bin/skaffold run --kubeconfig ${KUBE_CONFIG_STAGING_FILE} --kube-context ${KUBE_CONTEXT_STAGING} --profile staging-env --namespace staging
...
...
```
```

## Initialise project

Expand All @@ -103,15 +103,15 @@ You will notice the staging environment configuration file has been created:

> Added environment specific override files:
```
...
...
|- docker-compose.kev.staging.yaml # staging env
```

Adjust your Kubernetes `staging` application parameters for each of the components as needed. This is done via Compose [labels](../../docs/reference/config-params.md).

Also, you'll find that Kev has bootstrapped a Skaffold config file (`skaffold.yaml`). If a `skaffold.yaml` file previously existed, then the additional profiles will be added there.

Our CI pipeline will be using this Skaffold config file to power builds, pushes and deployments.
Our CI pipeline will be using this Skaffold config file to power builds, pushes and deployments.

## Iterate on the application and commit

Expand All @@ -135,4 +135,4 @@ app-69d87ffbc8-wgs6 1/1 Running 0 9s

That's it! If you have an [Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/) configured then navigate to the correct Url.

Alternatively, you can choose to [port-forward](https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/) the service and test the app on your localhost.
Alternatively, you can choose to [port-forward](https://kubernetes.io/docs/tasks/access-application-cluster/port-forward-access-application-cluster/) the service and test the app on your localhost.

0 comments on commit f6319f6

Please sign in to comment.