Skip to Content
Kubernetes Best Practices
book

Kubernetes Best Practices

by Brendan Burns, Eddie Villalba, Dave Strebel, Lachlan Evenson
November 2019
Intermediate to advanced
265 pages
6h 44m
English
O'Reilly Media, Inc.
Content preview from Kubernetes Best Practices

Chapter 5. Continuous Integration, Testing, and Deployment

In this chapter, we look at the key concepts of how to integrate a continuous integration/continuous deployment (CI/CD) pipeline to deliver your applications to Kubernetes. Building a well-integrated pipeline will enable you to deliver applications to production with confidence, so here we look at the methods, tools, and processes to enable CI/CD in your environment. The goal of CI/CD is to have a fully automated process, from a developer checking in code to rolling out the new code to production. You want to avoid manually rolling out updates to your apps deployed to Kubernetes because it can be very error prone. Manually managing application updates in Kubernetes leads to configuration drift and fragile deployment updates, and overall agility delivering an application is lost.

We cover the following topics in this chapter:

  • Version control

  • CI

  • Testing

  • Tagging images

  • CD

  • Deployment strategies

  • Testing Deployments

  • Chaos testing

We also go through an example CI/CD pipeline, which consists of the following tasks:

  • Pushing code changes to the Git repository

  • Running a build of the application code

  • Running test against the code

  • Building a container image on a successful test

  • Pushing the container image to a container registry

  • Deploying the application to Kubernetes

  • Running a test against a deployed application

  • Performing rolling upgrades on Deployments

Version Control

Every CI/CD pipeline starts ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Kubernetes in Production Best Practices

Kubernetes in Production Best Practices

Aly Saleh, Murat Karslioglu
Kubernetes Microservices

Kubernetes Microservices

Richard Chesterwood
Kubernetes Patterns

Kubernetes Patterns

Bilgin Ibryam, Roland Huß

Publisher Resources

ISBN: 9781492056461Errata Page