I have created a NodePort service in Microk8s that uses port 30894/TCP on Ubuntu Budgie. It is the classic starter web api WeatherForecast. I try accessing the service using http://localhostip:30894/WeatherForecast which matches every example I have seen online but the service is not found. I have opened up this port on the local firewall. I have tried every ip address/combination etc but still cannot get this to work. All pods show up as green and I was able to run this same container using Docker locally. Any help is appreciated. Let me know if additional information is needed? Thanks.
I found the problem right after I posted this. I had to change the service port to be the one exposed by my web api service. It started working after that. Hope this helps someone else. Thanks.