Repository navigation
Conversation
…gistry (phase 1) Multi-cluster MCS-API phase 1 (proposals 018 + 006): make aether conformant to the Kubernetes Multi-Cluster Services objects, backed by the origin-partitioned registry as the cross-cluster plane (not cross-cluster DNS, not EndpointSlice import). DNS stays strictly local: each cluster materializes its own clusterset.local VIPs from its own registry view. Control-plane plumbing only (default OFF behind registrar.enableMCS): - registry.ServiceExporter capability + etcd backend impl: export marks live under each instance's own origin partition (<ownPrefix>/exports/<service> = namespace); ListExports ranges the whole root and returns the clusterset-wide union with the origin cluster parsed from the key. - mcs.ExportController (leader-elected): watches ServiceExport, records/clears the registry export mark for the backing Service, and reconciles Valid/Ready status conditions (NoService/InvalidServiceType handled). - mcs.ImportGenerator (leader-elected Runnable): materializes a ServiceImport (ClusterSetIP, status.clusters) + a LOCAL selectorless clusterset.local VIP Service per service exported anywhere in the clusterset, mirroring the existing mesh-Service generator (prune-by-label, never clobbers user objects). No EndpointSlice import — endpoints stay in the registry. - Requires the etcd backend (cross-cluster plane); hard error on kubernetes/ dynamodb. Chart gates RBAC (serviceexports/serviceimports + status, Services) and the --enable-mcs flag; the upstream MCS CRDs install separately. Clean seams left for the cross-cluster data path (out of scope here): the proxy resolves cross-cluster endpoints via registry EDS at dial time (the registry endpoint can carry a remote pod IP or an east-west-gateway addr); per-app-port ServiceImport ports; cross-cluster SPIRE trust; replication/failover. Tests: export->registry + status, registry->import/VIP projection, multi-cluster merge, prune, no-clobber (fake client + fake exporter); etcd cross-origin export integration test against a real etcd container. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S
Owner
Author
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.
Multi-cluster MCS-API phase 1 (proposals 018 + 006)
Ship Kubernetes Multi-Cluster Services (MCS-API) conformance objects backed by the registry as aether's cross-cluster plane — not cross-cluster DNS, not EndpointSlice import. DNS stays strictly local: each cluster materializes its own
clusterset.localVIPs from its own registry view; the proxy resolves cross-cluster endpoints via registry EDS at dial time (a later phase).This PR is control-plane plumbing only, gated default OFF behind
registrar.enableMCS(--enable-mcs).What's here
registry.ServiceExportercapability + etcd backend impl. Export marks live under each instance's own origin partition (<ownPrefix>/exports/<service>= namespace, proposal 006).ListExportsranges the whole root and returns the clusterset-wide union, parsing the origin cluster from the key. kubernetes/dynamodb backends don't implement it.mcs.ExportController(leader-elected): watchesServiceExport, records/clears the registry export mark for the backing Service, reconcilesValid/Readystatus conditions (NoService/InvalidServiceTypehandled).mcs.ImportGenerator(leader-elected Runnable): from the clusterset-wide export view, materializes aServiceImport(ClusterSetIP,status.clusters) + a local selectorlessclusterset.localVIP Service per exported service — mirroring the existing mesh-Service generator (prune-by-label, never clobbers user objects). No EndpointSlice import.--enable-mcsis set on a backend without the export plane (only etcd implements it).registrar.enableMCSgates the--enable-mcsflag + RBAC (serviceexports/serviceimports+ their/status, and Services). Upstreamsigs.k8s.io/mcs-apiCRDs install separately (documented invalues.yaml). Chart version bumped to0.35.0(parent reconciles exact number at merge).Clean seams left (out of scope — cross-cluster data path)
ServiceImportports (registry already carries per-port endpoints, proposal 005) — phase 1 advertises the single mesh port.Tests
bazel build //...,bazel test //...(59/59),bazel run //:format,bazel run //:gazelleall green; chart renders MCS RBAC+flag only when enabled.Important
Do not merge / deploy yet — a real multi-cluster e2e needs a second cluster, which the parent will scope.
🤖 Generated with Claude Code
https://claude.ai/code/session_01N7oY7W8oDXrqDzFgoZh25S