Skip to content

Commit

Permalink
fix Kubernetes port format
Browse files Browse the repository at this point in the history
  • Loading branch information
bostrick committed Jul 10, 2024
1 parent e8b3ab6 commit b1d95db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def main():
port = os.environ.get("ECHO_WEBAPP_PORT", "8000")

# handle kubernetes supplied envvars of form
# tcp://ipaddr/port
port = port.split("/")[-1]
# tcp://ipaddr:port
port = port.split(":")[-1]

server_address = ('', int(port))
LOG.info(f"echo server binding to port {port}")
Expand Down

0 comments on commit b1d95db

Please sign in to comment.