Coder Social home page Coder Social logo

covr's Introduction

Covr GRPC K8S

Deploy a simple GRPC service to Kubernetes with Kops and Terraform.

Setup

The project requires AWS credentials to be set in the env.list file.

Demo

To run a demo that deploys the application and verifies the endpoints:

make demo_up

When the script exits, the demo has finished successfully. To tear down the infrastructure, just run:

make demo_down

Project Details

The entire project can be run from within the provided docker container. You can drop into a shell with:

make attach

How the demo works

  1. Run the bootstrap Terraform project to create an S3 bucket for kops.
  2. Run kops to create a small k8s cluster (3 masters, 3 workers).
  3. Wait for the k8s cluster to be in a valid state.
  4. Run the main Terraform project to create SSL certs and add a TLS endpoint to the service's NLB.
  5. Run a script to validate both TCP and TLS endpoints.

Notes

  • The version of Kubernetes (1.13) was chosen because it is the latest version supported by an official kops release.
  • I chose to use a self-signed certificate which lead to a few challenges:
    1. Kubernetes 1.13 does not support TLS endpoints on NLB's (This has been added in 1.15). To get around this I add the endpoint within Terraform.
    2. The grpcc CLI tool doesn't work with self-signed certs, so I switched to evans.

covr's People

Contributors

ameng avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.