This project demonstrates how to use BullMQ with Nest.js and deploy it to a Kubernetes cluster using Helm.
- Docker
- Node.js
- Nest.js
- Helm
- Kubernetes cluster
- Clone this repository:
git clone https://github.com/<username>/<repository>.git
- Install the dependencies:
cd <repository>
npm install
- Build the Docker image:
docker build -t <docker-username>/<docker-image>:<tag> .```
- Push the Docker image to Docker Hub:
docker push <docker-username>/<docker-image>:<tag>
-
Create a Kubernetes secret for your Docker registry:
kubectl create secret docker-registry regcred --docker-server=https://index.docker.io/v1/ --docker-username=<docker-username> --docker-password=<docker-password> --docker-email=<docker-email>
-
Create a Helm chart:
helm create <chart-name>
-
Update the Helm chart with your application's configuration:
helm install <release-name> <chart-name> --set image.repository=<docker-username>/<docker-image>,image.tag=<tag>,image.pullPolicy=Always,imagePullSecrets[0].name=regcred
Replace , , , , , and with your own values.
-
Verify that your application is running in your Kubernetes cluster:
kubectl get pods
Replace and with the IP address and NodePort of your Kubernetes service.
Conclusion This project demonstrates how to use BullMQ with Nest.js and deploy it to a Kubernetes cluster using Helm. By following the steps in this README.md file, you should be able to build, push, and deploy your own Nest.js application with BullMQ to a Kubernetes cluster using Helm.
Please replace <username>, <repository>, <docker-username>, <docker-image>, <tag>, <secret-name>, <docker-server>, <docker-username>, <docker-password>, <docker-email>, <chart-name>, <release-name>, <kubernetes-cluster-ip>, and <node-port> with your own values.