Skip to content

Give zoekt-indexer its own ServiceAccount and PodDisruptionBudget - #1045

Merged
michaellzc merged 1 commit into
indexed-search-continuityfrom
zoekt-indexer-sa-pdb
Dec 3, 2026
Merged

michaellzc merged 1 commit into
indexed-search-continuityfrom
zoekt-indexer-sa-pdb

Conversation

@michaellzc

Copy link
Copy Markdown
Member

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.serviceAccount and zoektIndexer.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

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
@michaellzc
michaellzc requested a review from eseliger December 3, 2026 00:58
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

@eseliger eseliger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can also push dircetly to my PR man

@michaellzc
michaellzc merged commit c1ec16a into indexed-search-continuity Dec 3, 2026
4 checks passed
@michaellzc
michaellzc deleted the zoekt-indexer-sa-pdb branch December 3, 2026 02:00
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.

2 participants