zalando / postgres-operator

Postgres operator creates and manages PostgreSQL clusters running in Kubernetes
https://postgres-operator.readthedocs.io/
MIT License
4.22k stars 968 forks source link

[UI] Support Azure and GCP backups with UI #1513

Open apeschel opened 3 years ago

apeschel commented 3 years ago

Please, answer some short questions which should help us to understand your problem / question better?

At the moment, postgres-operator-ui appears to be hard coded to only work with AWS S3 buckets. It will not work with either GCP or Azure, both of which are supported by Spilo and WAL-G. GCP is supported by the postgres-operator, and that still doesn't work either.

It would be nice to have feature parity in the UI for both GCP and Azure.

FxKu commented 3 years ago

As we are not using GCP or Azure we are relying on the community to provide the support for both these platforms. Any help is appreciated.

MPV commented 2 years ago

Could https://github.com/zalando/postgres-operator/issues/937#issuecomment-752280357 be the necessary fix?

rlex commented 2 years ago

any updates on this one? Got same issue with scaleway.

mightymiracleman commented 7 months ago

I've been trying to get this working myself with Azure blob storage; however, I've ran into the same issue as described in https://github.com/zalando/postgres-operator/issues/937#issuecomment-752280357 ( the "no snapshots found" issue). I was able to get it to that point by:

        - name: LOG_LEVEL
          value: debug
        - name: S3PROXY_ENDPOINT
          value: http://0.0.0.0:80
        - name: S3PROXY_AUTHORIZATION
          value: none
        - name: S3PROXY_IDENTITY
          value: local-identity
        - name: S3PROXY_CREDENTIAL
          value: local-credential
        - name: JCLOUDS_AZUREBLOB_AUTH
          value: azureKey
        - name: JCLOUDS_PROVIDER
          value: azureblob
        - name: JCLOUDS_IDENTITY
          valueFrom:
            secretKeyRef:
              name: your-secrets
              key: AZURE_STORAGE_ACCOUNT
        - name: JCLOUDS_CREDENTIAL
          valueFrom:
            secretKeyRef:
              name: your-secrets
              key: AZURE_STORAGE_ACCESS_KEY
        - name: JCLOUDS_ENDPOINT
          value: https://your-storage-acct-id.blob.core.windows.net

I don't see any errors on the operator-ui side, and it will load the clusters and the "base" snapshot section, but it's always empty. I can see all of the requests coming through to the s3proxy as well, and as far as I can tell it's returning the data. I really hope that they at least get it fixed in the s3 version as I think this should work if that issue was fixed. If I get time I'll try that workaround mentioned earlier and see if it works. I can't spend much more time on it at the moment though so it may be a minute.

Thanks all!

bartoszpijet commented 3 months ago

I've tried to run it with Cloudflare R2, after some fixing same thing happends as with Azure blob storage, no snapshots found, I've got no more time for debugging unfortunetelly Required fixes were: