O'Reilly logo

Kubernetes for Developers by Joseph Heck

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Updating the Flask deployment

The steps to this update process are:

  • Update the code or dependencies in source control
  • Build and tag a new Docker image
  • Push the Docker image to the container repository
  • Update the deployment resource in Kubernetes to use this new image

An example of stepping through this will highlight how you can start to roll out code updates, either directly or by adding additional services, to your application.

For this example, we will not change any code immediately, we just want to include the Redis Python library so that it's available. To do this, we would normally use PIP to install the library we want. With our Python example, we are installing all the required libraries with PIP through the dependency listing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required