Deploying Microservices with Kubernetes

Deploying Microservices with Kubernetes

A talk on Kubernetes given at Codeaholics in Hong Kong on Wednesday June 10th 2015

Note: there's a clear Steve Holmes theme going on, because this was Steve's last Codeaholics before he left Hong Kong.

E60b2dc57668b5662ce3f07781e41710?s=128

Matthew Rudy Jacobs

June 10, 2015
Tweet

Transcript

  1. Deploying Microservices with Kubernetes Matthew Rudy Jacobs @ Codeaholics HK

  2. I’M STILL ADDICTED TO HEROKU 2

  3. KILLER FEATURES:

  4. `git push heroku master` 4 deploy from the command line

  5. `heroku rollback` 5 jump back to an old version in

    an instant
  6. `heroku config` 6 set environment variables on-the-fly which your containers

    instantly see
  7. `heroku run shell` 7 run any code interactively within a

    container
  8. WHAT’S NEXT?

  9. 9

  10. 10

  11. 11

  12. I’M SAYING “KUBERNETES”

  13. None
  14. None
  15. None
  16. None
  17. None
  18. THE CONCEPTS

  19. Gateway Todos Users Auth FROM LAST TIME Riak SQL Mailer

    Search ElasticSearch
  20. Service Service Service Service EVERYTHING’S A “SERVICE” Service Service Service

    Service Service
  21. SERVICES ARE LINKED Service SEARCH_SERVICE_HOST SEARCH_SERVICE_PORT USERS_SERVICE_HOST USERS_SERVICE_PORT GATEWAY_SERVICE_HOST GATEWAY_SERVICE_PORT

    RIAK_SERVICE_HOST RIAK_SERVICE_PORT
  22. A COLLECTION OF PODS Pod Pod Pod Pod :80 :8080

  23. THE PODS CAN BE DIFFERENT Pod Pod Pod Pod :80

    :8080
  24. A POD IS A GROUP OF IMAGES Pod Web :8080

    Worker
  25. SECRETS Pod Web :8080 Worker /etc/secrets Secrets mount

  26. DISTRIBUTED ACROSS NODES Pod Pod Pod Pod Pod Pod Pod

    Pod Pod Pod
  27. AVAILABILITY CONTROLLERS KEEP THEM AVAILABLE Pod Pod Pod Replicas =

    3
  28. CRASHED POD Pod Crash Pod Replicas = 3 Pod

  29. SCALE Pod Pod Pod Replicas = 7 Pod Pod Pod

    Pod
  30. ROLLING UPDATE Pod V1 Pod V1 Pod V1 Pod V2

    V1 Controller V2 Controller Create a New Controller And Resize until they swap over
  31. None
  32. LIVE DEMO

  33. THANKS STEVE