To teach myself Kubernetes in general and controllers in particular, I previously developed one in Java. This week, I decided to do the same in Rust by following the same steps I did.
- My First Cup of Rust
- My Second Cup of Rust
- The Rustlings Exercises - Part 1
- The Rustlings Exercises - Part 2
- Rust on the Front-End
- A Rust Controller for Kubernetes (this post)
The Guiding Principle
The guiding principle is creating a Kubernetes controller that watches pods' lifecycle and injects a sidecar into them. When Kubernetes schedules the pod, the controller schedules the sidecar; when it deletes the former, it deletes the latter as well.