Node.js Workflow with Minikube and Skaffold

Node.js Workflow with Minikube and Skaffold

2786cdedd6e0eaa34b64b17e1cea81b9?s=128

Brandon Philips

August 14, 2018
Tweet

Transcript

  1. Node.js Workflow with Minikube and Skaffold @brandonphilips

  2. github.com/philips/node-kube

  3. What is a container? Why use containers? Why use Kubernetes?

  4. What is a container? Why use containers? Why use Kubernetes?

  5. Containers 101

  6. you

  7. you as a sw engineer

  8. your with Ada.Text_IO; procedure Hello_World is use Ada.Text_IO; begin Put_Line("Hello,

    world!"); end; #include <stdio.h> int main() { printf("Hello, world!\n"); } package main import "fmt" func main() { fmt.Println("Hello, world!") }
  9. your container image

  10. your /bin/node /opt/app.js /lib/libc

  11. your /bin/node /opt/app.js /lib/libc

  12. your quay.io/me/node-app

  13. your quay.io/me/node-app sha256:d474e8c57737

  14. your d474e8c57737625c Signed By: Alice

  15. Demo w/ docker

  16. What is a container? Why use containers? Why use Kubernetes?

  17. you as an ops engineer

  18. your

  19. your quay.io/me/node-app x3

  20. your quay.io/me/node-app x3

  21. your quay.io/you/search-app x1

  22. your mongodb/mongodb x2

  23. Demo w/ minikube

  24. What is a container? Why use containers? Why use Kubernetes?

  25. Clustering Server Botnets!

  26. 100+ Per Person At the Internet Giants

  27. 100+ Per Person Too many for manual placement

  28. 100+ Per Person Too many for manual placement

  29. 100+ Per Person Too many for manual placement

  30. $ while read host; ssh $host … < hosts ???

  31. $ while read host; ssh $host … < hosts ???

  32. $ while read host; ssh $host … < hosts Problems:

    No monitoring, no state to recover
  33. None
  34. None
  35. $ kubectl run --replicas=3 quay.io/coreos/dex

  36. $ kubectl run --replicas=3 quay.io/coreos/dex Solution: Monitoring, and state on

    computers
  37. $ kubectl run --replicas=3 quay.io/coreos/dex

  38. $ kubectl run --replicas=3 quay.io/coreos/dex

  39. $ kubectl run --replicas=3 quay.io/coreos/dex

  40. None
  41. None
  42. None
  43. ???

  44. ???

  45. Simple cluster operations Secure and Simple API Friendly operational tools

  46. Demo w/ minikube