I'm following SurrealDB's guide to Deploy on GKE (Google Kubernetes Engine)
When I try to connect the first time to set the root password I get an 502 error:
Every step before was successful.
$ surreal sql -e http://1.2.3.4 # timestamps are omitted
ERROR surreal::cli: There was a problem with the database:
There was an error processing a remote HTTP request:
HTTP status server error (502 Bad Gateway) for url (http://1.2.3.4/health)
# timestamps are omitted
I confirmed I got an IP address:
$ kubectl get ingress surrealdb-tikv
NAME CLASS HOSTS ADDRESS PORTS AGE
surrealdb-tikv <none> * 1.2.3.4 80 3h5m
Those logs seem fine:
$ kubectl logs surrealdb-tikv-xxxxxxxxx-xxxxx
INFO surreal::env: Running 1.1.0+20240109.05682e3 for linux on x86_64
WARN surreal::dbs: ❌ IMPORTANT: Authentication is disabled. This is not recommended for production use. ❌
INFO surrealdb::kvs::ds: Connecting to kvs store at tikv://sdb-datastore-pd:2379
INFO surrealdb::kvs::ds: Connected to kvs store at tikv://sdb-datastore-pd:2379
INFO surrealdb::node: Started node agent
INFO surrealdb::net: Started web server on 0.0.0.0:8000
# timestamps are omitted
What could be wrong?