Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Kubernetes, behind the buzzwords

Alex Boten
January 10, 2019

Kubernetes, behind the buzzwords

Many articles have been written about Kubernetes but what is it really? This talk presented at January's Squamish Technology meetup took a look at what Kubernetes is, and some of the building blocks behind K8s.

Alex Boten

January 10, 2019
Tweet

More Decks by Alex Boten

Other Decks in Technology

Transcript

  1. B E H I N D T H E K

    U B E R N E T E S B U Z Z W O R D S
  2. W H AT I S K U B E R

    N E T E S ?
  3. W H AT I S K U B E R

    N E T E S ? K U B E R N E T E S I S A N O P E N - S O U R C E C O N TA I N E R - O R C H E S T R AT O R
  4. W H AT I S A C O N TA

    I N E R ? A N O B J E C T T H AT C A N B E U S E D T O H O L D O R T R A N S P O R T S O M E T H I N G
  5. W H AT I S A C O N TA

    I N E R ? A N O B J E C T T H AT C A N B E U S E D T O H O L D O R T R A N S P O R T S O M E T H I N G
  6. W H AT I S K U B E R

    N E T E S ? K U B E R N E T E S I S A N O P E N - S O U R C E O R C H E S T R AT O R O F R E C E P TA C L E S T H AT C A N C O N TA I N O B J E C T S
  7. W H AT I S A N O R C

    H E S T R AT O R ?
  8. W H AT I S A N O R C

    H E S T R AT O R ? A N O R C H E S T R AT O R I S A T R A I N E D M U S I C A L P R O F E S S I O N A L W H O A S S I G N S I N S T R U M E N T S F R O M A N O R C H E S T R A O R O T H E R M U S I C A L E N S E M B L E T O A P I E C E O F M U S I C W R I T T E N B Y A C O M P O S E R , O R W H O A D A P T S M U S I C C O M P O S E D F O R A N O T H E R M E D I U M F O R A N O R C H E S T R A .
  9. W H AT I S A N O R C

    H E S T R AT O R ? A N O R C H E S T R AT O R I S A T R A I N E D M U S I C A L P R O F E S S I O N A L W H O A S S I G N S I N S T R U M E N T S F R O M A N O R C H E S T R A O R O T H E R M U S I C A L E N S E M B L E T O A P I E C E O F M U S I C W R I T T E N B Y A C O M P O S E R , O R W H O A D A P T S M U S I C C O M P O S E D F O R A N O T H E R M E D I U M F O R A N O R C H E S T R A .
  10. W H AT I S K U B E R

    N E T E S ? K U B E R N E T E S I S A N O P E N - S O U R C E T R A I N E D M U S I C A L P R O F E S S I O N A L W H O A S S I G N S R E C E P TA C L E S T H AT C A N C O N TA I N O B J E C T S T O M E M B E R S O F A N O R C H E S T R A
  11. W H AT I S K U B E R

    N E T E S ?
  12. W H AT I S K U B E R

    N E T E S ? K U B E R N E T E S I S A N O P E N S O U R C E S Y S T E M F O R M A N A G I N G C O N TA I N E R I Z E D A P P L I C AT I O N S A C R O S S M U LT I P L E H O S T S , P R O V I D I N G B A S I C M E C H A N I S M S F O R D E P L O Y M E N T, M A I N T E N A N C E , A N D S C A L I N G O F A P P L I C AT I O N S .
  13. K U B E R N E T E S

    • released in June 2014 by Google, based on internal system Borg • strong community support and active development • industry-wide adoption • rich eco-system
  14. W H O U S E S K U B

    E R N E T E S ?
  15. G E T T I N G S TA R

    T E D brew install cask minikube brew install kubernetes-cli minikube start
  16. S I D E N O T E S k8s

    = a numeronym (number-based word) of kubernetes. Others include: i18n, o11y, l10n
  17. W H AT H A P P E N E

    D L A P T O P M I N I K U B E V M ( K 8 S M A S T E R ) D O C K E R K 8 S A P I S E R V E R K 8 S S C H E D U L E R K 8 S C O R E D N S E T C D
  18. K 8 S B A S I C S •

    Node • Pod • Deployment • Service
  19. K 8 S B A S I C S •

    Node - represents a worker capable of running containers • Pod - is the unit of work in kubernetes. A pod represents an application via one or more containers • Deployment - allows users to deploy pods and a policy for rolling upgrades to those applications • Service - an abstraction to specify policy and method of accessing pods
  20. K 8 S B A S I C S •

    Node - represents a worker capable of running containers • Pod - is the unit of work in kubernetes. A pod represents an application via one or more containers • Deployment - allows users to deploy pods and a policy for rolling upgrades to those applications • Service - an abstraction to specify policy and method of accessing pods
  21. K 8 S B A S I C S •

    Node - represents a worker capable of running containers • Pod - is the unit of work in kubernetes. A pod represents an application via one or more containers • Deployment - allows users to deploy pods and a policy for rolling upgrades to those pods • Service - an abstraction to specify policy and method of accessing pods
  22. K 8 S B A S I C S •

    Node - represents a worker capable of running containers • Pod - is the unit of work in kubernetes. A pod represents an application via one or more containers • Deployment - allows users to deploy pods and a policy for rolling upgrades to those pods • Service - an abstraction to specify policy and method of accessing pods
  23. S I D E N O T E S alias

    k=kubectl # this will save you LOTS of typing
  24. D E M O # 2 T E S T

    I N G T H E D E M O G O D S
  25. W H AT H A P P E N E

    D M I N I K U B E V M ( K 8 S M A S T E R ) P O D G O A L S - P O D
  26. W H AT H A P P E N E

    D M I N I K U B E V M ( K 8 S M A S T E R ) P O D G O A L S - P O D P O D G O A L S - P O D D E P L O Y M E N T
  27. W H AT H A P P E N E

    D M I N I K U B E V M ( K 8 S M A S T E R ) P O D G O A L S - P O D P O D G O A L S - P O D D E P L O Y M E N T S E R V I C E
  28. M I N I K U B E V M

    ( K 8 S M A S T E R ) D E P L O Y M E N T W H AT H A P P E N E D P O D G O A L S - P O D : 2 0 1 8 P O D G O A L S - P O D : 2 0 1 8 P O D G O A L S - P O D : 2 0 1 9
  29. M I N I K U B E V M

    ( K 8 S M A S T E R ) D E P L O Y M E N T W H AT H A P P E N E D P O D G O A L S - P O D : 2 0 1 8 P O D G O A L S - P O D : 2 0 1 8 P O D G O A L S - P O D : 2 0 1 9
  30. M I N I K U B E V M

    ( K 8 S M A S T E R ) D E P L O Y M E N T W H AT H A P P E N E D P O D G O A L S - P O D : 2 0 1 8 P O D G O A L S - P O D : 2 0 1 9 P O D G O A L S - P O D : 2 0 1 9
  31. M I N I K U B E V M

    ( K 8 S M A S T E R ) D E P L O Y M E N T W H AT H A P P E N E D P O D G O A L S - P O D : 2 0 1 8 P O D G O A L S - P O D : 2 0 1 9 P O D G O A L S - P O D : 2 0 1 9
  32. S C R AT C H I N G T

    H E S U R FA C E • ReplicaSet • DaemonSet • Job • Volume • Namespace
  33. S O M E B E N E F I

    T S • declarative application deployment • manages deployments across a cluster of machines • cloud agnostic • extensible
  34. A LT E R N AT I V E S

    • Docker swarm • Hashicorp Nomad • OpenStack
  35. M A N A G E D K U B

    E R N E T E S
  36. Q U E S T I O N S ?

    A L E X B O T E N @ C O D E B O T E N