NestJS Kubernetes example
- nestjs
- kubernetes
- skaffold
- postgres
- redis
- minio
- data
- secrets
- volumes
git clone https://github.com/svtslv/nestjs-kubernetes
cd nestjs-kubernetes
- Add local-path-provisioner
kubectl apply -f kubernetes/_local-path-provisioner.yaml
- Create nestjs-kubernetes-namespace
kubectl apply -f kubernetes/01-namespaces.yaml
- Create nestjs-kubernetes-volume
kubectl apply -f kubernetes/02-volumes.yaml
skaffold dev --port-forward
- Update
stringData..dockerconfigjson
->kubernetes/03-secrets.yaml
- Update
...template.containers.image
->kubernetes/08-nestjs.yaml
- Update
build.artifacts.-image
->skaffold.yaml
skaffold dev --port-forward
- 3000 - nestjs
- 3001 - data
- 9000 - minio
- 5432 - postgres
- 6379 - redis
Star it, open http://localhost:3000
change the code and enjoy!
MIT