Closed
Description
Please ensure you do the following when reporting a bug:
- Provide a concise description of what the bug is.
- Provide information about your environment.
- Provide clear steps to reproduce the bug.
- Attach applicable logs. Please do not attach screenshots showing logs unless you are unable to copy and paste the log data.
- Ensure any code / output examples are properly formatted for legibility.
Note that some logs needed to troubleshoot may be found in the /pgdata/<CLUSTERNAME>/pg_log
directory on your Postgres instance.
An incomplete bug report can lead to delays in resolving the issue or the closing of a ticket, so please be as detailed as possible.
If you are looking for general support, please view the support page for where you can ask questions.
Thanks for reporting the issue, we're looking forward to helping you!
Overview
pgAdmin can't be accessed using the Service object, e.g. curl rhino-pgadmin:5050
.
Environment
Please provide the following details:
- Platform: AKS
- Platform Version: 1.26
- PGO Image Tag: 5.5.0
- Postgres Version 16
Steps to Reproduce
REPRO
Provide steps to get to the error condition:
- Follow the example and create a standalone pgadmin statefulset.
- Expose it
kubectl expose -n postgres-operator ${PGADMIN_POD} --name rhino-pgadmin
- Try to curl the service
curl rhino-pgadmin:5050
(for example, from another pod in the cluster)
EXPECTED
- pgadmin is accessible via service
ACTUAL
- http 503
Logs
# curl http://pg-admin:5050 --verbose
* Host pg-admin:5050 was resolved.
* IPv6: (none)
* IPv4: 10.0.34.40
* Trying 10.0.34.40:5050...
* Connected to pg-admin (10.0.34.40) port 5050
> GET / HTTP/1.1
> Host: pg-admin:5050
> User-Agent: curl/8.5.0
> Accept: */*
>
< HTTP/1.1 503 Service Unavailable
< content-length: 175
< content-type: text/plain
< date: Wed, 20 Dec 2023 12:18:30 GMT
< server: envoy
<
* Connection #0 to host pg-admin left intact
Additional Information
- Running
curl 0.0.0.0:5050
from the pgadmin pod itself works fine - I have tried to explicitly set
PGADMIN_LISTEN_ADDRESS
to0.0.0.0
- nothing changes - Using pod's IP instead of service also doesn't work