Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

CloudNativePG Admission Webhook Timeout on GKE Autopilot: Root Cause, Troubleshooting and Production Fix

Solving CloudNativePG Admission Webhook Timeouts on GKE Autopilot Tags : kubernetes gke cloudnativepg devops postgresql Originally published on the IBM Community and republished here to make the content accessible to a wider technical audience. Introduction Admission webhooks are a critical component of Kubernetes operators. When a custom resource is created or modified, the Kubernetes API server…

CloudNativePG Admission Webhook Timeouts on GKE Autopilot

Admission webhooks play a critical role in Kubernetes operators, enabling validation and mutation of custom resources during creation or modification. When deploying a PostgreSQL cluster using the CloudNativePG operator on Google Kubernetes Engine (GKE) Autopilot, a webhook timeout issue arose, preventing successful cluster creation.

This problem was observed with EnterpriseDB Postgres for Kubernetes but was not specific to EDB or PostgreSQL. The root cause was the interaction between Kubernetes control-plane traffic and restrictive NetworkPolicies in GKE Autopilot.

Symptoms observed included the Kubernetes API server failing to invoke the CloudNativePG admission webhook, resulting in errors like "dial tcp webhook-ip :9443: i/o timeout." While the webhook Pod appeared healthy, the issue lay elsewhere. Initial troubleshooting focused on the webhook and its related components but proved unsuccessful. The investigation then shifted to Kubernetes NetworkPolicy.

The challenge arose from the fact that on GKE Autopilot, the Kubernetes control plane is fully managed by Google, and the control-plane IP range is not exposed to customers. This made it difficult to configure NetworkPolicies and firewall rules based on the API server's IP. The networking team advised simplifying the NetworkPolicy by removing restrictive traffic selectors for webhook communication and allowing the required traffic primarily based on the webhook port.

After implementing this change, the webhook timeout issue was successfully resolved. The article concludes by recommending this troubleshooting approach for similar webhook problems across Kubernetes operators and applications.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

The Verge Guide to Pets

Ah, the relationship between animals and the technology they can’t quite understand. Today, it seems like there’s a high-tech solution to every element of pet ownership, with devices on the market…

The Hoax Lifecycle in a Courtroom: COPA v Wright as a Live Specimen

The claim was about the invention of digital scarcity. The disproof was about kerning. There is a document in the record of an English lawsuit where the date is wrong in a way no human would ever…

  • Craig Steven Wright claimed to be Satoshi Nakamoto, creator of Bitcoin
  • Court case COPA v Wright concluded Wright is not Satoshi Nakamoto
  • Thirty-two of forty-seven presented documents found unreliable

More from Tuesday 18 August →