Skip to content

wundergraph/kubernetes-deployment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WunderGraph & Kubernetes

Run WunderGraph on any Kubernetes cluster. Best Practices included!

Prerequisites

  • Running kubernetes cluster (OKE, GKE, AKE or minikube)
  • kbld for image building, pushing, and resolution
  • kubectl to interact with your cluster

Project Structure

.
└── app/
    ├── .wundergraph/
    │   ├── generated
    │   ├── wundergraph.config.ts
    │   ├── wundergraph.server.ts
    │   └── wundergraph.operations.ts
    ├── Dockerfile
    ├── .dockerignore
    └── package.json

Getting Started

Deploy your WunderGraph application to your kubernetes cluster. The application is exposed via a service of type load-balancer which makes your application accessible to the public internet.

Before you can deploy your WunderNode you need to provide your own docker repository. Replace docker.io/wundergraph/kubernetes-demo in ./k8s/build-push.yaml with your own repository and run:

make deploy

This command will build and push a production ready docker image to the registry and deploy all kubernetes files under ./k8s. We use the tool kbld for that seeamless integration.

Access your WunderGraph

# Checkout the ip in "LoadBalancer Ingress"
make get-ip
curl 'http://${IP}/operations/Hello' \
    --header 'Content-Type: application/json'

Development

Start your local development environment.

make dev

Checkout the makefile for documentation and other commands.

About

Run WunderGraph on any Kubernetes cluster

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published