From 7be845cb20cfc068055424c6916f63d7416eedfb Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Mon, 25 Sep 2017 17:46:06 +0100 Subject: [PATCH] Update with additional blog link --- guide/deployment_k8s.md | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/guide/deployment_k8s.md b/guide/deployment_k8s.md index 71fb93d5..0de1ba2f 100644 --- a/guide/deployment_k8s.md +++ b/guide/deployment_k8s.md @@ -15,7 +15,7 @@ You can start evaluating FaaS and building functions on your laptop or on a VM ( * Clone the code ``` -$ git clone https://github.com/alexellis/faas-netes +$ git clone https://github.com/openfaas/faas-netes ``` * Deploy the services @@ -42,7 +42,7 @@ There are currently no sample functions built into this stack, but we can deploy **Use the CLI** -Follow the tutorial below, but change your gateway URL from localhost:8080 to kubernetes-node-ip:31112 +Follow the tutorials below, but change your gateway URL from `localhost:8080` to `kubernetes-node-ip:31112` i.e. @@ -52,9 +52,20 @@ provider: gateway: http://192.168.4.95:31112 ``` +* Learn about the CLI + +[Morning coffee with the OpenFaaS CLI](https://blog.alexellis.io/quickstart-openfaas-cli/) + +* Build your first Python function + [Your first serverless Python function with OpenFaaS](https://blog.alexellis.io/first-faas-python-function/) -You can also deploy the samples from the [FaaS-cli](https://github.com/alexellis/faas-cli), but change the gateway address as above. +You can also deploy the samples from the [FaaS-cli](https://github.com/openfaas/faas-cli), but change the gateway address as above. + +``` +$ git clone https://github.com/openfaas/faas-cli && \ + faas-cli deploy -f samples.yml +``` **Use the UI** @@ -70,3 +81,10 @@ Click "New Function" and fill it out with the following: * Test the function Your function will appear after a few seconds and you can click "Invoke" + +You can also use the CLI like this: + +``` +$ echo -n "" | faas-cli invoke --gateway http://kubernetes-ip:31112 --name nodeinfo +$ echo -n "verbose" | faas-cli invoke --gateway http://kubernetes-ip:31112 --name nodeinfo +```