Skip to content

Custom config for proxysql,pgbouncer#888

Draft
Bonusree wants to merge 2 commits into
masterfrom
custom-config
Draft

Custom config for proxysql,pgbouncer#888
Bonusree wants to merge 2 commits into
masterfrom
custom-config

Conversation

@Bonusree

@Bonusree Bonusree commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • Documentation
    • Added comprehensive guides for configuring PgBouncer with custom configuration files and custom pod templates, including example manifests and step-by-step instructions.
    • Added comprehensive guides for configuring ProxySQL with custom bootstrap configuration files and custom pod templates, including example manifests and verification steps.

Bonusree added 2 commits June 16, 2026 13:26
Signed-off-by: Bonusree <bonusree@appscode.com>
Signed-off-by: Bonusree <bonusree@appscode.com>
@coderabbitai

coderabbitai Bot commented Jun 16, 2026

Copy link
Copy Markdown

Review Change Stack

📝 Walkthrough

Walkthrough

Adds documentation guides for PgBouncer and ProxySQL custom configuration under docs/guides/. Each proxy gets a section index page plus two sub-guides: one demonstrating Secret-backed config file injection, the other demonstrating spec.podTemplate customization with pod annotations and container resource requests, each paired with example Kubernetes manifests.

Changes

PgBouncer Configuration Guides

Layer / File(s) Summary
Section index and config-file guide
docs/guides/pgbouncer/configuration/_index.md, docs/guides/pgbouncer/configuration/using-config-file/examples/pb-custom.yaml, docs/guides/pgbouncer/configuration/using-config-file/index.md
Adds the versioned navigation index for the configuration section, a full step-by-step tutorial for mounting a pgbouncer.ini stored in a Kubernetes Secret via spec.configuration.secretName, and the matching PgBouncer CR example manifest.
PodTemplate guide
docs/guides/pgbouncer/configuration/using-pod-template/examples/pb-misc-config.yaml, docs/guides/pgbouncer/configuration/using-pod-template/index.md
Adds a tutorial guide for applying spec.podTemplate to a PgBouncer PetSet (supported fields, annotations, resource requests), verification commands, and the accompanying example manifest.

ProxySQL Configuration Guides

Layer / File(s) Summary
Section index and config-file guide
docs/guides/proxysql/configuration/_index.md, docs/guides/proxysql/configuration/using-config-file/examples/proxysql-custom.yaml, docs/guides/proxysql/configuration/using-config-file/index.md
Adds the versioned navigation index for the ProxySQL configuration section, a full tutorial for bootstrapping ProxySQL with a Secret-backed MySQLVariables.cnf via spec.configuration.init.secretName, and the matching ProxySQL CR example manifest.
PodTemplate guide
docs/guides/proxysql/configuration/using-pod-template/examples/proxysql-misc-config.yaml, docs/guides/proxysql/configuration/using-pod-template/index.md
Adds a tutorial guide for applying spec.podTemplate to a ProxySQL PetSet, including MySQL backend provisioning, supported fields overview, CRD example with pod annotations and container resource requests, verification steps, and cleanup commands, alongside the example manifest.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐇 Hop hop, the docs arrive in pairs,
PgBouncer and ProxySQL filling empty squares,
A Secret holds the config, neat and tight,
PodTemplate annotations set just right,
The rabbit checks each YAML with care—
deletionPolicy: WipeOut, nothing left bare! 🌿

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: adding documentation guides for custom configuration of ProxySQL and PgBouncer, which comprises the core of this PR.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch custom-config

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 and usage tips.

@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.

🧹 Nitpick comments (7)
docs/guides/proxysql/configuration/using-config-file/index.md (6)

81-81: 💤 Low value

Prefer "take a look at" over "have a look at" for American English.

Minor locale preference; both guides use the British English phrasing "have a look at." For consistency with American English documentation standards, use "take a look at" instead.

  • docs/guides/proxysql/configuration/using-config-file/index.md#L81: Change "Have a look at" to "Take a look at"
  • docs/guides/proxysql/configuration/using-pod-template/index.md#L73: Change "Have a look at" to "Take a look at"
🤖 Prompt for 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.

In `@docs/guides/proxysql/configuration/using-config-file/index.md` at line 81,
Replace the British English phrase "Have a look at" with the American English
phrase "Take a look at" for consistency with documentation standards. This
change needs to be made in two files: in
docs/guides/proxysql/configuration/using-config-file/index.md at line 81, change
"Have a look at" to "Take a look at" in the sentence about backend examples; and
in docs/guides/proxysql/configuration/using-pod-template/index.md at line 73,
make the same replacement to ensure consistent American English phrasing across
both guides.

Source: Linters/SAST tools


44-44: ⚡ Quick win

Use hyphenation for compound adjectives: "3-node" instead of "3 node".

Both guides incorrectly use "3 node" instead of the hyphenated "3-node" when modifying "MySQL Group Replication cluster."

  • docs/guides/proxysql/configuration/using-config-file/index.md#L44: Change "3 node" to "3-node"
  • docs/guides/proxysql/configuration/using-pod-template/index.md#L36: Change "3 node" to "3-node"
🤖 Prompt for 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.

In `@docs/guides/proxysql/configuration/using-config-file/index.md` at line 44,
Apply hyphenation to compound adjectives in two documentation files. In
docs/guides/proxysql/configuration/using-config-file/index.md at line 44, change
"3 node" to "3-node" in the phrase describing the MySQL Group Replication
cluster setup. In docs/guides/proxysql/configuration/using-pod-template/index.md
at line 36, make the same change from "3 node" to "3-node" where the compound
adjective modifies the cluster description. Hyphenate compound adjectives to
follow standard English grammar conventions when multiple words combine to
modify a noun.

Source: Linters/SAST tools


13-23: ⚡ Quick win

Use descriptive link text instead of generic "here" across both guide files.

Links with text like [here] are not user-friendly and don't provide context. This pattern appears in both the config-file and pod-template guides.

  • docs/guides/proxysql/configuration/using-config-file/index.md#L13-L23: Replace both "here" links (line 13: "start here" → "start with the KubeDB documentation"; line 23: "steps here" → "installation steps")
  • docs/guides/proxysql/configuration/using-pod-template/index.md#L13-L23: Apply the same fixes to the corresponding lines.
🤖 Prompt for 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.

In `@docs/guides/proxysql/configuration/using-config-file/index.md` around lines
13 - 23, Replace generic "here" link text with descriptive alternatives in both
ProxySQL configuration guide files. In
docs/guides/proxysql/configuration/using-config-file/index.md at lines 13-23,
change the link text "[here]" on line 13 from "start here" to "start with the
KubeDB documentation" and change the link text "[here]" on line 23 from "steps
here" to "installation steps". Apply identical changes to the corresponding
lines 13-23 in docs/guides/proxysql/configuration/using-pod-template/index.md to
maintain consistency and improve user experience by providing context about what
each link contains.

Source: Linters/SAST tools


13-13: ⚡ Quick win

Use descriptive link text instead of generic "here".

Links with text like [here] are not user-friendly and don't provide context. Replace them with descriptive text that indicates the link target.

📝 Proposed fixes for descriptive link text
- > New to KubeDB? Please start [here](/docs/README.md).
+ > New to KubeDB? Please start [with the KubeDB documentation](/docs/README.md).

- - Now, install KubeDB cli on your workstation and KubeDB operator in your cluster following the steps [here](/docs/setup/README.md).
+ - Now, install KubeDB cli on your workstation and KubeDB operator in your cluster following the [installation steps](/docs/setup/README.md).

Also applies to: 23-23

🤖 Prompt for 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.

In `@docs/guides/proxysql/configuration/using-config-file/index.md` at line 13,
Replace the generic link text "[here]" with descriptive text that clearly
indicates the link target. In the line containing the text "New to KubeDB?
Please start [here](/docs/README.md)." and the other occurrence at line 23,
replace "[here]" with more descriptive text such as "the KubeDB documentation"
or "KubeDB getting started guide" that provides context about where the link
leads, making it more user-friendly and improving accessibility.

128-128: ⚡ Quick win

Use consistent capitalization: "PetSet" instead of "petset".

PetSet is the correct Kubernetes API object name. Capitalize consistently throughout the guides for clarity.

📝 Proposed fixes
- Now, wait a few minutes. KubeDB operator will create necessary petset, services, secret etc. If everything goes well, we will see that a pod with the name `sample-proxysql-0` has been created.
+ Now, wait a few minutes. KubeDB operator will create necessary PetSet, services, secret etc. If everything goes well, we will see that a pod with the name `sample-proxysql-0` has been created.

- Check that the petset's pod is running
+ Check that the PetSet's pod is running

Also applies to: 130-130

🤖 Prompt for 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.

In `@docs/guides/proxysql/configuration/using-config-file/index.md` at line 128,
Update the documentation file to use the correct capitalization of the
Kubernetes API object name. Change all instances of "petset" to "PetSet" in the
guide to maintain consistency and clarity. This applies to the text on line 128
where "petset" appears in the context of objects created by the KubeDB operator,
and also on line 130 where the same term appears.

128-130: ⚡ Quick win

Use consistent capitalization: "PetSet" instead of "petset".

Both guides use lowercase "petset" instead of the correct Kubernetes API object name "PetSet."

  • docs/guides/proxysql/configuration/using-config-file/index.md#L128: Change "necessary petset" to "necessary PetSet"
  • docs/guides/proxysql/configuration/using-config-file/index.md#L130: Change "petset's pod" to "PetSet's pod"
  • docs/guides/proxysql/configuration/using-pod-template/index.md#L135: Change "necessary petset" to "necessary PetSet"
  • docs/guides/proxysql/configuration/using-pod-template/index.md#L137: Change "petset's pod" to "PetSet's pod"
🤖 Prompt for 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.

In `@docs/guides/proxysql/configuration/using-config-file/index.md` around lines
128 - 130, The Kubernetes API object name "PetSet" is incorrectly capitalized as
lowercase "petset" across multiple documentation files. Fix the capitalization
at the following locations: In
docs/guides/proxysql/configuration/using-config-file/index.md at line 128,
change "necessary petset" to "necessary PetSet"; at line 130, change "petset's
pod" to "PetSet's pod". In
docs/guides/proxysql/configuration/using-pod-template/index.md at line 135,
change "necessary petset" to "necessary PetSet"; at line 137, change "petset's
pod" to "PetSet's pod". Use the correct capitalization consistently throughout
to reflect the proper Kubernetes API object naming convention.

Source: Linters/SAST tools

docs/guides/proxysql/configuration/using-pod-template/index.md (1)

78-78: 💤 Low value

Avoid repeating the same word at the start of successive sentences.

Lines 77-79 have three consecutive sentences starting with "KubeDB". Consider rewording for better prose flow.

📝 Proposed fix
- KubeDB allows providing a template for the ProxySQL pod through `.spec.podTemplate`. KubeDB operator will pass the information provided in `.spec.podTemplate` to the PetSet created for ProxySQL.
-
- KubeDB accepts the following fields to set in `.spec.podTemplate`:
+ KubeDB allows providing a template for the ProxySQL pod through `.spec.podTemplate`. The operator will pass this information to the PetSet created for ProxySQL.
+
+ The following fields are supported in `.spec.podTemplate`:
🤖 Prompt for 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.

In `@docs/guides/proxysql/configuration/using-pod-template/index.md` at line 78,
In the documentation file, lines 77-79 contain three consecutive sentences that
all begin with "KubeDB", creating repetitive prose. Reword at least one or two
of these sentences to vary the sentence structure and improve readability.
Consider restructuring the sentences to use different subjects, combine related
ideas, or use transitional phrases that allow some sentences to start with
different words while maintaining clarity and document flow.
🤖 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.

Nitpick comments:
In `@docs/guides/proxysql/configuration/using-config-file/index.md`:
- Line 81: Replace the British English phrase "Have a look at" with the American
English phrase "Take a look at" for consistency with documentation standards.
This change needs to be made in two files: in
docs/guides/proxysql/configuration/using-config-file/index.md at line 81, change
"Have a look at" to "Take a look at" in the sentence about backend examples; and
in docs/guides/proxysql/configuration/using-pod-template/index.md at line 73,
make the same replacement to ensure consistent American English phrasing across
both guides.
- Line 44: Apply hyphenation to compound adjectives in two documentation files.
In docs/guides/proxysql/configuration/using-config-file/index.md at line 44,
change "3 node" to "3-node" in the phrase describing the MySQL Group Replication
cluster setup. In docs/guides/proxysql/configuration/using-pod-template/index.md
at line 36, make the same change from "3 node" to "3-node" where the compound
adjective modifies the cluster description. Hyphenate compound adjectives to
follow standard English grammar conventions when multiple words combine to
modify a noun.
- Around line 13-23: Replace generic "here" link text with descriptive
alternatives in both ProxySQL configuration guide files. In
docs/guides/proxysql/configuration/using-config-file/index.md at lines 13-23,
change the link text "[here]" on line 13 from "start here" to "start with the
KubeDB documentation" and change the link text "[here]" on line 23 from "steps
here" to "installation steps". Apply identical changes to the corresponding
lines 13-23 in docs/guides/proxysql/configuration/using-pod-template/index.md to
maintain consistency and improve user experience by providing context about what
each link contains.
- Line 13: Replace the generic link text "[here]" with descriptive text that
clearly indicates the link target. In the line containing the text "New to
KubeDB? Please start [here](/docs/README.md)." and the other occurrence at line
23, replace "[here]" with more descriptive text such as "the KubeDB
documentation" or "KubeDB getting started guide" that provides context about
where the link leads, making it more user-friendly and improving accessibility.
- Line 128: Update the documentation file to use the correct capitalization of
the Kubernetes API object name. Change all instances of "petset" to "PetSet" in
the guide to maintain consistency and clarity. This applies to the text on line
128 where "petset" appears in the context of objects created by the KubeDB
operator, and also on line 130 where the same term appears.
- Around line 128-130: The Kubernetes API object name "PetSet" is incorrectly
capitalized as lowercase "petset" across multiple documentation files. Fix the
capitalization at the following locations: In
docs/guides/proxysql/configuration/using-config-file/index.md at line 128,
change "necessary petset" to "necessary PetSet"; at line 130, change "petset's
pod" to "PetSet's pod". In
docs/guides/proxysql/configuration/using-pod-template/index.md at line 135,
change "necessary petset" to "necessary PetSet"; at line 137, change "petset's
pod" to "PetSet's pod". Use the correct capitalization consistently throughout
to reflect the proper Kubernetes API object naming convention.

In `@docs/guides/proxysql/configuration/using-pod-template/index.md`:
- Line 78: In the documentation file, lines 77-79 contain three consecutive
sentences that all begin with "KubeDB", creating repetitive prose. Reword at
least one or two of these sentences to vary the sentence structure and improve
readability. Consider restructuring the sentences to use different subjects,
combine related ideas, or use transitional phrases that allow some sentences to
start with different words while maintaining clarity and document flow.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 4719642c-a81b-43b5-8931-9862d57b815c

📥 Commits

Reviewing files that changed from the base of the PR and between 7170308 and 49363c8.

📒 Files selected for processing (10)
  • docs/guides/pgbouncer/configuration/_index.md
  • docs/guides/pgbouncer/configuration/using-config-file/examples/pb-custom.yaml
  • docs/guides/pgbouncer/configuration/using-config-file/index.md
  • docs/guides/pgbouncer/configuration/using-pod-template/examples/pb-misc-config.yaml
  • docs/guides/pgbouncer/configuration/using-pod-template/index.md
  • docs/guides/proxysql/configuration/_index.md
  • docs/guides/proxysql/configuration/using-config-file/examples/proxysql-custom.yaml
  • docs/guides/proxysql/configuration/using-config-file/index.md
  • docs/guides/proxysql/configuration/using-pod-template/examples/proxysql-misc-config.yaml
  • docs/guides/proxysql/configuration/using-pod-template/index.md

@github-actions

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 49363c8):

https://kubedb-v2-hugo--pr888-custom-config-619ktira.web.app

(expires Tue, 23 Jun 2026 12:49:49 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 0f29ae8ae0bd54a99bf2b223b6833be47acd5943

@Bonusree Bonusree marked this pull request as draft June 17, 2026 05:22
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.

1 participant