Exercise 3 – deploying an AKS cluster and running an application using the Azure CLI
In the previous section, we created an AKS cluster where we will deploy our application.
Deployments play a critical role in the Kubernetes environment because they are the mechanism for creating Pods that run the containers hosting our code.
If we go back to the Kubernetes architecture, we have our master nodes, a database storing all the information, the controllers, which allow us to interact with the nodes, and the API that we interact with using kubectl
. With Deployments, we can send our standard kubectl
commands to the API and the controllers will arrange what happens on the nodes. We can create one or more Pods per node. Knowing that a node is a virtual machine, the goal of the Deployments is to deploy the Pods that will run in our containers. A Deployment relies on a ReplicaSet. A ReplicaSet is where we set the number of Pods. For example, if we give the ReplicaSet a value of 3...