Skip to content
Merged
6 changes: 6 additions & 0 deletions docs/administrator.md
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,12 @@ of the backup cron job.
`cronjobs` resource from the `batch` API group for the operator service account.
See [example RBAC](../manifests/operator-service-account-rbac.yaml)

6. Resources of the backup pod are only determined by the configured
[default values](reference/operator_parameters.md#kubernetes-resource-requests)
not by the values specified in the Postgres cluster manifest. This allows for
choosing lower values for CPU and memory requests/limits than for the database
pods.

## Access to cloud resources from clusters in non-cloud environment

To access cloud resources like S3 from a cluster on bare metal you can use
Expand Down
5 changes: 2 additions & 3 deletions pkg/cluster/k8sres.go
Original file line number Diff line number Diff line change
Expand Up @@ -1465,9 +1465,8 @@ func (c *Cluster) generateLogicalBackupJob() (*batchv1beta1.CronJob, error) {

c.logger.Debug("Generating logical backup pod template")

// allocate for the backup pod the same amount of resources as for normal DB pods
defaultResources := c.makeDefaultResources()
resourceRequirements, err = generateResourceRequirements(c.Spec.Resources, defaultResources)
// allocate only default resources for the backup pod
resourceRequirements, err = generateResourceRequirements(acidv1.Resources{}, c.makeDefaultResources())
if err != nil {
return nil, fmt.Errorf("could not generate resource requirements for logical backup pods: %v", err)
}
Expand Down