Watching Kubernetes custom resources with dynamic informers & golang

  Рет қаралды 2,196

Cloud Native Skunkworks

Cloud Native Skunkworks

Күн бұрын

Written your first golang operator? Monitoring your resources with GETS/Lists and reconciles? Check out this video on how to use the event stream to optimise the way you receive updates in cluster.
Complete with walk-through implementation and advice!
Let me know what you think.
Links: github.com/cloud-native-skunk...
Timecodes:
0:00 Introduction
1:58 client-go, reflection & informers
3:28 Project setup
8:14 Targetting your custom resource
10:10 Informer factory
11:30 Adding event handlers
12:57 Downside of auto importing...
14:46 Detecting an updated custom resource
15:19 Casting types
16:37 Conclusion

Пікірлер: 9
@EtienneMcDuff
@EtienneMcDuff Жыл бұрын
Thank you! this is much better than using a regular informer and having to write a rest client for your custom resource.
@dirien
@dirien Жыл бұрын
Great video, as usual! The dynamic informer is interessting and I need to try it out on the next k8s controller I write!
@CloudNativeSkunkworks
@CloudNativeSkunkworks Жыл бұрын
Thanks Engin!
@karanbir7667
@karanbir7667 Жыл бұрын
Great content Alex 💯, mind if I ask which keyboard you using? Really digging the typing sound.
@CloudNativeSkunkworks
@CloudNativeSkunkworks Жыл бұрын
Thanks! its a happy hacking keyboard 2
@BhargavTheertham
@BhargavTheertham Жыл бұрын
Hi , for the handlers defined, does it show the updates for all the custom resources of that type? What if I am interested in watching updates for one specific custom resource (ie. one instance of a CRD, where I could have several of them )
@CloudNativeSkunkworks
@CloudNativeSkunkworks Жыл бұрын
Check out the links to the repo github.com/cloud-native-skunkworks/dynamic-informer
@punasusi6791
@punasusi6791 Жыл бұрын
Link doesn't work, is it private repo?
@CloudNativeSkunkworks
@CloudNativeSkunkworks Жыл бұрын
@@punasusi6791 Sorry, try now!
5 quick ways to level up your Kubernetes security posture
13:38
Cloud Native Skunkworks
Рет қаралды 521
Everything you need to know about Kubebuilder: Write operators like a pro
32:02
Cloud Native Skunkworks
Рет қаралды 13 М.
Became invisible for one day!  #funny #wednesday #memes
00:25
Watch Me
Рет қаралды 59 МЛН
Best father #shorts by Secret Vlog
00:18
Secret Vlog
Рет қаралды 22 МЛН
100❤️
00:19
MY💝No War🤝
Рет қаралды 23 МЛН
Mom's Unique Approach to Teaching Kids Hygiene #shorts
00:16
Fabiosa Stories
Рет қаралды 18 МЛН
Learn Cluster API: Hands on deploying MicroK8s
15:02
Cloud Native Skunkworks
Рет қаралды 3,4 М.
Kubernetes Ingress Explained (2 Types)
8:54
Anton Putra
Рет қаралды 32 М.
Introduction to rust operators for Kubernetes
24:50
Cloud Native Skunkworks
Рет қаралды 3,3 М.
An introduction to cgroups, runc & containerD
15:24
Cloud Native Skunkworks
Рет қаралды 6 М.
Kubernetes + OpenAI = K8sGPT, giving you AI superpowers!
8:43
Cloud Native Skunkworks
Рет қаралды 8 М.
Is this strange, old NAS still worth using?
14:15
Hardware Haven
Рет қаралды 57 М.
Learn to build microservices: from code to K8s deployment in 60 minutes
1:00:25
Cloud Native Skunkworks
Рет қаралды 3,2 М.
Clown takes blame for missing candy 🍬🤣 #shorts
0:49
Yoeslan
Рет қаралды 37 МЛН
Fun Fun TV short film: 🙏baby save water😍
0:28
Fun Fun TV
Рет қаралды 10 МЛН
Good job hero. #shorts #fyp
0:20
Gbeckett12
Рет қаралды 27 МЛН