This repository was archived by the owner on Sep 18, 2026. It is now read-only.
Support Kubernetes resource sharding with revision-safe backend endpoints - #4
Merged
Merged
Conversation
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Behavior
Kubernetes cannot safely use the legacy key-range proxy across independent etcd revision domains. Add an explicit
backendmode that transparently forwards one logical etcd cluster per endpoint. kube-apiserver can then shard built-in resources with--etcd-servers-overrides, while retaining each endpoint's native revisions, transactions, leases, watches and compaction.Validation
5153f9a9a2d55ae97f99ad6f176832c998a22aec: https://github.com/sharding-db/etcd-sharding-proxy/actions/runs/35342855275go test -tags=integration -race ./...andgo vet ./...pass locally with etcd 3.6.6. Backend forwarding coverage 91.9%, TLS 100%, configuration 94.2%.Boundaries
This is resource-based sharding through separate endpoints, not transparent global revisions or distributed transactions. CRDs remain on the default backend. Auth/Cluster administration APIs, online migration and a complete Kubernetes conformance/HA soak suite are outside this change. Backend sees the proxy certificate identity; client requests retain the default 4 MiB proxy limit. Test artifacts uploaded by CI contain logs/results only, not test certificates or data directories.