168 Commits

Author SHA1 Message Date
Alex Ellis (OpenFaaS Ltd)
802461dd02 Bump up faas-swarm and gateway version
The newer faas-swarm version moves to the latest alpine
runtime image and Go 1.13 for builds instead of Go 1.11

Tested on Docker for Mac with deploying openfaas along with a
sample function

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2020-09-24 13:22:29 +01:00
Alex Ellis (OpenFaaS Ltd)
d0ebb19fd9 Update images for all architectures for Swarm
Updates armhf, arm64 and x86_64 - queue-worker moves to multi-
arch image. gateway and basic-auth are updated, along with NATS
which has been done in faas-netes for some time now.

Closes: #1539 (partial PR)
Fixes #1537

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2020-06-15 19:46:00 +01:00
Alex Ellis (OpenFaaS Ltd)
5938e2f068 Update queue-worker version for Swarm
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2020-04-22 10:14:01 +01:00
Alex Ellis (OpenFaaS Ltd)
46b106878d Fix issue with nats version
Fixes: #1487

Regression introduced by 690da5ed5

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2020-03-19 19:34:03 +00:00
Douglas Jones
690da5ed5f bumping the version numbers
Signed-off-by: Douglas Jones <d.m.jones2@gmail.com>
2020-03-19 11:31:25 +00:00
Martin Dekov
c6ee2e4da0 Bump basic auth plugin to 0.18.11
Bumping basic auth plugin to newest 0.18.11 on
all images

Signed-off-by: Martin Dekov <mvdekov@gmail.com>
2020-03-05 21:03:09 +00:00
Martin Dekov
f9711c6436 Bump gateway to newest image
Bumping gateway of arm armhf and x86-64 images
to 0.18.11

Signed-off-by: Martin Dekov <mvdekov@gmail.com>
2020-03-05 21:02:36 +00:00
Alistair Hey
54d2447975 Update compose stacks to latest gateway and basic-auth
Signed-off-by: Alistair Hey <alistair@heyal.co.uk>
2019-12-27 18:55:03 +00:00
Edward Wilde
509ea710e9 Update core OpenFaaS component in docker-compose
Signed-off-by: Edward Wilde <ewilde@gmail.com>
2019-12-10 11:16:27 +00:00
Lucas Roesler
2bd6383dc8 Update swam provider version in compose to 0.8.2
**What**
- Bump faas-swarm vesion to latest, 0.8.2
- Bump arm64 and armhf sevices to their latest versions
- The docker-compose files were invalid when deployed directly because
  the auth url was not configured.  Set the default for basic auth to
  false to make this a valid configuration

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-11-09 11:49:31 +00:00
Alex Ellis (OpenFaaS Ltd)
dc3c5fb9b3 Update to latest gateway
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2019-09-20 08:52:47 +01:00
Alex Ellis (OpenFaaS Ltd)
a2d7382046 Bump gateway to use SVG logo
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2019-09-18 20:29:44 +01:00
Vivek Singh
9690987319 Update prometheus and alertmanager images
This commit updates prometheus and alertmanager version to use
multi-arch images. Prometheus is updated to v2.11.0 and alertmanager is
updated to v0.18.0

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2019-09-17 18:18:34 +01:00
Alex Ellis (OpenFaaS Ltd)
d698f56d0f Bump latest components in stack
Covers #1291 for x86_64

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2019-08-22 16:20:03 +01:00
Alex Ellis
73106565d7 Add logs support for Swarm by bumping versions
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-07-31 11:12:31 +01:00
Vivek Singh
490d74f885 Update gateway to 0.13.9 for swarm
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2019-06-15 12:24:04 +01:00
Alex Ellis
e3b77514d0 Add error handling to basic auth injector
Fixes a problem where basic auth was disabled and a nill pointer
was hit, causing a panic.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-09 20:08:39 +01:00
Alex Ellis
d2965df9f2 Remove un-used RoutelessProxy
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-09 20:08:39 +01:00
Alex Ellis
0758e484f7 Switch to external auth
This commit moves the OpenFaaS gateway from using in-process
basic-auth for everything to use an external auth URL instead.

When auth is not enable, this functionality is not added to the
handlers and behaves as before. When enabled, the configured
plugin with authenticate requests.

Tested on Docker Swarm with positive and negative tests.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-09 20:08:39 +01:00
Alex Ellis
6d8ebc65f1 Deploy basic auth plugin
As part of #1209, this change deploys, but does not enable the
new basic-auth plugin service.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-06 18:54:08 +01:00
Edward Wilde
74a7584f8f Updates faas-swarm to current release 6.2
Signed-off-by: Edward Wilde <ewilde@gmail.com>
2019-05-14 10:31:23 +01:00
Alex Ellis
139062173a Bump compose to use gateway_invoke for nats-queue-worker
This change means the gateway is used to invoke functions
asynchronously rather than directly so that the scale from zero
path can execute.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-05-07 18:18:11 +01:00
Alex Ellis
fd055379e6 Update faas gateway to 0.12.0
0.12.0 moves the Prometheus port to 8082 (internal) and not
exposed on the network

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-04-03 09:39:27 +01:00
Vivek Singh
54eda5ec0d Run metrics server in a separate method
This commit adds changes to run metrics server in a separate method and
also removed port 8082 from exposed port a/c to review comments.

It also uses a smaller static timeout value for new server.

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2019-03-09 17:28:46 +00:00
Vivek Singh
90ddd56985 Add new HTTPServer to serve /metrics on port 8082
This commit runs a new HTTPServer on port 8082 in a goroutine to serve
/metrics endpoint on a different port.

This also update the configurations and compose files.

Fixes: #1081

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2019-03-09 17:28:46 +00:00
Vivek Singh
50e5258c11 Bump queue-worker version to 0.7.1
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2019-02-28 19:49:39 +00:00
Lucas Roesler
3bcc10a07e Upgrade prom and alert manager to 2.7.1 and 0.16.1
**What**
- Removes the `alert` label in the scale-up alert
- Updates the annotaitons to use the `function_name` label instead of
the `instance` label that was removed.
- Per prometheus/prometheus#4836 and the related mailing list discussion
https://groups.google.com/d/msg/prometheus-users/7Ul6ngc7Ogs/j_YDszV5BwAJ
the alert value should not be included in the alert labels otherwise
each calculation of the alert is treated like a new alert and then the
use of `for 5s` will not behave as expected.
- Ports the resoltuion openfaas/faas-netes#372

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-02-21 09:51:38 +00:00
Radoslav Dimitrov
f2ac7b906c Bump Prometheus to 2.7.1
Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
2019-02-20 09:23:01 +00:00
Alex Ellis
bceb69ec62 Update gateway to 0.11.1 and queue-worker to 0.7.0
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-02-12 17:56:08 +00:00
Radoslav Dimitrov
acaefdb839 Bump Prometheus to 2.7.0
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2019-02-05 20:16:25 +00:00
Alex Ellis
cf67fdba71 Bump to 0.11.0 gateway
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-02-04 12:09:41 +00:00
Radoslav Dimitrov
c2877d0904 Update all Docker Compose files to latest images
Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
2019-01-30 11:58:15 +00:00
Radoslav Dimitrov
59c88bc7e5 Reconcile Docker Compose files for each architecture
Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
2019-01-30 11:58:15 +00:00
Alex Ellis (VMware)
b4a550327d Re-vendor queue-worker publisher for reconnect
- re-vendor queue-worker for publisher via 0.6.0
- bump queue-worker version to 0.6.0 in docker-compose.yml for
AMD64
- use new naming for NATS of nats -> NATS in variables where
required
- add default reconnect of 60 times, 2 seconds apart.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2019-01-29 15:15:48 +00:00
Alex Ellis (VMware)
e63150ef70 Add max_idle_conns_* to gateway compose file
- adds max_idle_conns_* default values to  docker-compose.yml to
make it easier to override as a user doing testing/tuning
- make Golang durations easier to read 300s -> 5m

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2019-01-29 15:15:48 +00:00
Lucas Roesler
ee7cbaa360 Bump gateway version to 0.10.2 in compose
**What**
- Bumps the gateway version to 0.10.2 in the default docker-compose file

**Why**
- Finishes the work started in #1049 to enable basic auth for the alert
endpoint, this will allow the deployment via compose to leverage the
basic auth

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-01-29 10:13:28 +00:00
Lucas Roesler
bfa869ec8c Revert docker tag bump to 0.10.0
**What**
- Revert to the original docker tags because we want to for the bump
until after the official release

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-01-24 17:45:33 +00:00
Lucas Roesler
f61735b155 Add basic auth to the system alert endpoint
**What**
- Protect the `/system/alert` endpoint when basic auth is enabled
- Update the alert manager config to send the basic auth credentials
- Bump the gateway version

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2019-01-24 17:45:33 +00:00
Bart Smykla
954b68308e Bumped version of faas-swarm to 0.6.1
I changed the version of image to current one,
which implements secret management endpoint
from 0.5.0 to 0.6.1 in docker-compose.yml (x86_64)

Version of openfaas/gateway was also increased to 0.9.14

Signed-off-by: Bart Smykla <bsmykla@vmware.com>
2019-01-11 11:44:01 +00:00
Lucas Roesler
830159bda3 Bump the faas-swarm version in the compose yml
**What**
- Update the fass-swarm version to 0.5.0

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2018-11-29 10:58:22 +00:00
Ivana Yovcheva
fe6974c74a Fix scale from zero to be true by default
Signed-off-by: Ivana Yovcheva (VMware) <iyovcheva@vmware.com>
2018-11-22 13:30:20 +01:00
Alex Ellis (VMware)
956bfed53d Bump gw to 0.9.11
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-11-21 14:19:04 +01:00
Martin Dekov (VMware)
98a76c6949 Bump gateway to 0.9.10
Bumping gateway image for armhf and x64-86 to be the latest
0.9.10

Signed-off-by: Martin Dekov (VMware) <mdekov@vmware.com>
2018-11-12 10:24:56 +00:00
Lucas Roesler
7e36b2477d Update nats-streaming to 0.11.2
Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2018-10-26 08:21:10 +01:00
Lucas Roesler
cbf39f0069 Bump nats-streaming version to 0.11.0
**What**
- Bumpe nats-streaming version to 0.11.0 in the docker-compose files
- Addresses #790

Signed-off-by: Lucas Roesler <roesler.lucas@gmail.com>
2018-10-26 08:21:10 +01:00
Alex Ellis (VMware)
4a6c6afe94 Bump gw version to 0.9.7
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-10-21 12:49:43 +01:00
Radoslav Dimitrov
31e5439550 Bump queue-worker version to 0.5.4
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-19 12:05:50 +01:00
Radoslav Dimitrov
2d52206c79 Bump faas-swarm version to 0.4.4
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-19 12:05:50 +01:00
Radoslav Dimitrov
456e4f5c2f Bump the gateway version to 0.9.6
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2018-10-19 08:45:05 +01:00
Vivek Singh
41876cc932 Update queue worker version to 0.5.3
Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-10-04 15:28:35 +03:00