Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

NestJS Kubernetes example

NotificationsYou must be signed in to change notification settings

svtslv/nestjs-kubernetes

Repository files navigation

NestJS Kubernetes example

Features

  • nestjs
  • kubernetes
  • skaffold
  • postgres
  • redis
  • minio
  • data
  • secrets
  • volumes

How to use

git clone https://github.com/svtslv/nestjs-kubernetes
cd nestjs-kubernetes

Create namespace and volume

  • 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

Run on local kubernetes

skaffold dev --port-forward

Run on remote kubernetes

  • UpdatestringData..dockerconfigjson ->kubernetes/03-secrets.yaml
  • Update...template.containers.image ->kubernetes/08-nestjs.yaml
  • Updatebuild.artifacts.-image ->skaffold.yaml
skaffold dev --port-forward

Port Forward

  • 3000 - nestjs
  • 3001 - data
  • 9000 - minio
  • 5432 - postgres
  • 6379 - redis

Star it, openhttp://localhost:3000 change the code and enjoy!

License

MIT

About

NestJS Kubernetes example

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp