examples icon indicating copy to clipboard operation
examples copied to clipboard

Can't deploy Kong on DC/OS with HOST networking when listening on port 80

Open s-shine-s opened this issue 8 years ago • 1 comments

I am attempting to have kong listen on port 80 instead of 8000, and I updated the /usr/local/kong/nginx-kong.conf and Dockerfile to rebuilt the image: server { server_name kong; listen 0.0.0.0:80; …… } Dockerfile: FROM kong:0.10.3 COPY nginx-kong.conf /usr/local/kong/nginx-kong.conf EXPOSE 80 8443 8001 7946

DC/OS network definition:

NETWORK TYPE: HOST NAME PROTOCOL HOST PORT LOAD BALANCED ADDRESS
kong tcp 80 kong.marathon.l4lb.thisdcos.directory:80  
kong-admin tcp 8001 kong-admin.marathon.l4lb.thisdcos.directory:8001  
kong-ssl tcp 8443 Not Enabled  
kong-admin-ssl tcp 8444 kong-admin-ssl.marathon.l4lb.thisdcos.directory:8444  
kong-serf-tcp-udp udp, tcp 7946 Not Enabled  

s-shine-s avatar Aug 16 '17 01:08 s-shine-s

@s-shine-s are you still waiting for an answer, and have you seen these docs https://dcos.io/docs/1.10/deploying-services/service-ports/#host-mode? If you worked it out, I'd love to close this issue :)

judithpatudith avatar Nov 16 '17 00:11 judithpatudith