The goals of this challenge include understanding:
- How to deploy an AKS cluster using Bicep
- How to leverage modules & deployment scripts to deploy code to the cluster
Your challenge is to:
- Create a Bicep file to deploy an AKS cluster into your subscription.
Now that your cluster is running, we want to deploy a sample app to the cluster. We're going to use a tool called a deployment script to do this. Fortunately, the heavy lifting has been done for you!
Remember when we covered modules back in Challenge 6? We created our own modules. But there are also public modules you can use. For this challenge, we're going to use a module called AKS Run Command Script
, which allows you to run a command on a Kubernetes cluster by calling a deployment script under the covers.
You can find the module and how to use it here: AKS Run Command Script
Thus, your challenge is to:
-
Update your bicep file to leverage the "AKS Run Command Script" module, and have it run the following command which will deploy a sample application to the cluster:
kubectl apply -f https://raw.githubusercontent.com/Azure-Samples/azure-voting-app-redis/master/azure-vote-all-in-one-redis.yaml
- Verify your AKS cluster is up and running
- Demonstrate that your app is running on your cluster