Skip to content

Sample Node.js/Pal.js/Apollo App using Kubernetes and Kustomize overlays

License

Notifications You must be signed in to change notification settings

Spantree/hello-world-kustomize-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DB

We added sqlite as db provider in schema.prisma you can change it to your custom db provider

after an update your schema.prisma run

> yarn db-dev

this command will save your schema into db

now run

> yarn generate
> yarn dev
  • build prisma client
  • build crud system
  • build client graphql hooks
  • start dev server

Good work

To run the app inside a local Docker engine

> docker-compose up

To build the Docker container

Via Docker Compose:

> docker-compose build

Via Skaffold:

> skaffold build --tag='hello-world-kustomize-k8s-local'

To deploy to K8s cluster

> skaffold run --tail --port-forward

Now the app will be deployed, the deployment will be port-forwarded, and you can access it on http://localhost:3002.