Kubernetes IRL
This is the last part of our course, and we will not see anything new about Kubernetes here. But I wanted to take some time to run an application in a real Kubernetes cluster in a cloud provider. This will give us a chance ton work together to build something that works locally and make it run reliably somewhere that can actually serve production traffic. You will see that it is not much different from what we have been doing so far. So let’s get started!
Congratulations, you’ve made it!
We will run our Kubernetes cluster on DigitalOcean
, which provides a managed Kubernetes offering and is super easy to set up, as you will see. If you want to follow along, you can use this (referral) link to get $100 in credits, which should be more than enough for what we will do here.
Don’t forget to delete your cluster after you are done.
Let’s start by creating a cluster on DigitalOcean
:
In the cluster configuration page, we just need to choose the Kubernetes version we want to use, the number of worker nodes, and their capacity and give this cluster a name.
In this example, we’re creating a cluster in the San Francisco region with the latest version of Kubernetes.
This cluster contains three worker nodes, and we’re calling it kubernetesinpractice
.