Setting up the local development environment
Now that you understand the different Components of Kubernetes and the abstractions (Objects) that the API provides, we are ready to migrate the deployment of our application to using Kubernetes. In this section, we will learn the basics of Kubernetes by running it on our local machine. Later on in this chapter, we will build on what we've learned and deploy our application on multiple VPSs, managed by a cloud provider.
Checking hardware requirements
To run Kubernetes locally, your machine needs to fulfill the following hardware requirements:
- Have 2 GB or more of available RAM
- Have two or more CPU cores
- Swap space is disabled
Make sure you are using a machine which satisfies those requirements.
Cleaning our environment
Because Kubernetes manages our application containers for us, we no longer need to manage our own Docker containers. Therefore, let's provide a clean working environment by removing any Docker containers and images related to our application...