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!

Like the other services we have covered, we will be running a quick hello world example. This will introduce you to the difference between OpenFaaS and the other tools. We will also find out why we needed to install Docker. To start with, run the following commands:

$ mkdir hello$ cd hello$ faas-cli new --lang python hello

This will create a folder called hello and then within it, a file called hello.yml and a few folders will be created:

Next, we need to log into a Docker Hub account. To do this, run the following command:

$ docker login

If you do not have a Docker Hub account, you can sign-up for one at https://hub.docker.com/ ...

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