mirror of
https://github.com/openfaas/faas.git
synced 2025-06-30 02:33:29 +00:00
Update kong_integration.md
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user