From cc21c092b2021d8c1c1a1a5c12dee95452726910 Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Sun, 7 Jan 2018 18:06:31 +0000 Subject: [PATCH] Update yaml file list to yaml folder --- guide/deployment_k8s.md | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/guide/deployment_k8s.md b/guide/deployment_k8s.md index c3329782..8628db7d 100644 --- a/guide/deployment_k8s.md +++ b/guide/deployment_k8s.md @@ -46,23 +46,22 @@ This step assumes you are running `kubectl` on a master host. $ git clone https://github.com/openfaas/faas-netes ``` -Deploy a synchronous or asynchronous stack. If you're using OpenFaaS for the first time we recommend the synchronous stack. The asynchronous stack also includes NATS Streaming for queuing. +Deploy a stack with asynchronous functionality provided by NATS Streaming. -* Deploy the synchronous stack +* Deploy the whole stack + +This command is split into two parts so that the OpenFaaS namespaces are always created first: + +* openfaas - for OpenFaaS services +* openfaas-fn - for functions ``` -$ cd faas-netes -$ kubectl apply -f ./faas.yml,monitoring.yml,rbac.yml +$ cd faas-netes && \ + kubectl apply -f ./yaml/namespaces.yml && \ + kubectl apply -f ./yaml ``` -Or - -* Deploy the asynchronous stack - -``` -$ cd faas-netes -$ kubectl apply -f ./faas.async.yml,nats.yml,monitoring.yml,rbac.yml -``` +Note: RBAC is optional but encouraged and enabled by default. Asynchronous invocation works by queuing requests with NATS Streaming. An alternative implementation is available with Kafka in an [open PR](https://github.com/openfaas/faas/pull/311). @@ -96,10 +95,12 @@ There are currently no sample functions built into this stack, but we can deploy * Install the CLI ``` -$ curl -sL cli.openfaas.com | sudo sh +$ curl -sL https://cli.openfaas.com | sudo sh ``` -Then clone some samples to deploy on your cluster. +If you like you can also run the script via a non-root user. Then the faas-cli binary is downloaded to the current working directory instead. + +* Then clone some samples to deploy on your cluster. ``` $ git clone https://github.com/openfaas/faas-cli