O'Reilly logo

Kubernetes for Serverless Applications by Russ McKendrick

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The Sock Shop

As we did with Azure, there is no need to provide a configuration file this time, so we simply need to run the following commands:

$ kubectl create namespace sock-shop$ kubectl apply -n sock-shop -f "https://github.com/microservices-demo/microservices-demo/blob/master/deploy/kubernetes/complete-demo.yaml?raw=true"$ kubectl -n sock-shop get pods$ kubectl -n sock-shop expose deployment front-end --type=LoadBalancer --name=front-end-lb$ kubectl -n sock-shop get services front-end-lb$ kubectl -n sock-shop describe services front-end-lb

As you can see from the following screenshot, the IP and port give me a URL of http://104.155.191.39:8079:

Also, in the Google Cloud web interface, clicking on Discovery & load balancing should also ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required