Skip to content

Document cross-namespace clusterRef for shadow links in Kubernetes#1793

Merged
JakeSCahill merged 1 commit into
betafrom
dyu/k-shadow-link-cross-namespace
Jul 15, 2026
Merged

Document cross-namespace clusterRef for shadow links in Kubernetes#1793
JakeSCahill merged 1 commit into
betafrom
dyu/k-shadow-link-cross-namespace

Conversation

@david-yu

@david-yu david-yu commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Description

The Redpanda Operator supports an optional namespace field on clusterRef (redpanda-data/redpanda-operator#1562, backported to 26.1.x in redpanda-data/redpanda-operator#1663), which allows a ShadowLink to reference a source cluster in a different namespace on the same Kubernetes cluster.

This updates the Configure Shadowing in Kubernetes page (26.2) to:

  • Add an example of a shadow link across namespaces on the same Kubernetes cluster using clusterRef.namespace.
  • Warn that this same-cluster, cross-namespace topology is for development and testing only — a single Kubernetes cluster is a single failure domain, so production disaster recovery should place source and shadow clusters in separate Kubernetes clusters, ideally in separate cloud regions.
  • Fix the note that previously said cross-namespace clusters require staticConfiguration, which is no longer the case.

Page previews

🤖 Generated with Claude Code

The Redpanda Operator now supports an optional namespace field on
clusterRef (redpanda-operator#1562, backported in #1663), so a
ShadowLink can reference a source cluster in a different namespace on
the same Kubernetes cluster. Add an example and state that this
topology is for development and testing only; production disaster
recovery should place source and shadow clusters in separate Kubernetes
clusters and cloud regions.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@david-yu
david-yu requested a review from a team as a code owner July 14, 2026 06:37
@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit d5fd280
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/6a55d94934c14400085df8dd
😎 Deploy Preview https://deploy-preview-1793--redpanda-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: ebb36416-495b-437e-bf94-5c64db6e32c9

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch dyu/k-shadow-link-cross-namespace

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@david-yu

Copy link
Copy Markdown
Contributor Author

@JakeSCahill could your review, this is for the beta.

@JakeSCahill

Copy link
Copy Markdown
Contributor

Reviewed and fact-checked against the operator source and a live run. Two things:

This duplicates #1797 (opened yesterday for DOC-2274 without spotting this PR — sorry for the overlap). Closing #1797 in favor of this one since it came first and also covers the 26.1 backport in #1794. Porting over the one thing it had that this PR doesn't:

Suggestion — state the minimum operator version. On the 26.2 line the namespace field only exists from operator 26.2.1-beta.3 (the changelog entry ships there; beta.1/beta.2 don't have it, and an unknown CRD field is silently pruned, so on older betas the ShadowLink would quietly resolve the source in the wrong namespace). Suggest: "Requires Redpanda Operator 26.2.1-beta.3 or later" — or use the {operator-beta-version} attribute, which the build resolves to the latest beta (fallbacks for it are added in #1681/#1787).

Validation: I ran exactly this manifest shape end-to-end on kind on Monday (operator 26.2.1-beta.3, two single-broker clusters in source/shadow namespaces, enable_shadow_linking: true): the link reached Synced=True, the topic auto-created on the shadow cluster, and a produced message replicated with preserved offset and timestamp. Details in #1797. Everything else here matches the source: default resolution in the ShadowLink's namespace, field on sourceCluster.clusterRef, and the dev/test-only caveat — and the production line about connecting separate clusters with staticConfiguration is a good addition.

@JakeSCahill
JakeSCahill merged commit 075afa2 into beta Jul 15, 2026
7 checks passed
@JakeSCahill
JakeSCahill deleted the dyu/k-shadow-link-cross-namespace branch July 15, 2026 12:03
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