Obtaining access to your Kubernetes resources
Sometimes, your applications need to manage certain Kubernetes resources. Let’s think about the following situations:
- The default Kubernetes autoscaling doesn’t cover our requirements
- We need to create some resources triggered by an event – for example, when our application starts
In these scenarios, our application’s processes will need to retrieve information from the Kubernetes API and create some resources. If we think of this workflow, at least our Pods will require network access to the Kubernetes API server’s IP address and appropriate permissions for the required actions and resources. In this section, we will learn how to create and manage Kubernetes objects from our application’s processes.
First, we need to remember a few concepts from Chapter 8, Deploying Applications with the Kubernetes Orchestrator. In that chapter, we talked about how Kubernetes improves our...