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

Intro to Operators in Kubernetes

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for Carol Carol
November 30, 2019

Intro to Operators in Kubernetes

Overview do funcionamento da API do Kubernetes. Introdução a criação de operators, casos de uso e um demo de operator.

Avatar for Carol

Carol

November 30, 2019
Tweet

More Decks by Carol

Other Decks in Technology

Transcript

  1. Basic components in Kubernetes Pod: Smallest unit of work -

    the smallest deployable object in the Kubernetes object model - Can hold one or more containers Deployment: Controller for Pods and ReplicaSets - Great for stateless apps, like restful Api - Scaling of the pods StatefulSet: Controller for manage stateful applications - Maintain order, sticky identity, no interchangeability of the Pods 7
  2. 10

  3. 12 Timeline - Kubernetes Custom Resources - CR - Kubernetes

    Custom Resource Definitions - CRD ~ StatefulSet or Deployment - Kubernetes 1.7 - Custom Controllers - Operator SDK - 2018 - CoreOS - RedHat - IBM
  4. Operator - Method of packaging, deploying and managing a Kubernetes

    application - Custom controller that works with custom resources of a certain kind 14
  5. 15 Operator uses In a context of an application, we

    have some Operational knowledge baked in and automated • Handling upgrades from one version to another • Handling complex failure recovery scenarios • Scaling a stateful application up and down • Best suited for complex and stateful services
  6. Custom Controller 18 Reconciliation: • Observe current state • Analyse

    and compare against declared state • Bring current state closer to declared state