Project: Support Local volume for PostgreSQL WAL archiving

Created on 27 Mar 2019  路  5Comments  路  Source: kubedb/project

WAL-archiving to PVC seems to be supported in the CRD, but i always get this error message:

admission webhook "postgres.validators.kubedb.com" denied the request: no storage provider is configured

This is my configuration:

apiVersion: kubedb.com/v1alpha1
kind: Postgres
metadata:
  name: testpg
spec:
  version: "11.1-v1"
  storageType: Durable
  storage:
    storageClassName: "thin"
    accessModes:
    - ReadWriteOnce
    resources:
      requests:
        storage: 10Gi
  terminationPolicy: Delete
  archiver:
    storage:
      local:
        persistentVolumeClaim:
          claimName: pgbackup-cifs

I'm using version 0.11.0

dpostgres

Most helpful comment

We can add support for it. No one has asked for it so far.

All 5 comments

Wal-g archiving is not supported for Local PVC. Current you can use s3, gcs, azure or swift storage. Please see here: https://kubedb.com/docs/0.11.0/guides/postgres/snapshot/continuous_archiving/

Is there a reason why this is not supported in kubedb? Wal-g supports writing local files.

We can add support for it. No one has asked for it so far.

apiVersion: kubedb.com/v1alpha1
kind: Postgres
metadata:
  name: testpg
spec:
  version: "11.1-v1"
  storageType: Durable
  storage:
    storageClassName: "thin"
    accessModes:
    - ReadWriteOnce
    resources:
      requests:
        storage: 10Gi
  terminationPolicy: Delete
  archiver:
    storage:
      local:
        persistentVolumeClaim:
          claimName: pgbackup-cifs
        mountPath: /data/pgbackup-cifs
  elif [[ ${ARCHIVE_FILE_PREFIX} != "" ]]; then
    export WALG_FILE_PREFIX="${ARCHIVE_FILE_PREFIX}/$(hostname)"
    mkdir =p $WALG_FILE_PREFIX
Was this page helpful?
0 / 5 - 0 ratings

Related issues

yazfaz picture yazfaz  路  4Comments

olksdr picture olksdr  路  6Comments

sfitts picture sfitts  路  7Comments

sherifkayad picture sherifkayad  路  3Comments

pjebs picture pjebs  路  3Comments