Kubernetes is a tool that was developed by Google and is now maintained by the Cloud Native Computing Foundation. It is used to manage Docker containers. When we were deploying to Google, it was actually using Kubernetes in the backend. Kubernetes is open source and freely available.
Kubernetes operates with the following main object types:
- Pod: One or more containers that are running on the same host. It is the basic unit that is used to deploy Docker containers.
- Service: A group of pods that work together. Each of your microservices would be a service within Kubernetes.
- Volume: Persistent storage that remains existent, even when a pod is restarted. The normal filesystem loses all its data after a restart in a pod.
- ConfigMaps and Secrets: These allow us to provide configuration and credentials to containers.
The main idea is that it helps us manage microservices...