Closed aleksasiriski closed 1 year ago
Hi,
Thank you for reporting. I haven't tried cloudnative, but that error does indeed suggest that password at least is not getting to the backend config right.
I will look into it.
I've also tried with DigitalOcean Managed Postgres (ver 15, 14 and 11)
I have located that the backend configmap is indeed missing username and password fields completely so the error makes perfect sense.
Then again, my own deployment with the default database does work.
frontend:
image:
# Pull-though cache
repository: registry.samipsolutions.fi/docker/1337kavin/piped-frontend
tag: latest
pullPolicy: Always
env:
BACKEND_HOSTNAME: pipedapi.skylab.fi
backend:
image:
# Pull-though cache
repository: registry.samipsolutions.fi/docker/1337kavin/piped
tag: latest
pullPolicy: Always
config:
PORT: 8080
NUM_WORKERS: 2
PROXY_PART: https://ytproxy.skylab.fi
DISABLE_REGISTRATION: true
ytproxy:
image:
# Pull-though cache
repository: registry.samipsolutions.fi/docker/1337kavin/piped-proxy
tag: latest
pullPolicy: Always
ingress:
main:
enabled: true
ingressClassName: nginx
annotations:
external-dns-cf/is-public: "true"
external-dns-cf/is-dns-public: "true"
external-dns.target/enabled: "true"
external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"
hosts:
- host: &host piped.skylab.fi
paths:
- path: "/"
tls:
- hosts:
- *host
backend:
enabled: true
ingressClassName: nginx
annotations:
external-dns-cf/is-public: "true"
external-dns-cf/is-dns-public: "true"
external-dns.target/enabled: "true"
external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"
hosts:
- host: &api_host pipedapi.skylab.fi
paths:
- path: "/"
tls:
- hosts:
- *api_host
ytproxy:
enabled: true
ingressClassName: nginx
annotations:
external-dns-cf/is-public: "true"
external-dns-cf/is-dns-public: "true"
external-dns.target/enabled: "true"
external-dns.alpha.kubernetes.io/cloudflare-proxied: "true"
hosts:
- host: &proxy ytproxy.skylab.fi
paths:
- path: "/"
tls:
- hosts:
- *proxy
Should be fixed in chart 2.0.1, to be available shortly.
Yep, username and password now work -> cloudnative-pg works!
Helm chart name
piped
Helm chart version
2.0.0
Container name
piped-backend
Container tag
default
Description
Default database results in non working piped deployment. Frontend and ytproxy seem to work fine but backend doesn't return anything to front for it to display any content, so it's just stuck there.
Also, when trying to use external postgresql backend errors out with this:
The server requested SCRAM-based authentication, but no password was provided.
So it seems that the password field in values.yaml isn't being properly used.
Expected result
Helm chart with PROXY_PART, API_URL and FRONTEND_URL to just work™ OOTB. For Postgres config to work as well as the default.
Helm values to reproduce
Additional Information
No response
Repo link
No response