This repository provides an example of deploying a NestJS application in a Kubernetes environment using Minikube.
- Kubernetes Deployment: Example deployment configuration for a NestJS application.
- Minikube: Local Kubernetes setup for testing and development.
- Docker Integration: Dockerfile included for building the NestJS application image.
- Minikube
- kubectl
- Docker
-
Build Docker image:
docker build -t nestjs-mariadb-minikube-example:latest .
-
Setting Environment
eval $(minikube -p minikube docker-env)
-
Start Minikube:
minikube start
-
Deploy
kubectl apply -f k8s/
-
Application status check
kubectl get pods kubectl get services
-
Minikube tunneling
minikube tunnel
-
Access to service
curl http://127.0.0.1:80