Introducing the Deployment object
Kubernetes gives you out-of-the-box flexibility when it comes to running different types of workloads, depending on your use cases. Let's have a brief look at the supported workloads to understand where the Deployment object fits, as well as its purpose. When implementing cloud-based applications, you will generally need the following types of workloads:
- Stateless: In the world of containers, stateless applications are those that don't hold onto user data (state) within the container itself. Imagine two Nginx containers serving the same purpose: one stores user data in a file inside the container, while the other uses a separate container like MongoDB for data persistence. Although they both achieve the same goal, the first Nginx container becomes stateful because it relies on internal storage. The second Nginx container, utilizing an external database, remains stateless. This stateless approach makes applications simpler to manage and scale...