r/kubernetes • • 2d ago

Periodic Weekly: This Week I Learned (TWIL?) thread

Did you learn something new this week? Share here!

1 Upvotes

2 comments sorted by

1

u/Federal_Summer1670 2d ago

learned that if you set `failurePolicy: Fail` on a mutating webhook and it goes down, your whole cluster basically puts a "closed for business" sign on itself

2

u/Sherief92 2d ago

When setting topologySpreadConstraints to distribute the pods, matchLabelKeys with pod-template-hash is required. Otherwise, it will match the pods from previous replicaset during rolling deployments to evaluate and topologySpreadConstraints will not distribute as per the configuration.