nextgenhealthcare / connect-docker

Official Dockerfiles for Connect https://hub.docker.com/r/nextgenhealthcare/connect
Mozilla Public License 2.0
78 stars 51 forks source link

Setting up connect docker image on kubernetes sending data to channel generates HTTP 404 #23

Closed IQHT-DGH closed 2 years ago

IQHT-DGH commented 2 years ago

This is our first attempt at using the connect docker image on kubernetes and have hit an issue where connect is returning 404 when trying to send data to a channel.

The error seen is... [error] 1530#1530: *28276600 connect() failed (111: Connection refused) while connecting to upstream, client: 90.200.224.195, server: nextgen-connect-dev.mydomain.com, request: "GET /UpdateExternalPrimaryIdentifier HTTP/2.0", upstream: "http://10.105.0.75:22223/", host: "nextgen-connect-dev.mydomain.com"

The http url connect is using is nextgen-connect-dev.mydomain.com, my feeling is that this is the problem that is causing the 404 as that url essentially terminates at the NGINX controller and the message is passed to the connect pod/container using DNS and so is using http://Pod-IP-address:22223 and so really the http url should be localhost?

I've included the manifest files in use below, so that hopefully someone can spot a glaring error I've missed and the problem will do away.

Thanks in advance for any help resolving this.

Deployment manifest `apiVersion: apps/v1 kind: Deployment metadata: labels: service: mirth-connect name: mirth-connect spec: replicas: 1 selector: matchLabels: service: mirth-connect strategy: {} template: metadata: labels: service: mirth-connect spec: containers: