In this challenge, you’re going to deploy the Dapr-enabled services you have written locally to an Azure Kubernetes Service (AKS) cluster.
To complete this challenge, you must reach the following goals:
VehicleRegistrationService
, TrafficControlService
& FineCollectionService
) to an AKS cluster.Program.cs
file) from http://localhost
to http://*
as this will allow the Kestrel server to bind to 0.0.0.0 instead of 127.0.0.1. This is needed to ensure the health probes work in Kubernetes.
Resources/Infrastructure/Helm/dapr-trafficcontrol/values.yaml
with the specific connection strings, tenant IDs, registry names, etc for your deployment.values.yaml
file into the various configuration files.Use various kubectl
commands to validate that all the services are running in your AKS cluster. Here are some useful ones.
Get all pods (in the current namespace)
kubectl get pods
Describe a specific pod (to help debug deployment issues)
kubectl describe pod <pod-name>
Tail the logs of a specific pod (and follow)
kubectl logs fine-collection-service-7c99df4c85-2bxvf -f
Thanks for participating in these hands-on challenges! Hopefully you’ve learned about Dapr and how to use it. Obviously, these challenges barely scratch the surface of what is possible with Dapr. We have not touched upon subjects like: hardening production environments, actors, integration with Azure Functions and Azure API Management just to name a few. So if you’re interested in learning more, I suggest you read the Dapr documentation.