Deploy to a Kubernetes cluster using Helm
#
Deploy Amplication to a Kubernetes cluster using HelmFollow this article to deploy an Amplication server to a Kubernetes cluster using Helm.
The article focuses on deployment on a local server for testing and development purposes, but the same method can be implemented for a production environment.
#
PrerequisitesBefore you start you need to install the following.
- Kubernetes Cluster (We will be using the Docker Desktop K8s implementation)
- Helm
- Kubectl
Below we will go through each install step individually.
#
Install Kubernetes clusterThere are a few ways to install a Kubernetes cluster locally, in our example we'll be using Docker's Kubernetes Plugin (Docker Desktop). However there are a few other Open Source alternatives (e.g. Kind and Minikube), if you prefer to install a different K8s cluster, you can reference the list here here.
After you've finished installing Docker Desktop you can now enable the Kubernetes Plugin by going to the Kubernetes tab in the Docker Desktop settings page and check Enable Kubernetes
#
Install Helm and KubectlYou will also need Helm and Kubectl installed.
#
Installing Amplication Helm ChartOpen the terminal and Pull down Amplication then go to ./amplication/chart/amplication
directory.
git clone https://github.com/amplication/amplication.git
cd amplication/chart/amplication
The amplication chart is shipped with a set of defaults that should get you running without any additional configuration. Run this command
Amplication Helm chart includes:
- bitnami/postgresql server
- Migration job for Amplication server.
- A Docker Registry and Docker builder using https://hub.docker.com/_/docker, and a volume for the registry (docker image storage).
- The Amplication server and a volume for
/artifacts
- The amplication scheduler
You can monitor the whole list of resources by running the following:
#
Port-ForwardingThe final step is port-forwarding the amplication-app port to your localhost so you can access it on a browser client.
Now you can access amplication locally on your browser at http://localhost:3000
👍