Distributed Systems Practice Notes

Docker and Containers - Kubernetes in 5 minutes

November 03, 2018

Components of Kubernetes

K8s Cluster Services

  • Desired State Management

Feed the K8s cluster services a specific configuration (YAML file), and it will be up to the cluster services to go out and run that configuration in the infrastructure to your desired state.

  • YAML Deployment File

    • Pod configuration: the smallest unit of deployment in K8s with container images specified
    • Replicas: the amount of pods you want to run

Workers

Container hosts that has a kubelet process that communicates with the cluster services.

Use Case

  • What if a worker node is dead and the running configuration cannot match the deployment configuration file?

The situation would be eventually found out by K8s cluster services, and a new deployment will be scheduled.


Warren

Written by Warren who studies distributed systems at George Washington University. You might wanna follow him on Github