Commit Graph

168 Commits

Author SHA1 Message Date
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
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
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
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
690da5ed5f bumping the version numbers
Signed-off-by: Douglas Jones <d.m.jones2@gmail.com>
2020-03-19 11:31:25 +00:00
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
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
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
509ea710e9 Update core OpenFaaS component in docker-compose
Signed-off-by: Edward Wilde <ewilde@gmail.com>
2019-12-10 11:16:27 +00:00
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
dc3c5fb9b3 Update to latest gateway
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
2019-09-20 08:52:47 +01:00
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
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
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
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
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
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
d2965df9f2 Remove un-used RoutelessProxy
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-06-09 20:08:39 +01:00
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
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
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
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
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
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
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
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
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
f2ac7b906c Bump Prometheus to 2.7.1
Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
2019-02-20 09:23:01 +00:00
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
acaefdb839 Bump Prometheus to 2.7.0
Signed-off-by: Radoslav Dimitrov <rdimitrow@gmail.com>
2019-02-05 20:16:25 +00:00
cf67fdba71 Bump to 0.11.0 gateway
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2019-02-04 12:09:41 +00:00
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
59c88bc7e5 Reconcile Docker Compose files for each architecture
Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com>
2019-01-30 11:58:15 +00:00
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
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
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
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
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
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
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
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
956bfed53d Bump gw to 0.9.11
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-11-21 14:19:04 +01:00
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
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
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
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
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
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
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
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