I have been trying to follow the instructions on https://github.com/snowplow/snowplow-docker/tree/develop/iglu-server/example/kubernetes in order to deploy an iglu-server on a minikube, but so far it has not resulted in a usable deployment.
After investigating, I believe the
postgres-srv service provided by
postgres.yaml is broken. I followed the steps 1-3: Steps 1-2 are just cloning the repo and cd-ing to the relevant directory, step 3 is:
$ kubectl create -f postgres.yaml
I tried to see if the service described in the snowplow provided file
postgres.yaml is healthy
$ kubectl get services postgres-srv NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE postgres-srv NodePort 10.100.33.133 <none> 5432:32011/TCP 16h
The pod seems to be ok
$ kubectl get pods NAME READY STATUS RESTARTS AGE postgres-5c664f9d9c-6jkqr 1/1 Running 0 16h
Then if I try to connect to the service with the psql client
$ psql -h "10.100.33.133" -p 5432 psql: could not connect to server: Connection timed out Is the server running on host "10.100.33.133" and accepting TCP/IP connections on port 5432?
Obviously, the rest of the procedure does not work (I tried) because the iglu server cannot connect to the postgres service.
I did not dare to create an issue on the tracker, because I am a beginner with kubernetes and the mistake could come from me (for the record, since I was not 100% sure I also tried to connect to the db using the other port 32011, although my understanding is that this port should be internal to the pod).
If I can’t connect to the db, I can’t insert the super API key and therefore I can’t play with the service. I am a bit stuck here…
Am I doing anything wrong?