Hi,
I have a microservice running locally using minikube. Everything works locally. As far as I my knowledge, by using minikube tunnel
and expose the deployments, I can get the services accessible from the outside.
When I execute the above command, I get this output:
Status:
machine: minikube
pid: 17522
route: 10.96.0.0/12 -> 192.168.59.100
minikube: Running
services: []
errors:
minikube: no errors
router: no errors
loadbalancer emulator: no errors
I get no errors, however, the services field is empty. Find below the list of deployments and services.
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/postgres-deploy 1/1 1 1 19h
deployment.apps/redis-deploy 1/1 1 1 19h
deployment.apps/result-app-deploy 1/1 1 1 19h
deployment.apps/voting-app-deploy 1/1 1 1 19h
deployment.apps/worker-app-deploy 1/1 1 1 19h
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/db ClusterIP 10.97.110.57 <none> 5432/TCP 19h
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 2d17h
service/redis ClusterIP 10.101.153.119 <none> 6379/TCP 19h
service/result-service NodePort 10.110.1.59 <none> 80:30005/TCP 19h
service/voting-service NodePort 10.104.170.27 <none> 80:30004/TCP 19h
When I tried to expose one the services kubectl expose deployment result-service --type=LoadBalancer --port=80
I get this
Error from server (NotFound): deployments.apps "result-service" not found
You can find all .yaml file on my github repository GitHub - raul-parada/voting-app
How do I include my service inside the services field within minikube tunnel? What I am missing? Thanks in advanced!