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

Configuring OpenWhisk

Now we have all of the pods deployed, we can start interacting with our deployment. To start with, we need to find out the external IP address of the NGINX pod. You can find information about the pod by running the following:

$ kubectl -n openwhisk describe service nginx

This is the output:

As you can see, while the ports are exposed they are only exposed on the nodes themselves. As the nodes are on private addresses, we will not be able to access them from our local client. To expose the ports externally we need to create a load-balanced service, to do this run the following command:

$ kubectl -n openwhisk expose service ...

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