faas-netes
faas-netes copied to clipboard
Add queue-worker chart
Signed-off-by: Han Verstraete (OpenFaaS Ltd) [email protected]
Description
Add separate chart for the queue-worker
Motivation and Context
Allow people to set up named queues
How Has This Been Tested?
- Use the chart to setup an additional queue
helm upgrade slow-queue --install chart/queue-worker \
--namespace openfaas \
--set maxInflight=5 \
--set nats.stream.name=slow-queue \
--set nats.consumer.durableName=slow-queue-workers
- Deploy a function with the correct annotations
faas-cli store deploy sleep --annotation com.openfaas.queue=slow-queue
- Invoke the function an check the logs for the slow-queue
echo "" | faas-cli invoke sleep --async
stern slow-queue -n openfaas
Types of changes
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to change)
Checklist:
- [x] My code follows the code style of this project.
- [x] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
- [x] I've read the CONTRIBUTION guide
- [x] I have signed-off my commits with
git commit -s
- [ ] I have added tests to cover my changes.
- [ ] All new and existing tests passed.
Perhaps we should add --set upstreamTimeout=15m
or similar to the example?
FYI this needs a rebase
The PR has been rebased.