Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/svtslv/nestjs-kubernetes
NestJS Kubernetes example
https://github.com/svtslv/nestjs-kubernetes
kubernetes minio nestjs postgres redis skaffold
Last synced: 3 months ago
JSON representation
NestJS Kubernetes example
- Host: GitHub
- URL: https://github.com/svtslv/nestjs-kubernetes
- Owner: svtslv
- Created: 2020-03-10T17:24:45.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-03-28T17:28:19.000Z (7 months ago)
- Last Synced: 2024-07-01T00:24:30.376Z (4 months ago)
- Topics: kubernetes, minio, nestjs, postgres, redis, skaffold
- Language: TypeScript
- Homepage:
- Size: 1.27 MB
- Stars: 104
- Watchers: 3
- Forks: 14
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NestJS Kubernetes
NestJS Kubernetes example
## Features
- nestjs
- kubernetes
- skaffold
- postgres
- redis
- minio
- data
- secrets
- volumes## How to use
```sh
git clone https://github.com/svtslv/nestjs-kubernetes
``````sh
cd nestjs-kubernetes
```### Create namespace and volume
- Add local-path-provisioner
```sh
kubectl apply -f kubernetes/_local-path-provisioner.yaml
```- Create nestjs-kubernetes-namespace
```sh
kubectl apply -f kubernetes/01-namespaces.yaml
```- Create nestjs-kubernetes-volume
```sh
kubectl apply -f kubernetes/02-volumes.yaml
```### Run on local kubernetes
```sh
skaffold dev --port-forward
```### Run on remote kubernetes
- Update `stringData..dockerconfigjson` -> `kubernetes/03-secrets.yaml`
- Update `...template.containers.image` -> `kubernetes/08-nestjs.yaml`
- Update `build.artifacts.-image` -> `skaffold.yaml````sh
skaffold dev --port-forward
```### Port Forward
- 3000 - nestjs
- 3001 - data
- 9000 - minio
- 5432 - postgres
- 6379 - redisStar it, open `http://localhost:3000` change the code and enjoy!
## License
MIT