Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.74 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.74 KB

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.