Ops engineers can use Kubernetes operators for their work!
I feel there's a gap, or fear from going into building a K8s controller so I made this video to support colleagues around the world.
An operator / controller can respond to live events on the cluster and perform various tasks, while maintaining high availability and best practices!
This video shows the use of "Kubebuilder" and how it can generate most of the Go code for you, leaving you to implement your logic inside.
I've chosen to implement a simple controller that responds to pod events, and reports to slack when they occur.
Links
=======================================
▶ The Kubebuilder book: book.kubebuilder.io/
▶ Kubebuilder @ GitHub: github.com/kubernetes-sigs/kubebuilder
▶ How to build a local cluster in 10 seconds: • Go BIG WITHOUT Going Big: Learn to Set Up ...
▶ My GitHub with the supporting code: github.com/omerxx/devops-toolbox/tree/main/k8s-con…
My Favourite Gear!
=======================================
If you enjoy my content, using the links below can help me with a small commission, thank you!
⌨️ My keyboard is the wonderful HHKB: amzn.to/3HwJG60
🔗 The HHKB is wired with a high quality coiled cable: amzn.to/3DCA87d
⌨️ Backup keyboard (for traveling mainly) - Nuphy Air60: amzn.to/3R3M7jz
🖥️ My ultra wide 49" monitor: amzn.to/3JbVThC
🎙️ Microphone - HyperX Quadcast: amzn.to/3kLcNJR
🦾 Heavy Duty Monitor Arm: amzn.to/3kKp7tS
🖱️ Mouse - MX Master 3: amzn.to/3DiZmaj
Subscribe!
=======================================
For more videos like this: youtube.com/@devopstoolbox?sub_confirmation=1
My blog: omerxx.com/
Dev & Ops tools Telegram channel: t.me/espressops
Chapters:
==============================
00:00 - Intro
00:43 - Kubebuilder
02:04 - Building the API
02:43 - The spec
04:36 - The controller
07:34 - Building a local cluster
08:14 - First test
09:55 - The CRD Yaml
11:02 - Implementing the logic
12:26 - Slack bot configuration
14:08 - Moment of truth!
#devops #terminal #sys #system #sysadmin #cloud #cli #terminal #dev #ops #ricing #linux #macos #commandline
Music
==============================
Gentle Lo-Fi Vlog Background Music | Cookies by Alex-Productions | onsound.eu/
Music promoted by www.chosic.com/free-music/all/
Creative Commons CC BY 3.0
creativecommons.org/licenses/by/3.0/
On My Way by Ghostrifter Official | soundcloud.com/ghostrifter-official
Music promoted by www.chosic.com/free-music/all/
Creative Commons CC BY-SA 3.0
creativecommons.org/licenses/by-sa/3.0/
Sleepless by Purrple Cat
Bedhead by Purrple Cat
Pillow Fort by Purrple Cat
purrplecat.com/
Music promoted by www.chosic.com/free-music/all/
Creative Commons CC BY-SA 3.0
creativecommons.org/licenses/by-sa/3.0/
コメント