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

Hello world

This is exactly the same as the hello world in the previous section, so I won't go into too much detail. Simply change to the folder where you have the hello.js file and run the following commands:

$ wsk -i package create /guest/demo$ wsk -i action create /guest/demo/hello hello.js --web true

Once you have run the commands creating the package and action, you will be able to access the URL. For me, it was the following:

https://35.188.204.73/api/v1/web/guest/demo/hello.http?name=Kubernetes%20for%20Serverless%20Applications

This showed the page we expected to see:

Again, we can see a little more by running HTTPie:

$ http --verify=no ...

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