1020 Commits

Author SHA1 Message Date
Alex Ellis
7d31734734
Update README.md 2018-03-31 15:20:25 +01:00
Alex Ellis
54abee9a23
Update to link to next-gen watchdog 2018-03-31 14:01:30 +01:00
Alex Ellis
bdc4f02deb
Update README.md
Adds link to the under-construction docs site and the new workshop.
2018-03-31 13:59:46 +01:00
Michael Herman
b11d7aa42b added pycon talk
Signed-off-by: Michael Herman <hermanmu@gmail.com>
2018-03-31 08:31:38 +01:00
Michael Herman
5b3099fb90 added openfaas code eval sample, re-ordered samples by date
Signed-off-by: Michael Herman <hermanmu@gmail.com>
2018-03-31 08:31:38 +01:00
Alex Ellis (VMware)
6bd604f588 Add ARM builds of AlertManager/Prometheus
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-29 14:07:36 +00: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
rgee0
e7001b2b49 Remove patching references from ARM deployment guide
Signed-off-by: rgee0 <richard@technologee.co.uk>
2018-03-28 19:08:54 +01:00
Alex Ellis (VMware)
65ed8457af Fix issue in passing-through of proxy body
Proxy body was being passed correctly due to placement of defer
statement. This has been moved into outer scope to resolve issue.

Tested with new e2e tests in certifier component.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-27 21:12:38 +01:00
Alex Ellis (VMware)
58bd87c811 Update proxy to pass query-string
HTTP proxy was not passing query-string upstream. This change
reinstates the behaviour through TDD - adding test coverage and
automated regression testing.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-27 19:33:43 +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 (VMware)
9a1b119c9f Remove Prometheus tracking for forwarded requests
Forwarded requests were being logged in the function metrics and
I saw this when doing some testing on auto-scaling with K8s.

This change removes the call to the Prometheus notifier for any
calls which are forwarded to the provider and retains them for the
functions.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-26 13:12:29 +01:00
Alex Ellis
949810c403
Update troubleshooting guide about namespaces
Updated to show how to use namespaces with Kubernetes
Also updates the timeouts for gateways newer than 0.7.7
2018-03-26 09:21:59 +01:00
Alex Ellis (VMware)
de2c74fcdb Add feature for graceful shutdown of HTTP server
If the watchdog is sent SIGTERM from an external process then it
should stop accepting new connections and attempt to finish the
work in progress. This change makes use of the new ability in Go
1.9 and onwards to cancel a HTTP server gracefully.

The write_timeout duration is used as a grace period to allow all
in-flight requests to complete. The pattern is taken directly from
the offical example in the Golang documentation. [1]

Further tuning and testing may be needed for Windows containers which
have a different set of signals for closing work. This change aims
to cover the majority use-case for Linux containers.

The HTTP health-check is also invalidated by creating an and
expression with the existing lock file.

Tested with Kubernetes by deploying a custom watchdog and the
fprocess of `env`. Log message was observed when scaling down and
connections stopped being accepted on terminating replica.

Also corrects some typos from previous PR.

[1] https://golang.org/pkg/net/http/#Server.Shutdown

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-24 16:38:46 +00: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
Eric Stoekl
ca425b8183 Adding Azure AKS Part 2 to community.md
Signed-off-by: Eric Stoekl <ems5311@gmail.com>
2018-03-24 08:29:17 +00:00
Marko Mudrinić
ca15008adc guide,do: switch to ubuntu-17-10-x64
Signed-off-by: Marko Mudrinić <mudrinic.mare@gmail.com>
2018-03-23 21:26:26 +00:00
Ken Fukuyama
4877a60aee Changed the download functionality to cover IE.
Since IE doesn't work well with `.click()` (because of access denied) we
can take advantage of the `navigator.msSaveOrOpenBlob`.
https://stackoverflow.com/questions/46232980/click-giving-access-denied-in-ie11/46233123#46233123

Signed-off-by: Ken Fukuyama <kenfdev@gmail.com>
2018-03-23 16:43:38 +00:00
Ivana Yovcheva
c633fbb96d Fix mouse click error on IE11
MouseEvent initialization was failing on IE11.
Add a separate case for IE11 that fixes the issue.

Signed-off-by: Ivana Yovcheva <iyovcheva@vmware.com>
2018-03-23 16:43:38 +00:00
Ivana Yovcheva
0f126ce241 Fix crypto breaking error for IE11
window.crypto is throwing an error on IE11
which required a modification to use window.msCrypto
instead in case of running on IE11

Signed-off-by: Ivana Yovcheva <iyovcheva@vmware.com>
2018-03-23 16:43:38 +00:00
John Callaway
f36b84bb18 Update community.md
Added blog post, podcast episode, 3 speaking engagements, and author to a 2017 blog/podcast row to fix formatting.

Signed-off-by: John Callaway <john@1north.com>
2018-03-23 16:40:56 +00:00
David Muckle
5824d865c6 Add a title to the index.html for the gateway
This will replace the gateway URL showing up as the title.

Signed-off-by: David Muckle <dvdmuckle@dvdmuckle.xyz>
2018-03-23 16:38:19 +00:00
John McCabe
f9d081accb Remove invalid UPDATE HTTP Method from watchdog
The UPDATE HTTP Method isn't valid and not currently in use by the
watchdog so removing it.

Signed-off-by: John McCabe <john@johnmccabe.net>
2018-03-23 16:37:33 +00:00
John McCabe
fac3345668 Use http package consts for http methods
This commit replaces occurences of http method strings with the
corresponding consts from the http package.

*Note* UPDATE is not strictly speaking a valid method and as such isn't
part of the http package (should be a PUT or PATCH?)

Signed-off-by: John McCabe <john@johnmccabe.net>
2018-03-23 16:37:33 +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 (VMware)
a841e3d7f3 Fix bug reading default value for combine_output
The default should be set to true so we maintain backwards.
compatibility.
readconfig.go was altered due to bug reading default value. This was
tested by adding unit tests to readconfig_test.go for positive and
negative scenarios.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-22 11:23:49 +00:00
Daniel Shapira
ae1279a553 Add Twistlock's blog post
Adding a blog post on securing Kubernetes for OpenFaaS

Signed-off-by: Daniel Shapira <daniel@twistlock.com>
2018-03-21 15:11:59 +00:00
Burton Rheutan
04718101ff Community.md missing blog post by BurtonR
Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
2018-03-21 13:21:58 +00:00
Alex Ellis
fa97882234
Add Contino blog post 2018-03-21 08:52:54 +00:00
Alex Ellis
9f87511ab3
Add John's event for CPH and two VMware blogs 2018-03-21 08:49:27 +00:00
Alex Ellis
f604b20503
Add 2018 events for Alex / Nic 2018-03-21 08:40:06 +00:00
Alex Ellis (VMware)
c716c54868 Break out logging / metrics for functions in forwarding_proxy
Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-20 09:51:42 +00:00
Vivek Singh
c484eeecdb Add /_/health endpoint to watchdog
Introduce new endpoint `/_/health` to watchdog for health status of
functions  which check for `/tmp/.lock` file

Fixes first part of #547 issue.

Signed-off-by: Vivek Singh <vivekkmr45@yahoo.in>
2018-03-20 08:52:22 +00:00
Alex Ellis
df59720377
Update CONTRIBUTING.md
Add link for rewriting Git history in preparation for Derek's new
commit message linting feature.
2018-03-18 20:42:03 +00:00
Alex Ellis
e72252d17d
Correct typo in signed-off message 2018-03-18 19:05:19 +00:00
Alex Ellis
de22f69dd5
Update CONTRIBUTING.md
Adds guidelines for commit message formatting with rules
from Chris Beams' blog post here:

https://chris.beams.io/posts/git-commit/

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-18 18:52:03 +00:00
Alex Ellis (VMware)
30cf8de89b Update combine_output test
Integration test for combine_output should use stat instead of
man as man is not installed in the CI system.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-17 21:12:44 +00:00
Alex Ellis (VMware)
3031d0e1c2 Feature: combine_output to control stdout/stderr
This enables an often-requested feature to separate stderr
from stdout within function responses. New flag combine_output is on
by default to match existing behaviour. When combine_output is set
to false it redirects stderr to the container logs rather than
combining it into the function response.

Tested with unit tests for default behaviour and new behaviour.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-17 20:59:47 +00:00
Alex Ellis (VMware)
85d1436707 Make use of config value for HTTP port override
As added by previous commit with unit tests.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-17 20:20:06 +00:00
Alex Ellis (VMware)
70e9a83e87 Allow override of HTTP port via env-var
HTTP port can now be overriden through use of "port" environmental
variable.

Prefer messaging "want" over "wanted" in error messages, this is more
idiomatic Golang.

Move away from Go ARMv6 (RPi Zero) and give ARMv7 as a minimum
version for release binaries.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-17 20:18:09 +00:00
Alex Ellis
207e169cde
Update TestDrive tutorial
PWD links to HTTPS - this is now supported by the provider
Move references to localhost to 127.0.0.1 to prevent clashes with 
IPv6 aliases on Linux systems.

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-17 12:29:09 +00:00
rgee0
f3ae1a2f62 Added AlertManager ARM Dockerfile and openfaas label to armhf network
Signed-off-by: rgee0 <richard@technologee.co.uk>
2018-03-15 21:50:16 +01:00
Alex Ellis
63f8707544
Bump faas-swarm 2018-03-14 22:39:37 +00:00
Alex Ellis
3897d1f54e Bump swarm versions
Signed-off-by: Alex Ellis <alexellis2@gmail.com>
2018-03-13 17:30:28 +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
3eccd55963
Update for GKE RBAC instruction 2018-03-10 10:37:52 +01:00
Alex Ellis
bcc64e6e0f
Typo fix for link
Typo fix.

Fixes #567

Signed-off-by: Alex Ellis (VMware) <alexellis2@gmail.com>
2018-03-10 10:32:23 +01:00