-
Notifications
You must be signed in to change notification settings - Fork 52
Document cross-namespace clusterRef for shadow links in Kubernetes (26.1) #1794
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,10 +70,39 @@ The operator automatically resolves cluster connection details from the referenc | |
| + | ||
| [NOTE] | ||
| ==== | ||
| When using `clusterRef`, the operator handles authentication automatically using the cluster's internal credentials. For cross-namespace or external clusters, use `staticConfiguration` instead. | ||
| When using `clusterRef`, the operator handles authentication automatically using the cluster's internal credentials. For clusters that are not managed by the same operator, use `staticConfiguration` instead. | ||
| ==== | ||
| + | ||
| By default, a `clusterRef` resolves in the same namespace as the `ShadowLink` resource. Starting in Redpanda Operator v26.1.9, if the source and shadow clusters are managed by the same operator but deployed in different namespaces on the same Kubernetes cluster, you can set the `namespace` field on the source cluster's `clusterRef`: | ||
| + | ||
| .`shadowlink.yaml` | ||
| [,yaml] | ||
| ---- | ||
| apiVersion: cluster.redpanda.com/v1alpha2 | ||
| kind: ShadowLink | ||
| metadata: | ||
| name: disaster-recovery-link | ||
| spec: | ||
| shadowCluster: | ||
| clusterRef: | ||
| name: redpanda-shadow | ||
| sourceCluster: | ||
| clusterRef: | ||
| name: redpanda-source | ||
| namespace: <source-namespace> | ||
| topicMetadataSyncOptions: | ||
| autoCreateShadowTopicFilters: | ||
| - name: '*' | ||
| filterType: include | ||
| patternType: literal | ||
| ---- | ||
| + | ||
| [WARNING] | ||
| ==== | ||
| Use this same-cluster, cross-namespace topology only for development and testing, such as rehearsing replication and failover on a single Kubernetes cluster. A single Kubernetes cluster is a single failure domain, so it cannot provide disaster recovery. For production, deploy the source and shadow clusters in separate Kubernetes clusters, ideally in separate cloud regions, and connect them using `staticConfiguration`. | ||
| ==== | ||
|
|
||
| - For external or cross-namespace clusters, use `staticConfiguration`: | ||
| - For external clusters, or clusters that are not managed by the same operator, use `staticConfiguration`: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win Document where the
🤖 Prompt for AI AgentsSource: Learnings |
||
| + | ||
| Create a shadow link with explicit connection details: | ||
| + | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Use reachable broker addresses for the separate-cluster production example.
The new production guidance recommends separate Kubernetes clusters, but the
staticConfigurationexample below uses*.svc.cluster.localbroker names. Those addresses are cluster-local and generally cannot be resolved or reached from another cluster. Add a note requiring externally reachable advertised listeners, or provide a separate-cluster example.🤖 Prompt for AI Agents