Skip to content

split CG service into internal headless and external service#484

Merged
catpineapple merged 1 commit intoapache:masterfrom
catpineapple:feature/ddc-cg-external-service
Mar 25, 2026
Merged

split CG service into internal headless and external service#484
catpineapple merged 1 commit intoapache:masterfrom
catpineapple:feature/ddc-cg-external-service

Conversation

@catpineapple
Copy link
Copy Markdown
Contributor

For DDC ComputeGroups, separate the single service into two:

  • Internal headless service (original name) for cluster communication and StatefulSet DNS-based pod discovery
  • External service (with -external suffix) for load-balanced access

This enables smooth operator upgrades: users pre-create the external service, switch upstream traffic, then upgrade the operator. The reconcile logic handles the ClusterIP-to-headless migration by detecting and recreating the service when needed.

What problem does this PR solve?

Issue Number: close #xxx

Related PR: #xxx

Problem Summary:

Release note

None

Check List (For Author)

  • Test

    • Regression test
    • Unit Test
    • Manual test (add detailed scripts or steps below)
    • No need to test or manual test. Explain why:
      • This is a refactor/code format and no logic has been changed.
      • Previous test can cover this change.
      • No code files have been changed.
      • Other reason
  • Behavior changed:

    • No.
    • Yes.
  • Does this need documentation?

    • No.
    • Yes.

Check List (For Reviewer who merge this PR)

  • Confirm the release note
  • Confirm test cases
  • Confirm document
  • Add branch pick label

For DDC ComputeGroups, separate the single service into two:
- Internal headless service (original name) for cluster communication
  and StatefulSet DNS-based pod discovery
- External service (with -external suffix) for load-balanced access

This enables smooth operator upgrades: users pre-create the external
service, switch upstream traffic, then upgrade the operator. The
reconcile logic handles the ClusterIP-to-headless migration by
detecting and recreating the service when needed.

Co-Authored-By: catpineapple <catpineapple@users.noreply.github.com>
@catpineapple catpineapple merged commit 22e620b into apache:master Mar 25, 2026
1 check passed
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