Packaging Your Code to Run in Kubernetes

n this chapter, we will dig into the first thing you need to enable to use Kubernetes: getting your software into a container. We will review what containers are, how you store and share images, and how to build a container. The chapter then continues with two examples, one in Python, and another in Node.js, which step you through how to take simple example code from those languages to build containers, and run them within Kubernetes. The sections of this chapter are:

  • Container images
  • Making your own container
  • Python example—making a container image
  • Node.js example—making a container image
  • Tagging your container images

Get Kubernetes for Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.