After researching a bit, MAC is problematic with Docker and networking.
So I setup an ubuntu host and set it up with nginx and configured it with reverse proxy to localhost:8002 and ran kubectl proxy.
Here is /etc/nginx/conf.d/default.conf file I setup. Used 8002 as to not conflict with 8001. Plus needed to open a FW ingress rule.
server {
listen 8002;
listen [::]:8002;
server_name example.com www.example.com;
location / {
proxy_pass http://localhost:8001;
}
}
on my mac, I ran this. docker run -d — name realopinsight — publish 8082:4583 rchakode/realopinsight
I could then access the realopinsight web UI on http://localhost:8082
I then configured the kubernetes connection to my cluseter using http://<remote vm public IP>:8002/