Skip to content

Conversation

@crobby
Copy link
Contributor

@crobby crobby commented Sep 17, 2025

Issue: rancher/rancher#43525

Problem

Rancher webhook isn't optimized to run in an HA configuration

Solution

With this PR, rancher-webhook now performs a leader election at startup time and the configuration will be managed only by the leader pod, follower pods will not attempt to update the webhook configurations.

Note, this PR does not change the default installation of rancher-webhook. In order to take advantage of this, you would need to modify the replicas for rancher-webhook in the deployment or manually scale the webhook at runtime.

This PR just prevents multiple copies of rancher-webhook from constantly attempting to update configuration with the same information.

@crobby crobby requested a review from a team as a code owner September 17, 2025 11:20
@crobby crobby marked this pull request as draft September 17, 2025 11:20
@crobby crobby changed the title Allow webhook pods to have leader election to govern which pod updates the config [main] Allow webhook pods to have leader election to govern which pod updates the config Sep 17, 2025
@crobby crobby marked this pull request as ready for review September 22, 2025 17:00
@crobby crobby force-pushed the hawebhook branch 2 times, most recently from 73a76e2 to efca921 Compare September 23, 2025 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant