Summary
In this chapter, we explored the components of container images, best practices for creating container images, and choosing the right base image type. We reduced our container image size by removing unnecessary files and using multistage builds. We learned how to scan our container images for vulnerabilities proactively. We learned about application deployment strategies to test and roll out new features and releases of our applications. We created an HPA to scale our applications. All the recommendations and best practices mentioned in this chapter help us reduce the attack surface and increase stability to improve efficiency in our production environment.
In the next chapter, we will learn about Kubernetes observability and key metrics to monitor in production. We will learn about the tools and stacks to use or build, compare the best tools in the ecosystem, and learn how to deal with observability from a site reliability perspective.