APIStrat 2016 | Effortless microservices in production with Kubernetes (Ken Wronkiewicz)

APIStrat 2016 | Effortless microservices in production with Kubernetes (Ken Wronkiewicz)

With the Amazon API Gateway and Amazon Lambda, you can run a complete simple microservice in the cloud with no operations. But what if you are running a custom database or a sophisticated set of workflow services? Can you run that with as-close-to-NoOps-as-possible?

In this presentation, Ken Wronkiewicz will demonstrate how to run an entire stack (from database to load balancer) inside of Kubernetes using the newly merged Ingress resources as an API gateway, how persistent storage works and which database engines best fit into the Kubernetes environment, and how to go from nothing to a chaos-monkey-ready self-healing infrastructure in weeks.

Transcript

  1. 4.

    @wirehead - 4 Kubernetes is the minimum set of tools

    and abstractions to build a self-healing system.
  2. 7.

    @wirehead - 7 Node 1 Node 2 ES Data ES

    Data ES Master ES Master ES Data
  3. 12.

    @wirehead - 12 LoadBalancer: •  L3 service •  Doesn’t need

    to be HTTP •  Pretty much complete •  Uses the cloud infrastructure’s load balancer Ingress: •  L7 HTTP service •  Basically nginx or haproxy run in an orchestrated fashion •  Under heavy development and evolution – Not yet awesome •  Can act as an API gateway to multiple internal services Ingress versus LoadBalancer
  4. 22.
  5. 24.

    @wirehead - 24 Works Not a good idea •  ElasticSearch

    •  Cassandra •  Galera •  Other Asynchronous replication SQL databases
  6. 26.

    @wirehead - 26 Google Container Engine AWS or other clouds

    On your own hardware •  A few clicks to fire up a cluster •  Part of Google’s Cloud offering •  You need to install it •  Still a mostly seamless experiences •  In production, on your own hardware •  On your laptop with minikube
  7. 27.

    @wirehead - 27 Storage Managed A pile of microservices nicely

    orchestrated Ingress / Load Balancers exposing your services