~/talk

Using Kubernetes API from Go

Talkat KubeCon + CloudNativeCon North America 2017 · 2017-12-06..12-08· [nodejs]
slides:none on file

Shows how to use client-go to build a real tool that monitors node image storage and alerts on size changes, using trash to vendor dependencies and dapper to build an Ubuntu image; demo compiles, runs outside the cluster with a kubeconfig or in-cluster via service account, and replaces crude polling with informers and ListWatch to get event callbacks and a local cache. RBAC requires creating a ClusterRole (get/watch/list/update) and a ServiceAccount; deployment runs and the image pull triggers the expected alert.

AI-written summary · about

  1. 0:00Introduction
  2. 0:57Why we love Kubernetes
  3. 2:36Kubernetes ecosystem
  4. 3:17Extending Kubernetes
  5. 5:05What is Kubernetes Controller
  6. 6:26How to talk to Kubernetes API
  7. 7:55Why Go
  8. 8:37Build from Scratch
  9. 9:06Tools
  10. 10:32Add Go dependency
  11. 11:39Cluster vs outside of cluster
  12. 14:15Config
  13. 15:22Node function
  14. 16:35Override
  15. 17:37Node polling
  16. 18:32Informer
  17. 19:29namespace
  18. 21:24Shared Informer
  19. 26:15Deploy
  20. 29:50Permissions
  21. 32:03Controller
~/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.