
Helm Releaser and .NET Aspire Intro
Goal
Create a .NET Aspire demo application and containerize it for deployment to our Kubernetes cluster.
Overview
.NET Aspire is an opinionated, cloud ready stack for building observable, production ready, distributed applications. .NET Aspire is delivered through a collection of NuGet packages that handle specific cloud-native concerns. Cloud-native apps often consist of small, interconnected pieces or microservices rather than a single, monolithic code base. Cloud-native apps generally consume a large number of services, such as databases, messaging, and caching.
.NET Aspire is a great starting point for learning about how microservices operate within the .NET ecosystem. We will follow the .NET Aspire install and setup process, create a sample Aspire app, and then build, containerize, and deploy the sample app via Aspir8.
Instructions
- Follow the steps in Build your first .NET Aspire solution - .NET Aspire | Microsoft Learn
- Then, commit your project to github and follow the steps in helm/chart-releaser: Hosting Helm Charts via GitHub Pages and Releases depending on whether your repo is public or private.
Next Steps
Once you feel comfortable with the basics of .NET aspire and the helm chart releaser, you should try to build upon the demo and create your own app to be deployed via flux. I made a small application to show how to configure CI/CD with Aspir8 and github actions.
See Setup CI/CD in .NET Aspire with Github Actions for details.
References
- .NET Aspire
- Aspir8
- Build your first .NET Aspire solution - .NET Aspire | Microsoft Learn
- helm/chart-releaser: Hosting Helm Charts via GitHub Pages and Releases