~/talk

Writing a Custom Controller: Extending the Functionality of Your Cluster [I]

Talkat CloudNativeCon + KubeCon Europe 2017 · on Thursday, 2017-03-30· at 15:40· C 01· [kubernetes, developer-experience]
links:none on file
slides:none on file

Shows how to build a working node reboot operator composed of a DaemonSet agent (watches its node) and a single-instance Deployment controller (replicas=1) that coordinates rolling reboots with a configurable max-unavailable (example uses 1). Uses client-go v2, informers with field selectors and a local cache, and annotations like reboot-needed and reboot-now to communicate desired and actual state. Covers safe patterns: copy cache objects before mutating, wait for cache sync, and links to a functional GitHub demo.

AI-written summary · about

  1. 0:00Intro
  2. 0:23What is a controller?
  3. 1:45How can we use controllers?
  4. 2:40Building an example We will build a Node Reboot Operator
  5. 5:07Writing a custom controller
  6. 6:48Reboot Agent - Determining "self" Downward API
  7. 8:07Kubernetes client
  8. 9:56Using the client Re-listing from API can become expensive
  9. 10:44Creating an Informer
  10. 13:53Pseudo Reboot Agent
  11. 15:03Pseudo Reboot Controller
  12. 18:57Copy cache object before modifying
  13. 19:13Wait for cache to sync
  14. 21:48Third Party Resources • Needs a presentation unto itself
  15. 24:28Helpful Resources
~/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.