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

Kubernetes Demystified

Kubernetes Demystified

“When you look into it, Kubernetes isn’t that complicated after all”

Wojtek Siudzinski

May 15, 2018
Tweet

More Decks by Wojtek Siudzinski

Other Decks in Programming

Transcript

  1. WHAT IS KUBERNETES? “I NEED A CONTAINER RUNNING NGINX” Pick

    feasible nodes Update their desired state Get the current state
  2. WHAT IS KUBERNETES? “I NEED A CONTAINER RUNNING NGINX” Pick

    feasible nodes Update their desired state Get the current state
  3. HOW DO I SET THE DESIRED STATE? apiVersion: v1 kind:

    Pod metadata: name: nginx spec: containers: - name: nginx image: nginx:1.7.9 ports: - containerPort: 80
  4. WHAT IS KUBERNETES? “I NEED A CONTAINER RUNNING NGINX” Pick

    feasible nodes Update their desired state Get the current state
  5. WHAT IS KUBERNETES? “I NEED A CONTAINER RUNNING NGINX” Pick

    feasible nodes Update their desired state Get the current state
  6. ETCD Distributed key/value store Like a directory tree (/etc) JSON/REST

    API Uses a Discovery URL Needs at least 3 nodes for consensus
  7. WHAT IS KUBERNETES? “I NEED A CONTAINER RUNNING NGINX” Pick

    feasible nodes Update their desired state Get the current state
  8. WHAT IS KUBERNETES? “I NEED A CONTAINER RUNNING NGINX” Pick

    feasible nodes Update their desired state Get the current state