Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can't disable back-up schedule, still attempts to sync wall segments #318

Open
@rene-demonsters

Description

@rene-demonsters

I have a production database that I want to periodically sync to our testing server for troubleshooting. I've been able to do this by setting up repo and a datasource. However, I obviously don't want this testing database to sync back to the same repo. So in order to do this I set the schedule to null and used read only credentials:

apiVersion: postgres-operator.crunchydata.com/v1beta1kind: PostgresClustermetadata:  name: mytestingdatabasespec:  dataSource:    postgresCluster:      clusterName: mydatabase      repoName: repo2  postgresVersion: 16  instances:    - name: mydatabase1      replicas: 1      dataVolumeClaimSpec:        accessModes:        - "ReadWriteOnce"        resources:          requests:            storage: 10Gi  users:    - name: mydatabase      databases:        - mydatabase      password:        type: AlphaNumeric  backups:    pgbackrest:      global:        repo2-path: /pgbackrest/postgres-operator/mydatabase/repo2        repo2-retention-full: "7"        repo2-retention-full-type: time      configuration:      - secret:          name: pgo-s3-readonlycredentials      repos:      - name: repo2        schedules: null        s3:          bucket: "mydatabase-backups-pgo"          endpoint: "someuuid.eu.r2.cloudflarestorage.com"          region: "auto"proxy:    pgBouncer:      config:        global:          pool_mode: transaction          ignore_startup_parameters: search_path,extra_float_digits      replicas: 2      affinity:        podAntiAffinity:          preferredDuringSchedulingIgnoredDuringExecution:          - weight: 1            podAffinityTerm:              topologyKey: kubernetes.io/hostname              labelSelector:                matchLabels:                  postgres-operator.crunchydata.com/cluster: mydatabase                  postgres-operator.crunchydata.com/role: pgbouncermonitoring:  pgmonitor:    exporter: {}

However, a job is still being started periodically calledmytestingdatabase-backup-t9f4 (ofc. with different t9f4 each time) attempting (and failing) sync wall segments.

I've also tried setting deletingschedules entirely and settingfull,incremental anddifferential tonull, but none of them had the desired effect of keeping the job from being created. So how do I properly disable back-ups?

To be clear I don't see anycronjobs being created, but ajob is still coming from 'somewhere'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp