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

Kubernetes in Production

Kubernetes in Production

How Kubernetes makes it easy for Movio to deploy hundreds of microservices.

Avatar for Pavel Jelinek

Pavel Jelinek

October 03, 2016
Tweet

Other Decks in Technology

Transcript

  1. Kubernetes • Replicas without worrying about ports • Built-in load

    balancing • HA • Health-checks • Scheduling based on resource requirements • Volumes and configurations mounting • Central logging • Basic resource monitoring • Better resource utilisation • Pluggable parts
  2. Concepts • Pod - one or more containers • Deployment,

    Daemon set, Pet Set - scaling of Pods • Service - resolvable name, load balancing • ConfigMap, Volume, Secret - Extended Docker volumes
  3. Examples • Create Nginx Deployment + Service • Mount ConfigMap

    with server configuration • Expose Service publicly ◦ through API server ◦ externalIPs ◦ nodePort (single node/all nodes) ◦ loadBalancer • Give them public url • Make it scale with a deployment • Rolling update of all replicas while live
  4. Best Practices • Smaller containers are better • Log on

    container's stdout preferably in json • Test and know your resource requirements • Be aware of node sizes in the cluster • Stateless please • If not stateless then clustered please • Must handle unexpected immediate restarts
  5. Examples 2 • Exec • Logs, Central Logging • Add

    a node • Kill a node? • Monitoring • UI