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

Introduction to Kubernetes

Introduction to Kubernetes

In this talked I tried to explain what is Kubernetes as well as some of the many Kubernetes Objects that are available for us.

Tony Messias

July 13, 2018
Tweet

More Decks by Tony Messias

Other Decks in Technology

Transcript

  1. The Docker Ecosystem • Docker Engine • Docker CLI •

    Kitematic • Registry • Docker Hub • Docker Compose
  2. What is K8s? “(It) is an open-source system for automating

    deployment, scaling, and management of containerized applications.” (https://kubernetes.io/) “Kubernetes is a powerful open-source system, initially developed by Google, for managing containerized applications in a clustered environment. It aims to provide better ways of managing related, distributed components and services across varied infrastructure.” (An Introduction to Kubernetes, by Digital Ocean)
  3. Kubernetes Objects 1/3 It is a “record of intent”. Thru

    them, you defined the desired state of your cluster: • which services are running and on which nodes • resources available to the applications running • policies of the behavior of these applications (restarts, upgrades, fault-tolerance) Once you create the Object, K8s will make sure what you desired to run is always running. source
  4. Kubernetes Objects 2/3 You create, modify or change Objects thru

    the K8s API. We use the kubectl CLI, which will talk to the API server for us. We describe an Object using Yaml. source
  5. POD

  6. Services POD ip: 170.1.10.101 label: name=webapp nginx php-fpm POD ip:

    170.1.10.102 label: name=webapp nginx php-fpm Internet Service ip: 170.1.10.103 selector: name=webapp
  7. Services POD ip: 170.1.10.101 label: name=webapp nginx php-fpm Internet Service

    ip: 170.1.10.103 selector: name=webapp POD ip: 170.1.10.102 label: name=webapp nginx php-fpm POD ip: 170.1.10.104 label: name=webapp nginx php-fpm
  8. Services POD ip: 170.1.10.101 label: name=webapp nginx php-fpm Internet Service

    ip: 170.1.10.103 selector: name=webapp POD ip: 170.1.10.102 label: name=webapp nginx php-fpm POD ip: 170.1.10.104 label: name=webapp nginx php-fpm
  9. Services POD ip: 170.1.10.101 label: name=webapp nginx php-fpm Internet Service

    ip: 170.1.10.103 selector: name=webapp POD ip: 170.1.10.102 label: name=webapp nginx php-fpm POD ip: 170.1.10.104 label: name=webapp nginx php-fpm
  10. Services POD ip: 170.1.10.101 label: name=webapp nginx php-fpm Internet Service

    ip: 170.1.10.103 selector: name=webapp POD ip: 170.1.10.102 label: name=webapp nginx php-fpm POD ip: 170.1.10.104 label: name=webapp nginx php-fpm