chapter three
3 Deploying your first application
This chapter covers
- Running a single-node Kubernetes cluster on your laptop
- Setting up a Kubernetes cluster on Google Kubernetes Engine
- Setting up and using the
kubectlcommand-line tool - Deploying an application in Kubernetes and making it available across the globe
- Horizontally scaling the application
The goal of this chapter is to show you how to run a local single-node development Kubernetes cluster or set up a proper, managed multi-node cluster in the cloud. Once your cluster is running, you’ll use it to run the container you created in the previous chapter.
Note
You’ll find the code files for this chapter at https://github.com/luksa/kubernetes-in-action-2nd-edition/tree/master/Chapter03
3.1 Deploying a Kubernetes cluster
Setting up a full-fledged, multi-node Kubernetes cluster isn’t a simple task, especially if you’re not familiar with Linux and network administration. A proper Kubernetes installation spans multiple physical or virtual machines and requires proper network setup to allow all containers in the cluster to communicate with each other.