Contents

八、Access POD metadata and other resources from applications

Kubernetes in action reading notes

1. Downward API passing metadata

To be honest, this chapter is also in the clouds, and it feels similar to the environment variable configuration. My understanding is that the Downward API is used to configure the metadata of the POD or container, and the environment variables are used to define some regular variable parameters. Downward API supports environment variables and files, which is more flexible.

2. Kubernetes API server interaction

In fact, this section mainly talks about how to use the Kubernetes API. Using the API is actually accessing its server. Each level of directory is a first-level resource.

123

This is to access the API server through the ambassador container. Of course, the API server can also be accessed through the client. The content of this chapter is mainly to configure the metadata of POD and access resources through API.