Skip to content

fix: plugin-barman-cloud port for readiness probe#776

Open
tuunit wants to merge 4 commits into
cloudnative-pg:mainfrom
tuunit:fix/plugin-barman-cloud-readiness-probe
Open

fix: plugin-barman-cloud port for readiness probe#776
tuunit wants to merge 4 commits into
cloudnative-pg:mainfrom
tuunit:fix/plugin-barman-cloud-readiness-probe

Conversation

@tuunit

@tuunit tuunit commented Jan 6, 2026

Copy link
Copy Markdown

Description

At the moment the port 9090 is used for the readiness probe which is the application port which only get opened / used by the leader. For an HA setup with multiple pods this fails because none leaders only open the health/metrics port 8081.

Fixes #710

Signed-off-by: Jan Larwig <jan@larwig.com>
Copilot AI review requested due to automatic review settings January 6, 2026 08:23
@dosubot dosubot Bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Jan 6, 2026

Copilot AI 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.

Pull request overview

This PR fixes a critical bug in the readiness probe configuration for high-availability setups. The readiness probe was checking port 9090 (the application port), which is only available on the leader pod. In HA deployments with multiple replicas, non-leader pods would fail readiness checks since they only expose the health/metrics port 8081.

Key Changes:

  • Updated readiness probe to use port 8081 instead of 9090 for proper HA support
  • Bumped chart version from 0.4.0 to 0.4.1 (patch version for bug fix)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
charts/plugin-barman-cloud/templates/deployment.yaml Fixed readiness probe to check port 8081 (health/metrics) instead of 9090 (application port)
charts/plugin-barman-cloud/Chart.yaml Incremented patch version to 0.4.1 to reflect the bug fix

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@gbartolini gbartolini added the chart( plugin-barman-cloud ) Related to the plugin-barman-cloud chart label Jan 15, 2026
Comment on lines 76 to +77
tcpSocket:
port: 9090
port: 8081

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

You can also use:

httpGet:
  path: /readyz
  port: 8081
  scheme: http

and /healthz for liveness probe

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Nevertheless, both options require a chart change. Maybe the probe should be made configurable.

@gbartolini what's your opinion on the matter?

@tuunit

tuunit commented Feb 23, 2026

Copy link
Copy Markdown
Author

@itay-grudev @mnencia could you have a look at this change? highly appreciated

Signed-off-by: Jan Larwig <jan@larwig.com>
@dixneuf19

Copy link
Copy Markdown

Hi, also looking for this fix 🙏

@tuunit

tuunit commented Jun 16, 2026

Copy link
Copy Markdown
Author

Friendly ping @itay-grudev @mnencia

Signed-off-by: Itay Grudev <itay+github.com@grudev.com>
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jun 20, 2026
@itay-grudev

Copy link
Copy Markdown
Collaborator

If I am not mistaken, the liveness probe proposal in #707 would suffer from the same issue. Could you add it in this PR with the corrected port?

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

Labels

bug Something isn't working chart( plugin-barman-cloud ) Related to the plugin-barman-cloud chart lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[plugin-barman-cloud] Readiness probe does not allow HA

6 participants