Hands-On with Pods
It's time to see Pods in action.
For the examples in the rest of this chapter, we'll use the three-node cluster shown in Figure 4.8:
Figure 4.8: Three-node cluster
It doesn't matter where this cluster is or how it was deployed. All that matters is that you have three Linux hosts configured into a Kubernetes cluster with at least one master and two nodes. You'll also need kubectl
installed and configured to talk to the cluster.
If you do not have a cluster but would like to follow along, go to http://play-with-k8s.com and build a quick cluster. It's free and easy.
Following the Kubernetes mantra of composable infrastructure, we define Pods in manifest files, POST these to the API server, and let the scheduler instantiate them on the cluster.
Pod Manifest Files
For the examples in this chapter, we're going to use the following Pod manifest. It's available in the book's GitHub repository...