Repository navigation
Give zoekt-indexer its own ServiceAccount and PodDisruptionBudget - #1045
Merged
Merged
Conversation
The indexer writes index generations to object storage; the searchers only read them. With separate ServiceAccounts, each can have a workload identity with only the access it needs. A PodDisruptionBudget keeps evictions from taking every indexer down at once. Amp-Thread-ID: https://ampcode.com/threads/T-bdf5456f-9405-41b4-9031-b61c552c89a6
eseliger
approved these changes
Dec 3, 2026
eseliger
left a comment
Member
There was a problem hiding this comment.
you can also push dircetly to my PR man
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The indexer pods ran as the searchers' ServiceAccount, so on Cloud both shared one workload identity, and the read-only searchers had the bucket write access only the indexer needs. This adds
zoektIndexer.serviceAccountandzoektIndexer.podDisruptionBudget. The indexer Deployment now runs as its own ServiceAccount, and a budget can keep evictions from taking every indexer down at once. The rollout already surges (maxSurge: 1,maxUnavailable: 0). It's stacked on #1027, and controller#2919 sets both values.Review comments: https://github.com/sourcegraph/controller/pull/2919#discussion_r4777954930 and https://github.com/sourcegraph/controller/pull/2919#discussion_r4778042329
Opened from Amp thread https://ampcode.com/threads/T-bdf5456f-9405-41b4-9031-b61c552c89a6