Skip to content

Conversation

@Schmaetz
Copy link
Collaborator

@Schmaetz Schmaetz commented Sep 5, 2025

Preparation for SecurityContext modifications.

Step 1 included here: postgres-exporter sidecar, initcontainer and backup-job-container ready for ReadOnlyRootFilesystem: true

Modifications for postgres-pod and pgbackrest-repo host will follow in step 2 including cleanup and removing compatibility-code

@Schmaetz Schmaetz requested a review from ants September 5, 2025 08:43
FailureThreshold: 6,
ProbeHandler: v1.ProbeHandler{
HTTPGet: &v1.HTTPGetAction{
Path: "/health",
Copy link
Collaborator

Choose a reason for hiding this comment

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

The correct endpoint is /liveness. This checks that Patroni is working, but ignores postgres. Checking /health will break during maintenance mode, upgrade and if starting postgres takes too long.

Copy link
Collaborator Author

@Schmaetz Schmaetz Oct 9, 2025

Choose a reason for hiding this comment

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

fixed with a7fee6f

// },
// TargetContainers: []string{"postgres-exporter"},
// })
// }
Copy link
Collaborator

Choose a reason for hiding this comment

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

addEmptyDirVolume() handles this, so this can be cleaned up.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

fixed with 04f8519

@Schmaetz Schmaetz changed the base branch from main to release-candidate October 10, 2025 08:41
@Schmaetz Schmaetz merged commit 6568409 into release-candidate Oct 10, 2025
0 of 2 checks passed
@Schmaetz Schmaetz deleted the securityContext branch October 10, 2025 08:41
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.

3 participants