~/talk

Writing kube controllers for everyone

Talkat DevConf.CZ 2019 · 2019-01-25..01-27· [kubernetes, devops-and-delivery]
slides:none on file

Explains how to build a real Kubernetes controller using client-go primitives: workqueue, shared informers with listers, and rate‑limiting queues; shows a CronJob controller (~400 lines) and argues it’s a poor exemplar while Job controller is cleaner. Covers the actual control loop: get key, fetch from cache, deep‑copy before mutation, perform work, requeue on error with backoff, forget on success. Lists 11 rules controllers must follow (one item at a time, no ordering assumptions, use owner references, wait for caches, etc.).

AI-written summary · about

  1. 0:00Start
  2. 3:59Where do I start?
  3. 17:07Operate on one item at a time
  4. 17:23Random ordering between resources
  5. 18:36Level driven, not edge driven
  6. 19:06Use Shared Informers
  7. 20:05Never mutate original objects
  8. 20:54There are other actors in the system
  9. 22:21Use ObservedGeneration when possible
  10. 22:46Consider using owner references
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.