Fireship · @fireship

Kubernetes Explained in 100 Seconds

Uploaded September 24, 2020 · Length 2:07

Kubernetes Explained in 100 Seconds

Summary

kubernetes explained as a tool for automating containerized workloads in the cloud with orchestration and scaling.

  • kubernetes
  • containerization
  • cloud computing
  • orchestration
  • scaling

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    kubernetes a tool for managing and

  2. 0:02

    automating containerized workloads in

  3. 0:03

    the cloud

  4. 0:04

    imagine you have an orchestra think of

  5. 0:05

    each individual musician as a docker

  6. 0:07

    container

  7. 0:08

    to create beautiful music we need a

  8. 0:09

    conductor to manage the musicians and

  9. 0:11

    set the tempo

  10. 0:12

    now imagine the conductor as kubernetes

  11. 0:14

    and the orchestra as an app like

  12. 0:16

    robinhood when the markets are closed an

  13. 0:18

    app like robinhood

  14. 0:18

    isn't doing much but when they open it

  15. 0:20

    needs to fulfill millions of trades for

  16. 0:22

    overpriced stocks like tesla and shopify

  17. 0:24

    kubernetes is the tool that orchestrates

  18. 0:25

    the infrastructure to handle the

  19. 0:27

    changing workload it can scale

  20. 0:28

    containers across multiple

  21. 0:30

    machines and if one fails it knows how

  22. 0:31

    to replace it with a new one a system

  23. 0:33

    deployed on kubernetes is known as a

  24. 0:35

    cluster

  25. 0:36

    the brain of the operation is known as

  26. 0:37

    the control plane it exposes an api

  27. 0:39

    server that can handle both internal and

  28. 0:41

    external requests to manage the cluster

  29. 0:43

    it also contains its own key value

  30. 0:45

    database called

  31. 0:45

    etcd used to store important information

  32. 0:47

    about running the cluster

  33. 0:49

    what it's managing is one or more worker

  34. 0:50

    machines called nodes

  35. 0:52

    when you hear node think of a machine

  36. 0:54

    each node is running something called a

  37. 0:55

    cubelet

  38. 0:56

    which is a tiny application that runs on

  39. 0:57

    the machine to communicate back with the

  40. 0:59

    main control plane mother ship

  41. 1:01

    inside of each node we have multiple

  42. 1:02

    pods which is the smallest deployable

  43. 1:04

    unit in kubernetes

  44. 1:05

    when you hear pod think of a pot of

  45. 1:07

    whales or containers running together

  46. 1:09

    as the workload increases kubernetes can

  47. 1:11

    automatically scale horizontally by

  48. 1:13

    adding more nodes to the cluster

  49. 1:14

    in the process it takes care of

  50. 1:16

    complicated things like networking

  51. 1:17

    secret management persistent storage and

  52. 1:19

    so on

  53. 1:20

    it's designed for high availability and

  54. 1:22

    one way it achieves that is by

  55. 1:23

    maintaining a replica set which is just

  56. 1:25

    a set of running pods or containers

  57. 1:27

    ready to go

  58. 1:28

    at any given time as a developer you

  59. 1:30

    define objects in yaml that describe the

  60. 1:32

    desired state of your cluster

  61. 1:33

    for example we might have an nginx

  62. 1:35

    deployment that has a replica set with

  63. 1:37

    three pods

  64. 1:38

    in the spec field we can define exactly

  65. 1:39

    how it should behave like its containers

  66. 1:41

    volumes ports and so on you can then

  67. 1:43

    take this configuration and use it to

  68. 1:45

    provision and scale containers

  69. 1:47

    automatically and ensure that they're

  70. 1:48

    always up and running and healthy

  71. 1:50

    this has been kubernetes in 100 seconds

  72. 1:52

    like and subscribe for more and you can

  73. 1:54

    support my work by sponsoring me on

  74. 1:55

    github or by becoming a pro member at

  75. 1:57

    fireship io for even more content

  76. 1:59

    thanks for watching and i will see you