Image for post
Image for post

In this tutorial we’ll be running a federated GraphQL (gql) server with Kubernetes (k8s) on Docker on your local machine. We’ll be deploying the Apollo Federation Demo project. For those who would rather skip ahead to the finished product you can find my altered clone of the project here.

Prerequisites:

  • Create a DockerHub account (you could also use my Docker images here)
  • Install Docker
  • Enable k8s with Docker by clicking on the Docker icon in the system tray, click on “Preferences”, then check the checkbox “Enable Kubernetes”.

What is Apollo Federation?

Apollo Federation is Apollo’s answer for implementing gql in a microservice architecture. It’s designed to replace schema stitching and solve pain points such as coordination, separation of concerns, and brittle gateway code. …

About

Timothy Miller

Software Developer and DevOps Engineer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store