I have a very smiple bokeh app that just draws a graph. i run it with bokeh server using the deafult port 5006. Works fine and renders on my browser as expected.
I am trying to get this to run in kubernetes in a docker container. i’ve mapped port 5006 to port 80 and setup ingres etc and the server does indeed start
2021-09-09 10:30:06,031 Starting Bokeh server version 2.3.3 (running on Tornado 6.1)
2021-09-09 10:30:06,036 User authentication hooks NOT provided (default user enabled)
2021-09-09 10:30:06,039 Bokeh app running at: http://localhost:5006/hello2
2021-09-09 10:30:06,039 Starting Bokeh server with process id: 1
When i hit the URL for the FQDN, it opens a blank webpage with title “Bokeh Application”. Looking at the web cosnole, its erroring with “Failed to connect to Bokeh server: Could not open websocket”.
Searching i see mention of --allow-websocket-origin. It says by deafult it allows 5006. i have tried every combination of this including just the wildcard ‘*’ but i still get the same error. Intuitively i would assume it should be locahost:80 since my kubernetes mapping is doing this:
- name: http port: 80 targetPort: 5006 protocol: TCP
it feel’s like im very close but no cigar. Any idea’s ? thanks in advance as im a bokeh newbie.