
Deploy Daprized microservices to Azure Kubernetes Service (AKS) using an event-driven runtime with sidecar architecture, as this course builds on prior Dapr and cloud deployment knowledge.
This lecture outlines prerequisites for deploying Daprized microservices apps, including Dapr version updates, installation, and debugging guidance. It requires a machine with Dapr 1.6, net 6, and Docker.
Deploy daprized microservices to Azure, starting with Kubernetes, then Azure Container Apps, and automate deployments with Bicep IaC and GitHub Actions in CI/CD pipelines.
Design and deploy two microservices, ordersapi and inventoryapi, on Azure Kubernetes Service, using Dapr components for pub-sub, state stores, and input binding, with Redis locally and Azure resources later.
Build the orders api microservice with Dapr, register the Dapr client, validate and persist orders, and publish order_created events to a configurable message bus (Redis or Azure Service Bus).
Develop the inventory API microservice with Dapr, handling orders from the message bus, updating inventory state and item balances, and supporting stock refill.
Configure four redis-based dapr components locally, including a pubsub.redis named messagebus and a state.redis orderstore, scope per service and test with the provided powershell script.
Test locally deployed microservices by using redis-cli to flush all keys, launch components with launch.ps1, and call the order service sidecar via postman to obtain an orderId and state details.
Configure Azure Cosmos DB for state management by creating a resource group, Core SQL Cosmos DB account, csstatedb database, and containers orderstate, inventorystate, inventoryitemstate, then collect the uri and keys.
Create cosmos db component YAML files in a components-azure folder, set type to state.azure.cosmosdb, and configure the url, master key, database name, and collection for local services.
Provision an Azure service bus by creating it in your subscription and resource group, selecting standard tier. Create a queue and copy the primary key and connection string for configuration.
Launch Launch1.ps1 to switch components to azure and run microservices locally with dapr sidecars. Use postman against localhost to observe service bus events and inventory and order state stores.
Provision an Azure event hub namespace and eventhub, create a storage account, and bind them with Binding-eh.yaml using the stockrefill route name and the input binding.
Develop a supplier console app that sends stock replenishments to inventory item store via Azure Event Hubs, then test with inventory service and deploy to the Azure Kubernetes cluster.
Install and upgrade the Azure CLI, log in to your subscription, and provision an AKS cluster from the command line, contrasting portal provisioning with Bicep and ARM templates.
Provision an Azure Kubernetes Service cluster with az aks create, using two nodes in a vm scale set and enabling monitoring in resource group ffdapr.rg.
Connect to the created cluster, install kubectl, fetch credentials to gain admin access, merge them into the kubeconfig, and use kubectl to verify two nodes.
Set up a Kubernetes cluster on Azure and deploy a daprized microservices app, verify dapr services, and monitor the dashboard and ingress in the dapr system namespace.
Build docker images for the orders API and inventory API, create an Azure Container Registry, tag and push the images, and verify them in the registry portal.
Explore Kubernetes basics and learn how to write deployment and service files that deploy pods and ports across a cluster, using the API server, kubectl, and the control plane.
Explain how deployment and service files configure Kubernetes resources using YAML, labels, selectors, and templates, detailing replicas, containers, ports, annotations, and the sidecar injector.
Attach the Azure container registry to the AKS cluster, then apply component and microservice YAML files with kubectl to deploy the order and inventor services.
Expose multiple microservices behind a single entry point using the engine x ingress controller in an Azure Kubernetes cluster. Create ingress rules to route requests to services with TLS termination.
Explore another deployment type for Dapr and nondapr microservices in part two, focusing on how to deploy both Dapr and nondapr microservices.
Discover how Azure Container Apps provide serverless hosting on top of AKS to deploy daprized or non-daprized microservices with automatic revisions and traffic splitting.
Deploy Azure container apps by creating an environment and resource group, deploying a ready-made docker image through the portal, and managing revisions with log analytics.
Deploy a Blazor app to Azure Container Apps by building a Docker image, pushing to Azure Container Registry, and set up a future GitHub Actions pipeline.
Create a continuous deployment pipeline by pushing the Blazor app to GitHub, enabling GitHub actions to build and push Docker images to Azure Container Registry, and connect ACA.
Set up a continuous deployment pipeline with GitHub actions and Azure Container Registry, editing the .github/workflows file in VS Code and deploying container apps from origin/main.
Learn how GitHub Actions enables CI/CD with an automated deployment file, including build and deploy workflows, Docker builds to the ACR, and Azure CLI deployment to container apps.
This course teaches you how to deploy microservices applications to the Azure Kubernetes Service also known as AKS.
You will see deployment examples of both the dapr side car attached and not attached cases.
The course may be thought of as a sequel to my previous course called Microservices Applications Development revolution with Dapr.
Microsoft's new Dapr Side Car Technology to build microservices applications has taken the microservices development industry by storm. Along with the current trends in that field, I had prepared the first Dapr video course that was published 6 months ago.
Now I am taking the work in that field one step further and hence the current video course where you will learn to deploy your daprized(also non-daprized apps) to Azure Kubernetes Cluster.
You will learn in this course how to provision resources in the Azure portal, such as Azure Kubernetes Cluster, Cosmos Db, Azure Container Registry, Azure Event Hubs.
You will learn how to install Azure CLI on your development machine
You will learn how to add Dapr to AKS cluster
You will learn how to create Azure Container Registry
You will learn how to build docker images and tag them before pushing to the Azure Container registry.
You will learn various pieces of the Kubernetes Deployment puzzle such as Kubernetes Deployment and Service files.
You will learn how to prepare the Dapr Component Configuration files
You will learn how to deploy the configuration files to Azure Kubernetes Cluster via the command line or power shell script files
You will learn what an ingress controller is and how we can use an ingress controller package to open our deployed microservices to the outside traffic.
Your learning process will be supported by several hands-on homework and suggestions along the way.
Updated:
Added a Second Part to the Course:
The second part contains videos that were initially intended for a separate course but I decided to add them to this course.
This second part shows another way of deploying Dapr (or non-Dapr) microservices apps to Kubernetes Environment by way of a technology called AZURE CONTAINER APPS, which Microsoft started offering recently.
It enables you to deploy microservices apps to Kubernetes Environment without you noticing that your app is running on Kubernetes. That is to say, the deployment to K8s environment becomes a breeze with this technology.
This technology is gaining a high momentum and I wanted you to have a taste of it with another 3 hours or so of content
You will also see how a CI/CD pipeline is setup and run via GitHub Actions
Enjoy the course
Best regards,
Frank Ozz