DickChesterwood / k8s-fleetman

MIT License
342 stars 816 forks source link

aws k8s cluster: reports are not displaying #32

Closed mukeshjoshi04 closed 1 year ago

mukeshjoshi04 commented 4 years ago

My deployments:

https://github.com/DickChesterwood/k8s-fleetman/files/3914876/workload_service_storage_mongo-stack.zip

application not working properly

RichardKnowles commented 4 years ago

Are you on the course with Udemy, VPP or Manning or just using the files from the repo? It's very likely that there's some critical step on a course video somewhere that's missing. If you are on the course, then can you go to the QA board on the course supplier, we monitor those boards constantly so we should be able to get you up and running quickly.

Needed for full diagnostics:

kubectl get all

Full description of what's happening - if no vehicle reports but the map is rendering, then a copy of the javscript console log.

mukeshjoshi04 commented 4 years ago

Solved: I have checked console log. problem we need to update the api: by hitting the url : {loadbalancer-IP}/api/update then it worked perfectly.

DickChesterwood commented 4 years ago

Thanks for letting me know: I'm not entirely sure what you're doing - just running the system? It shouldn't be necessary to change api urls though, it should just work. Where did you make this change? The webapp Javscript code accesses the /api/update url to set up the websocket connection, but it should automatically be "calling back" to the original server, so the loadbalancer ip should be inferred as being the same.

mukeshjoshi04 commented 4 years ago

In my local system everything works perfectly fine. In case aws . when we hit load balancer Ip on the browser, it only display maps. If you inspect the webpage there is a error as follow:

Error during WebSocket connecttion to {LoadBalanecer IP}: 'Upgrade header is missing and a url is there {loadbalancer-IP}/api/update.

After hitting the url reports starts.

DickChesterwood commented 4 years ago

Thanks. Are you deploying this to a https domain?

mukeshjoshi04 commented 4 years ago

No, its http domain.