113 Commits

Author SHA1 Message Date
Alex Ellis (VMware)
ffd81afd02 Refactor #843
Code-review/refactoring for #843. Closes #843.

FaaSHandlers has had info and query handlers added to its list
of types for consistency.

Secrets added to queue-worker component ready for next PR.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-09-05 09:47:49 +01:00
Patricio Diaz
3b4c1d90eb Bump Prometheus & AlertManager
Updated Swarm image versions for Prometheus &
Alertmanager to match Kubernetes stack

- Prometheus: v2.2.0 => v2.3.1
- Alertmanager: v0.15.0-rc.0 => v0.15.0

Signed-off-by: Patricio Diaz <padiazg@gmail.com>
2018-08-29 19:42:29 +01:00
Alex Ellis (VMware)
810e11c1f6 Bump GW to 0.9.0
Adds PATH support over HTTP for functions.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-29 12:47:23 +01:00
Martin Dekov (VMware)
91b6c24494 Bump up the gateway to 0.8.11
I am moving gateway build version to 0.8.11

Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com>
2018-08-22 20:12:04 +01:00
Ivana Yovcheva (VMware)
b18433c6e7 Bump up faas-swarm to 0.4.1
This updates faas-swarm version including a fix for annotations.
In version 0.4.0 the prefix was not removed from the annotation
key, which was causing errors trying to get the value

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-08-09 16:16:21 +01:00
Alex Ellis (VMware)
90335018ff Add read-only support and annotations
The update to the gateway and faas-swarm add read-only containers
and the ability to use annotations in the function schema.

faas-cli 0.6.17 is required.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-08-01 15:50:32 +01:00
Vivek Singh
4cbb7d968d Bump gateway version to 0.8.7
This commit bumps gateway version to 0.8.7 in docker-compose.yml and
also adds `scale_from_zero` environment variable to the gateway.

Fixes: #780

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-07-21 09:33:08 +01:00
Alex Ellis (VMware)
8ede8966cd Bump gateway version
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-16 12:50:08 +01:00
Alex Ellis (VMware)
ff167c8cd4 Bind secrets to stack
Secrets for gateway needed to be bound to stack, but were
commented-out. Tested on Swarm.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-16 12:50:08 +01:00
Alex Ellis (VMware)
a27fceb7f4 Reinstate basic_auth flag
- basic_auth is now set to true by default unless overriden
in the env-var "BASIC_AUTH"

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-16 12:50:08 +01:00
Ivana Yovcheva (VMware)
e6a3658ac3 Edit queue-worker image with openfaas ns
After editing queue-worker to push do openfaas/ ns instead of
functions/ this chage is required to match the image name.
Set to latest version 0.4.8

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-07-13 11:16:23 +01:00
Alex Ellis (VMware)
49cc6ae727 Move to openfaas Hub NS for gw/swarm
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-07-02 13:38:41 +01:00
Alex Ellis (VMware)
500b883084 Revert secret path
Secret path submitted in ced39bcda7e42c481f59689fa3cd95ba4a57bb34
was incorrect and is being reverted. Docker Swarm by default
stores its sercrets in /run/secrets.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-06-30 13:50:03 +01:00
Vivek Singh
ced39bcda7 Updated default secret mount path value
This changes updates the secret mount path default value to
/var/openfaas/secrets at serveral places. It has been changed
from /run/secrets/ to /var/openfaas/secrets after version 0.8.2

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-06-28 21:37:10 +03:00
Alex Ellis (VMware)
25aa95534c Bump gateway version to 0.8.3
New gateway version includes updated queue-worker interface.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-06-18 20:11:50 +01:00
Alex Ellis (VMware)
9d0800837a Bump queue-worker in compose file
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-06-18 20:10:46 +01:00
Alex Ellis (VMware)
7b40854cfb Bump faas-swarm to latest
Includes fixes for secrets path, tested on Swarm.

Secrets now mounted at /var/openfaas/secrets/

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-06-16 17:52:09 -07:00
Alex Ellis (VMware)
ac9f0df5e5 Comment out secrets for gateway
If needed, create the secrets and then uncomment.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-06-04 21:25:15 -07:00
Eric Stoekl
0bb05480a3 Remove sample functions for swarm
Break out sample functions into new stack.yml
Update instructions in Testdrive.md

Signed-off-by: Eric Stoekl <ems5311@gmail.com>
2018-06-04 19:58:10 -07:00
Alex Ellis (VMware)
3ee7c99701 Fix typo on ack_wait
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-05-28 15:21:42 -07:00
Alex Ellis (VMware)
8133414183 Read secrets from variable path
This change enables secrets to be read from any mount on disk
rather than hard-coding a certain location which suits Swarm or
K8s. The default value if not specified will look in the Swarm
location of /run/secrets/

README.md (docs) updated and set to off by default.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-05-23 11:42:42 +01:00
Alex Ellis (VMware)
ef8b38e104 Move to 0.8.1 of gateway
Makes health and info endpoints available, see release notes.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-05-20 19:11:41 +01:00
Alex Ellis
a24302ef46
FaaS-Swarm updated to 0.2.6
FaaS-Swarm updates:
- Support varied private repository tag names
- Move to start-first update strategy

Signed-off-by: Alex Ellis (VMware) alexellis2@gmail.com
2018-05-11 14:16:09 +01:00
Ivana Yovcheva (VMware)
3732276c0d Update gateway version to 0.8.0
This updates the gateway version to the latest 0.8.0 and faas
version in markdown docs

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-04-28 09:35:17 +01:00
Alex Ellis
5644d6ab20
Move gateway to gateway:0.7.9 2018-04-10 13:51:47 -07:00
Ivana Yovcheva (VMware)
eb2dc7aeab Update queue-worker version
Update queue-worker version to latest 0.4.3 in docker compose

Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-03-29 14:41:58 +01:00
Marcos Lilljedahl
b20f527d76 Replace tabs with spaces
Signed-off-by: Marcos Lilljedahl <marcosnils@gmail.com>
2018-03-29 12:53:55 +01:00
Alex Ellis (VMware)
a20534fb41 Bump gateway version to 0.7.8
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-26 20:26:55 +01:00
Alex Ellis
6921e4fc0f
Bump gateway to 0.7.7 for direct function access
0.7.7 allows direct function access bypassing the provider - this makes
the throughput increase and skips a HTTP hop that is no longer required.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-24 16:33:34 +00:00
Alex Ellis
0c7e59fe8a Add direct_functions mode to gateway for tuning
Adds a pair of configuration options for performance tuning. The
gateway can now invoke functions directly and can bypass the
provider. See updated table in README.md for configuration values.

BaseURLResolver is added with unit tests that decouples resolving
upstream URL from the reverse proxy client code.

- SingleHostBaseURLResolver resolves a single upstream host
- FunctionAsHostBaseURLResolver resolves host based upon conventions
within the URL of the request to a function for direct access

Tested with Kubernetes (faas-netes) and faas-swarm through UI, CLI
calling system endpoints and functions directly.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-23 16:35:37 +00:00
Alex Ellis
63f8707544
Bump faas-swarm 2018-03-14 22:39:37 +00:00
Alex Ellis
806e7f88c4 Remove memory limit on gateway/swarm and remove old armhf file
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-13 16:38:29 +00:00
Alex Ellis
62a15032ba Add openfaas label to functions network
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-13 16:14:59 +00:00
Alex Ellis (VMware)
616ac44739 Bump alertmanager to RC version due to bug
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-13 09:26:32 +00:00
Alex Ellis
9cdf24dfc6 Introduce upstream_timeout in .yml file
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-05 12:49:25 +00:00
Alex Ellis
db8eb5cfe2 Bump faas-swarm to 0.2.0
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-03 20:42:16 +00:00
Alex Ellis (VMware)
1e4b0e3c0b Update swagger for function query
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-01 08:34:32 +00:00
Alex Ellis
8f8e337dcc Bump tags for Gateway / FaaS-Swarm
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-02-25 12:42:27 +00:00
Vivek Singh
368bd1680d update read/write timeout config in seconds
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>

updated gateway image tag to new release version
2018-02-25 12:35:39 +00:00
John McCabe
4e9d999554 Bump gateway and watchdog tags/versions
This commit bumps the non-arm gateway from 0.7.0 to 0.7.1 and the arm
variants from 0.6.9 to 0.7.0.

It also updates all watchdog versions to the 0.7.1 release.

Signed-off-by: John McCabe <john@johnmccabe.net>
2018-02-25 11:54:21 +00:00
Alex Ellis
8a3139325b Bump to 0.1.5 of faas-swarm with less verbose logging
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-02-01 09:42:21 +00:00
Alex Ellis
ff9f7a5541 Make debugging less verbose
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-02-01 09:37:05 +00:00
Alex Ellis
f954bf0733 Merge master into breakout_swarm
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-02-01 09:29:54 +00:00
Alex Ellis
9f876ba94b Bump gateway version
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-12-29 16:15:15 +00:00
Alex Ellis
6199c61178 Remove non-async deployment option
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-12-22 09:14:56 +00:00
Alex Ellis
efebf2e217 Bump gateway to 0.6.14
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-12-13 14:21:53 +00:00
Alex Ellis
2949a7a1d1 Bump versions for store
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2017-11-30 10:08:58 +01:00
John McCabe
bc16d125bf Lock down Prometheus Alertmanager and NATS ports by default (#378)
* Stop exposing Alertmanager and NATS ports

This commit stops exposing the Prometheus Alertmanager and NATS ports by
default on Swarm.

The respective sections are commented out with a note on re-enabling
them.

Signed-off-by: John McCabe <john@johnmccabe.net>

* Revert queue-worker dev tag in yaml

Signed-off-by: John McCabe <john@johnmccabe.net>
2017-11-30 01:05:09 +01:00
Alex Ellis
e66357bd5a
Update docker-compose.yml 2017-11-26 22:49:53 +00:00
Alex Ellis
81645789b1
Expand limits for GW 2017-11-25 08:58:53 +00:00