acorn-io / runtime

A simple application deployment framework built on Kubernetes
https://docs.acorn.io/
Apache License 2.0
1.14k stars 101 forks source link

Local install - Endpoints for apps are not accessible . #2433

Open sangee2004 opened 6 months ago

sangee2004 commented 6 months ago

acorn version - v0.10.0-rc2-35-g3cf6c107+3cf6c107

Steps to reproduce the problem:

  1. Install acorn using acorn -j local ps
  2. Deploy app with published port in local project.
  3. Once app is deployed, the endpoint url made avaialble for the app is not accessible from any machine other than the 1 were acorn is installed.
acorn apps -j local
NAME          IMAGE                              COMMIT         CREATED    ENDPOINTS                                             MESSAGE
mytest        sangeetha/myfirstacorn:v0.0.1                     18h ago    http://mywebnew-mytest-3f21e1ad.atkvra.oss-acorn.io   OK
  1. Accessing endpoint from local machine works as expected

    curl  http://mywebnew-mytest-3f21e1ad.atkvra.oss-acorn.io 
    hello1
  2. Not able to access the endpoint from any other machine

    %curl  http://mywebnew-mytest-3f21e1ad.atkvra.oss-acorn.io 
    404 page not found
    % ping mywebnew-mytest-3f21e1ad.atkvra.oss-acorn.io 
    PING mywebnew-mytest-3f21e1ad.atkvra.oss-acorn.io (127.0.0.1): 56 data bytes
    64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.069 ms
    64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.176 ms
    x64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.128 ms
    64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.202 ms
    ^C
    --- mywebnew-mytest-3f21e1ad.atkvra.oss-acorn.io ping statistics ---
    4 packets transmitted, 4 packets received, 0.0% packet loss
    round-trip min/avg/max/stddev = 0.069/0.144/0.202/0.051 ms