docs/en/solution-templates/microservice/helm-charts-and-kubernetes.md
//[doc-seo]
{
"Description": "Learn how to deploy your ABP microservice solution on Kubernetes using Helm charts, complete with a guide on folder structure and requirements."
}
//[doc-nav]
{
"Next": {
"Name": "Aspire Integration in the Microservice solution",
"Path": "solution-templates/microservice/aspire-integration"
}
}
You must have an ABP Business or a higher license to be able to create a microservice solution.
This document explains how to deploy the microservice solution to a Kubernetes cluster using Helm charts. The microservice solution template includes Helm charts for each microservice, API gateway, application, and infrastructure (Redis, RabbitMQ, etc). You can use these charts to deploy the solution to a Kubernetes cluster. You can see the Helm charts in the etc/helm folder of the solution.
The folder structure of the Helm charts is as follows:
You might have different charts based on the solution template options you selected while creating the solution.
Bookstore solution. The folder name should be the same as your project name.
You can install the solution to a Kubernetes cluster using the install.ps1 script. The script has the following arguments:
-local suffix.-local suffix.Staging.Before running the script, you need to build the Docker images of the solution. You can use the build-all-images.ps1 script to build all Docker images of the solution. Afterwards, make sure that you have a Kubernetes TLS secret for the ingress controller. It is automatically created when you create the solution; however, if you clone the solution from a repository, you need to create it manually. You can use the create-tls-secrets.ps1 script to create the TLS secret. Then you can run the install.ps1 script to install the solution to a Kubernetes cluster.
./build-all-images.ps1
./create-tls-secrets.ps1
./install.ps1
You can uninstall the solution from a Kubernetes cluster using the uninstall.ps1 script. The script has the following arguments:
-local suffix.-local suffix.You can run the uninstall.ps1 script to uninstall the solution from a Kubernetes cluster.
./uninstall.ps1
Additionally, in ABP Studio Kubernetes feature, you can do the same operations more easily. You can use the Install Chart(s) and Uninstall Chart(s) commands to install and uninstall the solution to a Kubernetes cluster. Also, use the Build Docker Image(s) command to build the Docker images of the solution.