Skip to content

Commit

Permalink
Fix heading levels (GoogleCloudPlatform#46)
Browse files Browse the repository at this point in the history
The headings used throughout the document are inconsistent. You'll probably never noticed unless you try to generate a table of contents from them, but I cleaned them up anyway.

Before:

* Lab: Build a Continuous Deployment Pipeline with Jenkins and Kubernetes
  * Introduction
  * Prerequisites
  * Do this first
  * Create a Kubernetes Cluster
  * Create namespace and quota for Jenkins
    * Create the Jenkins Home Volume
    * Create a Jenkins Deployment and Service
    * Connect to Jenkins
    * Your progress, and what's next
  * The sample app
  * Deploy the sample app to Kubernetes
    * Create a repository for the sample app source
  * Create a pipeline
    * Phase 1: Add your service account credentials
    * Phase 2: Create a job
    * Phase 3:  Modify Jenkinsfile, then build and test the app
  * Phase 4: Deploy a [canary release](http://martinfowler.com/bliki/CanaryRelease.html) to staging
* Phase 5: Deploy a development branch
    * Deploy the development branch
    * Access the development branch
  * Extra credit: deploy a breaking change, then roll back
  * Clean up

After:

* Lab: Build a Continuous Deployment Pipeline with Jenkins and Kubernetes
  * Introduction
  * Prerequisites
  * Do this first
  * Create a Kubernetes Cluster
  * Create namespace and quota for Jenkins
    * Create the Jenkins Home Volume
    * Create a Jenkins Deployment and Service
    * Connect to Jenkins
    * Your progress, and what's next
  * The sample app
    * Deploy the sample app to Kubernetes
    * Create a repository for the sample app source
  * Create a pipeline
    * Phase 1: Add your service account credentials
    * Phase 2: Create a job
    * Phase 3:  Modify Jenkinsfile, then build and test the app
    * Phase 4: Deploy a [canary release](http://martinfowler.com/bliki/CanaryRelease.html) to staging
    * Phase 5: Deploy a development branch
      * Deploy the development branch
      * Access the development branch
  * Extra credit: deploy a breaking change, then roll back
  * Clean up
  • Loading branch information
Chekote authored and Vic Iglesias committed Oct 19, 2016
1 parent e6e66b1 commit 0fea4b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ In this section you will start your [Google Cloud Shell](https://cloud.google.co
$ cd continuous-deployment-on-kubernetes
```

## Create a Kubernetes Cluster
## Create a Kubernetes Cluster
You'll use Google Container Engine to create and manage your Kubernetes cluster. Provision the cluster with `gcloud`:

```shell
Expand Down Expand Up @@ -240,7 +240,7 @@ Both the frontend and backend modes of the application support two additional UR
1. `/version` prints the version of the binary (declared as a const in `main.go`)
1. `/healthz` reports the health of the application. In frontend mode, health will be OK if the backend is reachable.
## Deploy the sample app to Kubernetes
### Deploy the sample app to Kubernetes
In this section you will deploy the `gceme` frontend and backend to Kubernetes using Kubernetes manifest files (included in this repo) that describe the environment that the `gceme` binary/Docker image will be deployed to. They use a default `gceme` Docker image that you will be updating with your own in a later section.
You'll have two primary environments - staging and production - and use Kubernetes namespaces to isolate them.
Expand Down Expand Up @@ -381,7 +381,7 @@ Modify your `Jenkinsfile` script so it contains the correct project name on line

Don't commit the new `Jenkinsfile` just yet. You'll make one more change in the next section, then commit and push them together.

## Phase 4: Deploy a [canary release](http://martinfowler.com/bliki/CanaryRelease.html) to staging
### Phase 4: Deploy a [canary release](http://martinfowler.com/bliki/CanaryRelease.html) to staging
Now that your pipeline is working, it's time to make a change to the `gceme` app and let your pipeline test, package, and deploy it.
The staging environment is rolled out as a percentage of the pods behind the production load balancer.
Expand Down Expand Up @@ -465,7 +465,7 @@ You can use the [labels](http://kubernetes.io/docs/user-guide/labels/) `env: pro
1. Look at the `Jenkinsfile` in the project to see how the workflow is written.
# Phase 5: Deploy a development branch
### Phase 5: Deploy a development branch
Often times changes will not be so trivial that they can be pushed directly to the staging environment. In order to create a development environment from a long lived feature branch
all you need to do is push it up to the Git server and let Jenkins deploy your environment. In this case you will not use a loadbalancer so you'll have to access your application using `kubectl proxy`,
which authenticates itself with the Kuberentes API and proxies requests from your local machine to the service in the cluster without exposing your service to the internet.
Expand Down

0 comments on commit 0fea4b5

Please sign in to comment.