Kubernetes deployment
Kubernetes is a container orchestration platform that runs your containers in a cluster of machines. Kubernetes is a very complex system, but usually, you don’t need to set it up yourself. You typically rely on cloud providers that offer managed Kubernetes services, or your company has a Kubernetes cluster that you can use. If you want to learn and test it locally, you can use tools such as kind or minikube, which are designed to run a local Kubernetes cluster for development purposes.
Here, let’s explain the more straightforward concepts to deploy our API in Kubernetes. The first thing is understanding that Kubernetes is a declarative system, meaning that you define the state where you want the system to be, and Kubernetes makes that happen. Those declarations are named “resources”. For our API, we must understand five different resources: pods, deployments, services, ConfigMaps, and secrets.
- A pod is a group of one...