byoc: delete o11y hosted zone - #23472
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughBYOC docs now use one TiDB hosted zone that can be public or private. They remove O11Y hosted-zone parameters from IAM and multi-region guidance. They also add a hosted-zone type rule for BYOC public connections. ChangesBYOC hosted zone guidance
Estimated code review effort: 2 (Simple) | ~10 minutes Mergeability Score: 🟡 Moderate · up to The BYOC multi-region documentation currently combines independent hosted-zone choices and states an incorrect CIDR overlap rule, which could lead customers to choose the wrong deployment configuration or network ranges. These concrete documentation issues should be corrected before merging. Suggested labels: Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: b839b63b-e87c-4af2-ad8c-9e82a82fcc86
📒 Files selected for processing (5)
tidb-cloud/byoc/byoc-configure-iam-permissions.mdtidb-cloud/byoc/byoc-onboarding-overview.mdtidb-cloud/byoc/byoc-prepare-environment-aws.mdtidb-cloud/byoc/multi-region-deployment.mdtidb-cloud/premium/connect-to-premium-via-public-connection.md
💤 Files with no reviewable changes (1)
- tidb-cloud/byoc/byoc-configure-iam-permissions.md
| For a public hosted zone, delegate the zone from its parent domain by adding the Route 53 name server (NS) records to the parent DNS configuration. For a private hosted zone, associate the hosted zone with the VPCs that require DNS resolution. | ||
|
|
||
| - **Observability (O11y) Zone:** Manages DNS for monitoring tools (Grafana/Prometheus). | ||
|
|
||
| * Naming Constraint: Max 34 characters. | ||
| * Example: `o11y.cluster.example.com`. | ||
|
|
||
| 2. **Delegate DNS.** | ||
|
|
||
| > **Important:** | ||
| > | ||
| > **DNS Delegation Required.** After creating the hosted zones, you **must** add Route 53 Name Servers (NS records) to your parent domain's DNS configuration (for example, in your corporate DNS or parent AWS zone). | ||
|
|
||
| - **Action:** Copy the 4 NS records from your new Route 53 zones and add them to the parent domain. | ||
| - **Result:** Without this, internal service discovery will fail. | ||
|
|
||
| 3. **Verify the DNS delegation.** | ||
|
|
||
| Verify the DNS delegation by running `nslookup` or `dig` from any internet-connected command-line environment. The domain must resolve correctly. | ||
|
|
||
| ```bash | ||
| nslookup -type=ns {hosted_zone_name} | ||
| nslookup -type=ns byoc-tidb.cluster.example.com | ||
| nslookup -type=ns o11y.cluster.example.com | ||
| ``` | ||
|
|
||
| <!--To confirm: whether to add image--> | ||
|
|
||
| > **Note:** | ||
| > | ||
| > If you plan to deploy TiDB Cloud BYOC in **multiple AWS regions**, the same hosted zones can be shared across all regions, or you can choose to create dedicated hosted zones per region. See [Multi-Region Deployment](/tidb-cloud/byoc/multi-region-deployment.md) for detailed multi-region architecture configurations. | ||
| > **Note:** | ||
| > | ||
| > If you plan to deploy TiDB Cloud BYOC in multiple AWS Regions, you can share the same TiDB hosted zone across all regions or use a dedicated hosted zone for each region. See [Multi-Region Deployment](/tidb-cloud/byoc/multi-region-deployment.md) for details. |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Files:"
git ls-files | rg '(^|/)byoc-prepare-environment-aws\.md$|(^|/)byoc-onboarding-overview\.md$|(^|/)multi-region-deployment\.md$|resources/doc-templates' || true
echo
echo "Target file excerpt:"
if [ -f tidb-cloud/byoc/byoc-prepare-environment-aws.md ]; then
cat -n tidb-cloud/byoc/byoc-prepare-environment-aws.md | sed -n '1,120p'
fi
echo
echo "Overview file excerpt:"
if [ -f tidb-cloud/byoc/byoc-onboarding-overview.md ]; then
cat -n tidb-cloud/byoc/byoc-onboarding-overview.md | sed -n '1,80p'
fi
echo
echo "Search relevant terms:"
rg -n -i "private hosted zone|associate|name server|NS|Route 53|hosted zone|provisioned|Phase 3|VPC" tidb-cloud/byoc resources/doc-templates || trueRepository: pingcap/docs
Length of output: 50368
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Byoc automated deployment excerpts:"
if [ -f tidb-cloud/byoc/byoc-automated-deployment.md ]; then
wc -l tidb-cloud/byoc/byoc-automated-deployment.md
cat -n tidb-cloud/byoc/byoc-automated-deployment.md | sed -n '1,240p'
fi
echo
echo "IAM script/config references to hosted zones:"
rg -n -i "Hosted Zone|HostedZone|hostedZone|Hosted Zone Id|HostedZoneId|TiDBHostedZone|TiDB hosted zone|Route53|route53|associate|VPC|VPCTiDB|Private Zone" tidb-cloud/byoc/byoc-configure-iam-permissions.md tidb-cloud/byoc/*.md || true
echo
echo "Search for automation/vpc/private-hosted-zone keywords in scripts/docs:"
rg -n -i "auto-deploy|create-.*vpc|route-53|private hosted zone|private-hosted|associate-hosted-zone|vpc-association|VPC Association" . --glob '!**/node_modules/**' --glob '!**/build/**' --glob '!**/dist/**' | head -n 200Repository: pingcap/docs
Length of output: 23208
🏁 Script executed:
#!/bin/bash
set -euo pipefail
echo "Check for Route 53 hosted-zone scripts/templates:"
fd -a . . | rg -i 'hosted|route53|byoc|terraform|cloudformation|stack|setup|update|deploy|byoc-configure-iam-permissions' | sed 's#^\./##' | head -n 300
echo
echo "Search repository-wide for hosted zone association text (focused):"
rg -n -i "associate.*hosted zone|hosted zone.*associate|HostedZoneAssociations|hosted_zone_associations|CreateHostedZone|CreateVpcAssociation|VPCAssociation|hosted zone id" . --glob '!**/node_modules/**' --glob '!**/build/**' --glob '!**/dist/**' --glob '!**/.git/**' | head -n 300
echo
echo "Inspect relevant BYOC IAM/prepare file sizes and key references:"
wc -l tidb-cloud/byoc/byoc-prepare-environment-aws.md tidb-cloud/byoc/byoc-configure-iam-permissions.mdRepository: pingcap/docs
Length of output: 10860
Document the private hosted-zone association step.
The private hosted zone option says users must associate the zone with VPCs, but the BYOC VPC is provisioned later in Phase 3 and this step only asks customers to create/configure the hosted zone. Clarify when the TiDB cluster VPC exists, who performs the Route 53 VPC association, and whether cross-account association is supported or requires TiDB Cloud assistance.
🧰 Tools
🪛 LanguageTool
[style] ~55-~55: Three successive sentences begin with the same word. Consider rewording the sentence or use a thesaurus to find a synonym.
Context: ...ecords to the parent DNS configuration. For a private hosted zone, associate the ho...
(ENGLISH_WORD_REPEAT_BEGINNING_RULE)
[LGTM Timeline notifier]Timeline:
|
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lilin90 The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
tidb-cloud/byoc/multi-region-deployment.md (1)
132-137: 🎯 Functional Correctness | 🟠 Major | ⚡ Quick winCorrect the CIDR overlap rule.
The current wording says that the O11Y CIDR must not overlap with the O11Y CIDR in the same region. That condition is impossible and obscures the intended resource-pool constraint.
For each new region: * The O11Y CIDR must not overlap with existing application VPCs, on-premises networks, or VPN networks that will be connected through VPC Peering or VPN. * Resource pool CIDRs must not overlap with the O11Y CIDR or any existing resource pool CIDR in the same region. * Resource pool CIDRs must not overlap with resource pool CIDRs in other regions if the resource pools will participate in cross-region replication.As per path instructions: For every actionable issue, provide a GitHub committable suggestion block containing the exact replacement text whenever the fix can be safely and completely applied to contiguous lines in the diff.
Source: Path instructions
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: ff453f07-e223-4c55-b5d4-faca81a57b4c
📒 Files selected for processing (3)
tidb-cloud/byoc/byoc-onboarding-overview.mdtidb-cloud/byoc/byoc-prepare-environment-aws.mdtidb-cloud/byoc/multi-region-deployment.md
| 4. Confirm whether each new region will: | ||
| * share the existing PCA and hosted zones, or | ||
| * use dedicated PCA and hosted zones. | ||
| * share the existing PCA and TiDB hosted zone, or | ||
| * use a dedicated PCA and TiDB hosted zone. |
There was a problem hiding this comment.
🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win
Describe PCA and TiDB hosted-zone choices independently.
The checklist pairs the two resources, but the same document supports mixed configurations, such as a shared PCA with dedicated TiDB hosted zones. Users can therefore miss a supported configuration or select the wrong update parameters.
| 4. Confirm whether each new region will: | |
| * share the existing PCA and hosted zones, or | |
| * use dedicated PCA and hosted zones. | |
| * share the existing PCA and TiDB hosted zone, or | |
| * use a dedicated PCA and TiDB hosted zone. | |
| 4. Confirm the resource strategy for each new region: | |
| * share the existing PCA or use a dedicated PCA; and | |
| * share the existing TiDB hosted zone or use a dedicated TiDB hosted zone. |
As per path instructions: For every actionable issue, provide a GitHub committable suggestion block containing the exact replacement text whenever the fix can be safely and completely applied to contiguous lines in the diff.
Source: Path instructions
|
/hold |
First-time contributors' checklist
What is changed, added or deleted? (Required)
Which TiDB version(s) do your changes apply to? (Required)
Tips for choosing the affected version(s):
By default, CHOOSE MASTER ONLY so your changes will be applied to the next TiDB major or minor releases. If your PR involves a product feature behavior change or a compatibility change, CHOOSE THE AFFECTED RELEASE BRANCH(ES) AND MASTER.
For details, see tips for choosing the affected versions.
What is the related PR or file link(s)?
AI agent involvement
Do your changes match any of the following descriptions?
Summary by CodeRabbit