I am using Ambassador to manage my Kubernetes services. My Kubernetes services consist of a few web servers and a few postgres. I followed the instructions hereto establish routes to my web servers. Here is an example:
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v1
kind: Mapping
name: somewebservice
prefix: /somewebservice
service: somewebservice:80
This works perfectly for my webserver. I can do curl localhost/somewebservice
and I get the expected response.
I have set up the same annotation in my postgres container, but I cannot do a psql.
annotations:
getambassador.io/config: |
---
apiVersion: ambassador/v1
kind: Mapping
name: atlas
prefix: /somepostgres
service: somepostgres:5432
I see the following:
$ psql -h 'localhost/somepostgres' -p 5432
psql: could not translate host name "localhost/somepostgres" to address: nodename nor servname provided, or not known
My goal is to have Ambassador accept both HTTP/HTTPS & postgres requests. Thanks for your time.