Skip to content

delete-o11y-hosted-zone - #23472

Open
wildpcww wants to merge 1 commit into
pingcap:release-8.5from
wildpcww:modifyhostedzone
Open

delete-o11y-hosted-zone#23472
wildpcww wants to merge 1 commit into
pingcap:release-8.5from
wildpcww:modifyhostedzone

Conversation

@wildpcww

@wildpcww wildpcww commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

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.

  • master (the latest development version)
  • v9.0 (TiDB 9.0 versions)
  • v8.5 (TiDB 8.5 versions)
  • v8.1 (TiDB 8.1 versions)
  • v7.5 (TiDB 7.5 versions)
  • v7.1 (TiDB 7.1 versions)
  • v6.5 (TiDB 6.5 versions)

What is the related PR or file link(s)?

  • This PR is translated from:
  • Other reference link(s):

AI agent involvement

  • The changes in this PR were primarily made by an AI agent on behalf of the PR author.

Do your changes match any of the following descriptions?

  • Delete files
  • Change aliases
  • Need modification after applied to another branch
  • Might cause conflicts after applied to another branch

Summary by CodeRabbit

  • Documentation
    • Simplified BYOC setup requirements to use a single TiDB Route 53 hosted zone.
    • Clarified that the hosted zone can be public or private.
    • Removed observability hosted-zone setup, verification, and deployment parameters from BYOC and multi-region guidance.
    • Updated required-information tables and multi-region examples to reflect the streamlined configuration.
    • Added guidance that public connections require public hosted zones, while private hosted zones require private connections.

@wildpcww
wildpcww requested a review from lilin90 August 7, 2026 10:34
@ti-chi-bot

ti-chi-bot Bot commented Aug 7, 2026

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign tangenta for approval. For more information see the Code Review Process.
Please ensure that each of them provides their approval before proceeding.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ti-chi-bot ti-chi-bot Bot added contribution This PR is from a community contributor. missing-translation-status This PR does not have translation status info. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Aug 7, 2026
@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

BYOC documentation now describes a single TiDB Route 53 hosted zone that can be public or private. It removes O11Y hosted-zone parameters from IAM, environment preparation, and multi-region procedures. It also documents the connection type required for each hosted-zone type.

Changes

BYOC hosted zone guidance

Layer / File(s) Summary
Hosted zone contract and setup
tidb-cloud/byoc/byoc-onboarding-overview.md, tidb-cloud/byoc/byoc-prepare-environment-aws.md, tidb-cloud/byoc/byoc-configure-iam-permissions.md
Onboarding and environment preparation now require one TiDB hosted zone. The zone can be public or private. IAM configuration no longer includes the O11Y hosted-zone ID or bootstrap argument.
Multi-region resource guidance
tidb-cloud/byoc/multi-region-deployment.md
Multi-region planning, resource sharing, and update examples now cover only PCA and TiDB hosted zones.
Connection type constraint
tidb-cloud/premium/connect-to-premium-via-public-connection.md
BYOC deployments with public hosted zones can use public connections. Deployments with private hosted zones must use private connections.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested labels: BYOC, area/tidb-cloud

Suggested reviewers: lilin90

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description leaves the required change summary blank and provides no related links or other change details. Add a concise summary of the deleted O11Y hosted zone content and its rationale, and provide relevant reference links if available.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the main change: removing the O11Y hosted zone content.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

📥 Commits

Reviewing files that changed from the base of the PR and between 351d30f and 2889b06.

📒 Files selected for processing (5)
  • tidb-cloud/byoc/byoc-configure-iam-permissions.md
  • tidb-cloud/byoc/byoc-onboarding-overview.md
  • tidb-cloud/byoc/byoc-prepare-environment-aws.md
  • tidb-cloud/byoc/multi-region-deployment.md
  • tidb-cloud/premium/connect-to-premium-via-public-connection.md
💤 Files with no reviewable changes (1)
  • tidb-cloud/byoc/byoc-configure-iam-permissions.md

Comment on lines +55 to +59
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.

Copy link
Copy Markdown

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

🧩 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 || true

Repository: 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 200

Repository: 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.md

Repository: 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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution This PR is from a community contributor. missing-translation-status This PR does not have translation status info. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant