April 2018
Intermediate to advanced
250 pages
5h 42m
English
To deploy the newly built function, we use the faas-cli deploy command. It reads the function specification with -f, similar to other sub-commands. In this example, it uses the value of the provider's gateway to deploy the function. If there's already a previous function running as a service on Docker Swarm, the old one will be deleted before deploying the new one. After deployment, the URL for manually invoking the function, such as via curl, will be shown:
$ faas-cli deploy -f hello.yml Deploying: hello.Removing old function.Deployed.URL: http://localhost:8080/function/hello200 OK
To obtain all running functions on the cluster, we can run the faas-cli list command. The command also shows the number of invocations ...
Read now
Unlock full access