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

The commands are slightly different to the ones we ran before, as we do not have to supply a configuration file for kubectl:

$ 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"

Again, you can check the status of the pods by running the following:

$ kubectl -n sock-shop get pods

Once all of the pods are running you can expose the application by running the following:

$ 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

This should give you a port and IP address. ...

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