Skip to content

feat: proxy sidecar injection and headless service discovery for embedded Infinispan - #27

Open
Vaishnav88sk wants to merge 1 commit into
reshaprio:mainfrom
Vaishnav88sk:feat/proxy-sidecar-infinispan
Open

feat: proxy sidecar injection and headless service discovery for embedded Infinispan#27
Vaishnav88sk wants to merge 1 commit into
reshaprio:mainfrom
Vaishnav88sk:feat/proxy-sidecar-infinispan

Conversation

@Vaishnav88sk

Copy link
Copy Markdown
Contributor

Description

This PR migrates the reshapr-proxy sidecar injection logic into reshapr-controllers and adapts it to support the new embedded Infinispan clustering architecture, dropping the legacy sticky-session requirements.

Key Changes

  1. Mutating Admission Webhook (AdmissionControllers.java):

    • Injects the reshapr-proxy sidecar into pods annotated with io.reshapr/inject: "true".
    • Exposes the new JGroups (7778) and FD_SOCK2 (57778) ports on the proxy container.
    • Injects the JAVA_OPTS_APPEND environment variable with JGroups and Infinispan JVM arguments.
    • Sets the -Dreshapr.infinispan.dns-query flag to point to the headless service dynamically provisioned by the operator.
  2. Companion Operator (DeploymentProxyReconciler.java):

    • Watches Deployment resources for the io.reshapr/inject: "true" annotation.
    • Automatically provisions and manages a dedicated headless service (clusterIP: None) named reshapr-proxy-<app-name> for each deployment.
    • This headless service enables DNS_PING cluster discovery so injected sidecars can seamlessly form their embedded JGroups cluster.

Related Issues/PRs

…ry for embedded Infinispan

Signed-off-by: Vaishnav88sk <vaishnavsk8804@gmail.com>
@Vaishnav88sk
Vaishnav88sk requested a review from lbroudoux as a code owner August 3, 2026 16:59
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.

Migration of Kubernetes Admission Controller for Proxy Sidecar Injection

1 participant