-
Notifications
You must be signed in to change notification settings - Fork 3
Security context #88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Security context #88
Conversation
…eadOnlyRootFilesystem-parameter
…m True - exporter changed to ReadOnlyRootFilesystem=true
pkg/cluster/k8sres.go
Outdated
| FailureThreshold: 6, | ||
| ProbeHandler: v1.ProbeHandler{ | ||
| HTTPGet: &v1.HTTPGetAction{ | ||
| Path: "/health", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed with a7fee6f
pkg/cluster/k8sres.go
Outdated
| // }, | ||
| // TargetContainers: []string{"postgres-exporter"}, | ||
| // }) | ||
| // } |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed with 04f8519
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