Summary

In this chapter, we started with reviewing some practical notes about how to develop your code to run within a container. We reviewed options for getting logging from your program, and then some techniques for accessing the Pods when your code is running. We then reviewed the Kubernetes concepts of labels and selectors, showing how they are used on the commands we have used so far, and then looked at the Kubernetes service concept to expose sets of Pods (such as in a deployment) to each other, or external to a Kubernetes cluster. Finally, we ended the chapter by looking at deployment rollouts, and how you can roll out changes as well as see the history of those changes.

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.