add PostgreSQL node migration and CloudBeaver solutions (MIDDLEWARE-31526)#792
add PostgreSQL node migration and CloudBeaver solutions (MIDDLEWARE-31526)#792SuJinpei wants to merge 3 commits into
Conversation
…1526) Precipitate historical internal KB PostgreSQL solutions, modernized to the current acid.zalan.do/v1 postgresql CR and verified live on ACP 4.2/4.3, bilingual (en + zh): - KB260515007 How to Migrate a PostgreSQL Instance to Another Node - KB260515008 How to Deploy CloudBeaver for PostgreSQL Management Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 42 minutes and 4 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits. 🚦 How do rate limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughAdds two new solution documentation pages: one guides users through deploying CloudBeaver (web SQL client) on Kubernetes for PostgreSQL management, including a full manifest, deployment steps, UI setup, and PostgreSQL connection; the other documents migrating a PostgreSQL Operator–managed instance to a different node when using node-local storage via PVC/pod deletion and Patroni re-cloning. ChangesCloudBeaver Deployment Guide
PostgreSQL Instance Node Migration Guide
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
The zh translations are produced by the translation pipeline from the en sources (tracked via sourceSHA); they should not be committed by hand. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@docs/en/solutions/How_to_Deploy_CloudBeaver_for_PostgreSQL_Management.md`:
- Around line 145-146: The kubectl exec command that attempts to echo the
PGPASSWORD_SUPERUSER environment variable will output nothing because the Alauda
PostgreSQL Operator stores credentials in Kubernetes Secrets, not pod
environment variables. Replace the documented command that uses bash -c 'echo
$PGPASSWORD_SUPERUSER' with a kubectl get secret command that retrieves and
decodes the password directly from the Kubernetes Secret created by the operator
for the cluster. The new command should use kubectl get secret with the
appropriate namespace and secret name, extracting the password key and decoding
the base64-encoded value to display the actual superuser password.
In `@docs/en/solutions/How_to_Migrate_a_PostgreSQL_Instance_to_Another_Node.md`:
- Around line 65-67: The kubectl label command in the example is applying the
`target=true` label to both the source and target nodes, which allows the
recreated pod to schedule to either node when using `nodeSelector: target=true`.
To fix this, modify the labeling command to apply the label only to
`<target-node>`, removing `<source-node>` from the command. This ensures the pod
will only schedule to the intended target node during recreation.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 8f4f0cce-e79f-4cb2-9612-fe83d5a42468
📒 Files selected for processing (2)
docs/en/solutions/How_to_Deploy_CloudBeaver_for_PostgreSQL_Management.mddocs/en/solutions/How_to_Migrate_a_PostgreSQL_Instance_to_Another_Node.md
- CloudBeaver: retrieve superuser password from the operator-created Secret (postgres.<cluster>.credentials...) instead of a non-existent PGPASSWORD_SUPERUSER env var - node migration: label only the target node to avoid rescheduling onto the source Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Summary
Precipitates historical internal Confluence KB PostgreSQL solutions into the GitHub KB (
alauda/knowledge), part of MIDDLEWARE-31526 (KB 沉淀 / 对标 OCP). Modernized to the currentacid.zalan.do/v1postgresqlCR, verified live on ACP 4.2 and 4.3, bilingual (en + zh).Solutions (2, bilingual)
Verification
The CloudBeaver guide parallels the existing
How_to_Deploy_CloudBeaver_for_MySQL_Management(KB260515005).🤖 Generated with Claude Code
Summary by CodeRabbit