Welcome to the Aspire & Aspir8 Microservices Tutorial repository. This repository contains the necessary code and resources to guide you through setting up and deploying microservices in a Kubernetes environment using Aspire & Aspir8. It's designed to simplify the process of managing container orchestration and service discovery without the need for complex Docker or YAML configurations.
Before starting with the tutorial, ensure you have the following tools installed:
- Rancher Desktop by SUSE - Download Rancher Desktop
- .NET 8 - Suitable for Linux, macOS, and Windows. Download .NET 8.0
- Aspire Tooling for .NET - Learn about it on Microsoft Learn
- Aspir8 - Necessary for deployment processes. Installation Guide
This project includes:
- App Host: The core of the project, responsible for initiating and managing microservices.
- Service Defaults: Extension methods for integrating features like Prometheus, logging, health checks, and APM.
- Microservice 1: A simple service demonstrating basic functionality.
- Microservice 2: A secondary service showcasing additional routing capabilities.
- Configured with YARP to demonstrate dynamic routing to different microservices.
- Go into app host project and run
dotnet watch
ordotnet run