Skip to content

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

Open
tuunit wants to merge 2 commits intocloudnative-pg:mainfrom
tuunit:fix/plugin-barman-cloud-readiness-probe
Open

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

Conversation

@tuunit
Copy link

@tuunit tuunit commented Jan 6, 2026

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
Copy link

Copilot AI left a comment

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

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
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
Copy link
Author

tuunit commented Feb 23, 2026

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

Signed-off-by: Jan Larwig <jan@larwig.com>
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 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

4 participants