liveBook · Manning

Webhook

As explained in Platform Engineering on Kubernetes

A webhook is an HTTP callback that allows one system to notify another system when an event occurs.

A webhook lets a repository notify a service pipeline when source or configuration changes occur. The notification can trigger a pipeline instance instead of waiting for the next polling cycle. section 3.4.2 section 4.1.3

Use webhooks within a broader pipeline workflow:

  • Register access to the Git repository so a pipeline can receive notifications when changes merge into the main branch. section 3.4.2
  • Use a webhook to prompt configuration synchronization, then clone the desired state and apply it to the live Kubernetes environment. section 4.1.3
  • Keep polling as a fallback for GitOps updates rather than depending entirely on webhook delivery. section 4.1.3
Figure 3.5 Running pipelines requires a lot of infrastructure to be in place. This includes maintaining services and repositories, creating users and credentials, and making sure that these services (repositories) are accessible from remote locations.

Use the infrastructure view to identify the repositories, services, credentials, and network access required for webhook-driven pipelines. section 3.4.2

How Platform Engineering on Kubernetes covers it

How deep it goes
Explains webhook registration and pipeline triggering, while stopping short of protocol-level implementation details.
Examples
Uses merged source changes and environment-configuration changes as webhook-triggered pipeline events.
What it assumes
Assumes a reachable Git repository, pipeline access, credentials, and network connectivity between required services.
What you can do after
Operate/configure pipelines that react to repository changes while retaining polling as a synchronization fallback.
How it connects
Connects webhooks to Git repositories, service pipelines, environment pipelines, polling, GitOps, and Kubernetes.

Also explained in

Compare how 6 books explain webhook →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Platform Engineering on Kubernetes. The section links point to the parts of the book it draws on.