The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

324824 (2) [Avatar] Offline
Thank you for the effort on the book, it has being a good read so far.

I hit one problem though in chapter 2.3.2 the service is exposed as LoadBalancer, but that seems only to work on google.

At least for me it did not work with minikube which I believe would be the training platform of choice for many people. It would be good to add something about running it as NodePort.

Kind regards,
Marko Lukša (70) [Avatar] Online
Yes, you're correct. I'm aware of this and am planning to go over all the examples again, using minikube (I initially ran the examples on GKE and only later added minikube into the mix).

Regarding the LoadBalancer problem, as mentioned in the book, a LoadBalancer service is also a NodePort service, so you can access it through the node port (you don't even have to change its type).
350273 (2) [Avatar] Offline
I found that it works but it's simulated and you never get an extenal IP:

You just can get the external url to the service with minikube service --url helloswarm-http
A little footnote about this will be nice.
Marko Lukša (70) [Avatar] Online
Yes, I've included a tip on using minikube service. It's in the newest MEAP update, which was released just hours ago.