From 0f42aaf03b228403cb4c56728727cb5d6f0511e8 Mon Sep 17 00:00:00 2001 From: Alex Ellis Date: Thu, 4 Apr 2019 16:11:29 +0100 Subject: [PATCH] Update kong_integration.md --- guide/kong_integration.md | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/guide/kong_integration.md b/guide/kong_integration.md index cdc7a520..d3082b98 100644 --- a/guide/kong_integration.md +++ b/guide/kong_integration.md @@ -1,8 +1,12 @@ -## Status +## Status: deprecated -This guide is not maintained by the project or community. +This guide was written in September 2017 is not maintained by the project or community. -# Integrate Kong with your OpenFaaS cluster on Docker Swarm +If someone wants to maintain it, feel free to raise an issue and volunteer to do that. + +Official documentation is at [https://docs.openfaas.com/](https://docs.openfaas.com/) + +# Guide: Integrate Kong with your OpenFaaS cluster on Docker Swarm [Kong](https://getkong.org) is an API gateway that provides features such as security, logging, and rate limiting. By putting this in front of OpenFaaS you can quickly get access to these things and a lot more via [the many other plugins written](https://getkong.org/plugins/) for it. @@ -15,23 +19,6 @@ If you haven't already setup OpenFaaS then you can follow one of the deployment * [Docker Swarm](https://github.com/openfaas/faas/blob/master/guide/deployment_swarm.md) * [Kubernetes](https://github.com/openfaas/faas/blob/master/guide/deployment_k8s.md) -Here is a quick reference for Docker Swarm: - -``` -$ docker swarm init --advertise-addr $(hostname -i) - -$ git clone https://github.com/openfaas/faas && \ - cd faas && \ - ./deploy_stack.sh -``` - -Check that one of the sample functions works - -``` -$ curl localhost:8080/function/func_echoit -d 'hello world' -hello world -``` - ## Setup Kong Kong stores its configuration in Postgres, so we'll create a Postgres and Kong service then run a one-off migration too.