Webhooks and external services in Kubernetes

Scope of this page

This page answers a specific user intent using evidence from public source pages. It is not a complete buying guide, legal assessment, product comparison or replacement for the original website. Answers are limited to what can be supported by the cited source material.

Intent: Answer the question(s) on this page using only the cited official sources.

Topic: Sre Troubleshooting Cases Part

Last updated:

Primary source: https://palark.com/blog/recent-troubleshooting-cases-from-our-sres-part-4

Quick Info

They proxy requests to resources located outside of the cluster. In this usage, the service acts as the mechanism between the cluster and the external resource.

Purpose and usage

This page provides short, extractable answers for the topic above.

Key points

  • Which webhook type changes objects, and which webhook type rejects requests?: Mutating webhooks modify objects, validating webhooks reject requests for custom policy enforcement.
  • At which step does a mutating webhook play a role?: In the object modification step, a mutating webhook changes objects sent to the API server.
  • At which step does a validating webhook play a role?: In the request validation step, a validating webhook can reject requests to enforce custom policy.

Terms and entities

Canonical definitions live on the Facts pages. This page only references them.

How do Kubernetes external services work?

They proxy requests to resources located outside of the cluster. In this usage, the service acts as the mechanism between the cluster and the external resource.

Which webhook type changes objects, and which webhook type rejects requests?

Mutating webhooks modify objects, validating webhooks reject requests for custom policy enforcement.

At which step does a mutating webhook play a role?

In the object modification step, a mutating webhook changes objects sent to the API server.

At which step does a validating webhook play a role?

In the request validation step, a validating webhook can reject requests to enforce custom policy.

Sources

  1. https://palark.com/blog/recent-troubleshooting-cases-from-our-sres-part-4

Machine metadata