We needed to modify deployments in the background and decided against Kyverno (too big, too complex). Instead a leightweight mutating Webhook called "kTailor" was built and published under Apache 2.0. Its main purpose is to insert env vars, initContainers and sidecars. For more details see https://dev.to/docdiesel/how-i-added-initcontainers-and-env-... or https://www.ktailor.dev/ . Try at killercoda: https://killercoda.com/ktailor-demo
Open ktailor.devktailor.dev
kTailor
Lightweight Kubernetes Mutating Webhook that dynamically modifies Deployments using YAML templates in ConfigMaps to inject sidecars, env vars, or volumes.
Visit project- First shared
- Sep 9, 2026
- HN activity
- 21
Show HN@docdieselSep 9, 2026
Show HN: Adding initContainers and env vars to deployments w/o Kyverno
Community