Chapter 8. Accessing pod metadata and other resources from applications

This chapter covers

  • Using the Downward API to pass information into containers
  • Exploring the Kubernetes REST API
  • Leaving authentication and server verification to kubectl proxy
  • Accessing the API server from within a container
  • Understanding the ambassador container pattern
  • Using Kubernetes client libraries

Applications often need information about the environment they’re running in, including details about themselves and that of other components in the cluster. You’ve already seen how Kubernetes enables service discovery through environment variables or DNS, but what about other information? In this chapter, you’ll see how certain pod and container metadata can be passed ...

Get Kubernetes in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.