Before we start talking about all the things you can do with Kubernetes, let’s run a quick example, so you can see how things work in practice. Don’t worry if you don’t understand everything we are doing. We just want to show you that getting an application to run on Kubernetes is not that complicated.
As we’ll discuss later, we usually work with Kubernetes in a declarative way. Instead of telling it what to do, we send it a manifest (as a yaml file) describing our desired state. In this case, we want to run nginx, so the manifest would be something like this: