Friday, January 16, 2026

Learn how to Deploy a Stand-By/Advert-Hoc Cluster Based mostly on Percona Operator for PostgreSQL


backups:

#    trackLatestRestorableTime: true

    pgbackrest:

#      metadata:

#        labels:

      picture: docker.io/percona/perconapgbackrest:2.55.0

#      initContainer:

#        picture: docker.io/percona/percona-postgresql-operator:2.7.0

#        sources:

#          limits:

#            cpu: 2.0

#            reminiscence: 4Gi

#          requests:

#            cpu: 1.0

#            reminiscence: 3Gi

#        containerSecurityContext:

#          runAsUser: 1001

#          runAsGroup: 1001

#          runAsNonRoot: true

#          privileged: false

#          allowPrivilegeEscalation: false

#          readOnlyRootFilesystem: true

#          capabilities:

#            add:

#              – NET_ADMIN

#              – SYS_TIME

#            drop:

#              – ALL

#          seccompProfile:

#            kind: Localhost

#            localhostProfile: localhost/profile.json

#          procMount: Default

#          seLinuxOptions:

#            kind: spc_t

#            degree: s0:c123,c456

#      containers:

#        pgbackrest:

#          sources:

#            limits:

#              cpu: 200m

#              reminiscence: 128Mi

#            requests:

#              cpu: 150m

#              reminiscence: 120Mi

#        pgbackrestConfig:

#          sources:

#            limits:

#              cpu: 200m

#              reminiscence: 128Mi

#            requests:

#              cpu: 150m

#              reminiscence: 120Mi

#

      configuration:

         secret:

            identify: cluster1pgbackrestsecrets and techniques

#      jobs:

#        restartPolicy: OnFailure

#        backoffLimit: 2

#        priorityClassName: high-priority

#        ttlSecondsAfterFinished: 60

#        sources:

#          limits:

#            cpu: 200m

#            reminiscence: 128Mi

#          requests:

#            cpu: 150m

#            reminiscence: 120Mi

#        tolerations:

#        – impact: NoSchedule

#          key: function

#          operator: Equal

#          worth: connection-poolers

#

#        securityContext:

#          fsGroup: 1001

#          runAsUser: 1001

#          runAsNonRoot: true

#          fsGroupChangePolicy: “OnRootMismatch”

#          runAsGroup: 1001

#          seLinuxOptions:

#            kind: spc_t

#            degree: s0:c123,c456

#          seccompProfile:

#            kind: Localhost

#            localhostProfile: localhost/profile.json

#          supplementalGroups:

#          – 1001

#          sysctls:

#          – identify: internet.ipv4.tcp_keepalive_time

#            worth: “600”

#          – identify: internet.ipv4.tcp_keepalive_intvl

#            worth: “60”

#

      world:

#        repo1-retention-full: “14”

#        repo1-retention-full-type: time

        repo1path: /pgbackrest/postgresoperator/cluster1/repo1

#        repo1-cipher-type: aes-256-cbc

        repo1s3uritype: path

        repo1s3confirmtls: ‘n’

#        repo2-path: /pgbackrest/postgres-operator/cluster1-multi-repo/repo2

#        repo3-path: /pgbackrest/postgres-operator/cluster1-multi-repo/repo3

#        repo4-path: /pgbackrest/postgres-operator/cluster1-multi-repo/repo4

      repoHost:

#        sources:

#          limits:

#            cpu: 200m

#            reminiscence: 128Mi

#          requests:

#            cpu: 150m

#            reminiscence: 120Mi

        affinity:

          podAntiAffinity:

            preferredDuringSchedulingIgnoredDuringExecution:

             weight: 1

               podAffinityTerm:

                 labelSelector:

                   matchLabels:

                     postgresoperator.crunchydata.com/knowledge: pgbackrest

                 topologyKey: kubernetes.io/hostname

#        tolerations:

#        – impact: NoSchedule

#          key: function

#          operator: Equal

#          worth: connection-poolers

#        priorityClassName: high-priority

#

#        topologySpreadConstraints:

#        – maxSkew: 1

#          topologyKey: my-node-label

#          whenUnsatisfiable: ScheduleAnyway

#          labelSelector:

#            matchLabels:

#              postgres-operator.crunchydata.com/pgbackrest: “”

#

#        securityContext:

#          fsGroup: 1001

#          runAsUser: 1001

#          runAsNonRoot: true

#          fsGroupChangePolicy: “OnRootMismatch”

#          runAsGroup: 1001

#          seLinuxOptions:

#            kind: spc_t

#            degree: s0:c123,c456

#          seccompProfile:

#            kind: Localhost

#            localhostProfile: localhost/profile.json

#          supplementalGroups:

#          – 1001

#          sysctls:

#          – identify: internet.ipv4.tcp_keepalive_time

#            worth: “600”

#          – identify: internet.ipv4.tcp_keepalive_intvl

#            worth: “60”

#

      handbook:

        repoName: repo1

        choices:

         kind=full

#        initialDelaySeconds: 120

      repos:

#      – identify: repo1

#        schedules:

#          full: “0 0 * * 6”

#          differential: “0 1 * * 1-6”

#          incremental: “0 1 * * 1-6”

#        quantity:

#          volumeClaimSpec:

#            storageClassName: normal

#            accessModes:

#            – ReadWriteOnce

#            sources:

#              requests:

#                storage: 1Gi

       identify: repo1

         s3:

          bucket: “ajtest”

          endpoint: “https://host.k3d.inner:9000”

          area: “us-east-1”

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles