-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add NATS connector blog #187
base: master
Are you sure you want to change the base?
Conversation
2eaea65
to
c63fa24
Compare
_posts/2020-07-08-event-driven-functions-with-openfaas-and-nats.md
Outdated
Show resolved
Hide resolved
* [kafka-connector](https://github.com/openfaas-incubator/kafka-connector) connects OpenFaaS functions to Kafka topics. | ||
* [nats-connector](https://github.com/openfaas-incubator/nats-connector) an OpenFaaS event-connector to trigger functions from NATS. | ||
* [mqtt-connector](https://github.com/openfaas-incubator/mqtt-connector) MQTT connector for OpenFaaS. | ||
* [cron-connector](https://github.com/openfaas-incubator/cron-connector) triggers OpenFaaS functions based on cron events. | ||
* [VMware vCenter connector](https://github.com/openfaas-incubator/openfaas-vcenter-connector) an OpenFaaS event-connector built to consume events from vCenter and to trigger functions. | ||
|
||
There are several other connectors which allows you to trigger OpenFaaS functions based on events, are written and managed as a third party project. Please refer to this [link](https://docs.openfaas.com/reference/triggers/) for full list. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems like this paragraph and list should switch places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The intent of this line is two highlight other connector which is managed by third party like redis-connector, rabbitmq-connector etc.
_posts/2020-07-08-event-driven-functions-with-openfaas-and-nats.md
Outdated
Show resolved
Hide resolved
_posts/2020-07-08-event-driven-functions-with-openfaas-and-nats.md
Outdated
Show resolved
Hide resolved
_posts/2020-07-08-event-driven-functions-with-openfaas-and-nats.md
Outdated
Show resolved
Hide resolved
_posts/2020-07-08-event-driven-functions-with-openfaas-and-nats.md
Outdated
Show resolved
Hide resolved
_posts/2020-07-08-event-driven-functions-with-openfaas-and-nats.md
Outdated
Show resolved
Hide resolved
_posts/2020-07-08-event-driven-functions-with-openfaas-and-nats.md
Outdated
Show resolved
Hide resolved
_posts/2020-07-08-event-driven-functions-with-openfaas-and-nats.md
Outdated
Show resolved
Hide resolved
_posts/2020-07-08-event-driven-functions-with-openfaas-and-nats.md
Outdated
Show resolved
Hide resolved
Install OpenFaaS using `arkade` | ||
|
||
``` | ||
arkade install openfaas --set basic_auth=true --set functionNamespace=openfaas-fn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove --set basic_auth=true
since that is always the case, same with functionNamespace
IMHO?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed these flags
|
||
#### Create a kubernetes cluster | ||
|
||
`k3d` is a tool to run `k3s` in docker. Create a single node `k3s` cluster. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mention that they can use other tools like KinD (with a link) if they wish.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
@@ -0,0 +1,146 @@ | |||
--- | |||
title: "Event driven functions with OpenFaaS and NATS" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Event-driven
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
e4efc7f
to
ed863d7
Compare
Deploy `receive-message` function | ||
|
||
``` | ||
faas-cli deploy --name receive-message --image openfaas/receive-message:latest \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we have a stack.yml for this instead please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or if this is in a git repo (I think it is), then let's clone and deploy with faas-cli deploy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated
|
||
#### Create a kubernetes cluster | ||
|
||
`k3d` is a tool to run `k3s` in docker. Create a single node `k3s` cluster. You can also use other tools like [KinD](https://github.com/kubernetes-sigs/kind) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you move this to use KinD like the post Lucas put up for Loki? Feel free to copy/paste that section.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated
Please see the latest comments @viveksyngh and update the date to next Monday? |
1f7565b
to
97c42cc
Compare
I have addressed comments and updated the PR. |
Could you please squash the three commits and change the date to next Monday (including filenames)? |
Signed-off-by: Vivek Singh <[email protected]>
97c42cc
to
f378919
Compare
@alexellis I have squashed commits and updated the date. |
Signed-off-by: Vivek Singh [email protected]
Description
Motivation and Context
Have you applied the editorial and style guide to your post?
See the README.md
How have you tested the instructions for any tutorial steps?
Types of changes
Checklist:
git commit -s