Notes about mutating webhooks in kubernetes

Notes about mutating webhooks in kubernetes

1 6
calendar_todayschedule1 min read
— Originally published at www.linkedin.com

Whenever I deal with istio service mesh, I used to come accross this particular word/term "Mutating webhooks"

At first, I assumed they were just another Kubernetes feature. But when i dig more I got to know that they're actually solving a very practical problem.

Imagine asking every developer to remember adding labels, annotations, resource limits, monitoring configs, security settings, or even service mesh sidecars to every Pod manifest.

In reality, someone will eventually forget.

That's where Mutating Webhooks come in.

Whenever you run kubectl apply (By any means like normal apply command or using helm apply), the request reaches the Kubernetes API Server before being stored.

A Mutating Webhook gets a chance to inspect the object and automatically modify it.

For example, it can:

  • Add default CPU and memory requests/limits
  • Inject an Istio sidecar
  • Add standard labels and annotations
  • Inject a Vault agent for secrets
  • Apply organization-wide defaults

The best part? Developers can keep their manifests simple while the platform automatically enforces standards behind the scenes.

A simple way to remember it:

Mutating = Modify
Validating = Verify

It's one of those Kubernetes features that's quietly doing a lot of work in production clusters every day.

🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.

More Posts

Kamal vs Kubernetes: An Honest Comparison for Teams Who Don’t Need 1,000 Services

Alexandre Vazquez - Jul 24

Stop Implementing Authentication Inside Containers on Kubernetes

Alexandre Vazquez - Jul 25

Verifying Paddle Billing webhooks in PHP — a complete guide

PetrDev - May 10

The Central Nervous System: Scaling the Agentic Radar to 24/7 with FastAPI and Webhooks

Datalaria - May 9

How to Debug Webhooks Like a Pro: Building an Enterprise-Grade Webhook Testing Tool

ar27111994 - Dec 31, 2025
chevron_left
758 Points7 Badges
2Posts
0Comments
2Connections
Cloud & DevOps Engineer passionate about Kubernetes, Infrastructure as Code, and Platform Engineerin... Show more

Related Jobs

View all jobs →

Commenters (This Week)

1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!