Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yankeexe/openfaas-functions
Collection of Serverless OpenFaas functions.
https://github.com/yankeexe/openfaas-functions
docker faas kubernetes openfaas openfaas-function serverless serverless-functions
Last synced: 9 days ago
JSON representation
Collection of Serverless OpenFaas functions.
- Host: GitHub
- URL: https://github.com/yankeexe/openfaas-functions
- Owner: yankeexe
- Created: 2020-08-23T12:33:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-04-28T15:18:50.000Z (over 3 years ago)
- Last Synced: 2023-03-08T18:03:59.251Z (almost 2 years ago)
- Topics: docker, faas, kubernetes, openfaas, openfaas-function, serverless, serverless-functions
- Language: Python
- Homepage:
- Size: 7.81 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OpenFaas Functions
Read my blog on [OpenFaas Functions](https://dev.to/yankee/deploy-your-serverless-python-function-locally-with-openfaas-in-kubernetes-18jf)
## 1. [pydict](https://github.com/yankeexe/openfaas-functions/tree/master/pydict)
Returns meaning of words provided.Installation Instructions
**Build, Push, and Deploy the function**
```bash
faas-cli build -f functions.yml --filter pydictfaas-cli push -f functions.yml --filter pydict
faas-cli deploy -f functions.yml --filter pydict
```**Invoke the function:**
```bash
echo "brevity" | faas-cli invoke pydict
```## 2. [ytdl](https://github.com/yankeexe/openfaas-functions/tree/master/ytdl)
Download mp3 from provided URL
Installation Instructions**Build, Push, and Deploy the function**
```bash
faas-cli build -f functions.yml --filter ytdl -b ADDITIONAL_PACKAGE=ffmpegfaas-cli push -f functions.yml --filter ytdl
faas-cli deploy -f functions.yml --filter ytdl
```**Invoke the function:**
```bash
echo "" | faas-cli invoke ytdl >
```## 3. [translator](https://github.com/yankeexe/openfaas-functions/tree/master/translator)
Translate between languages.
Installation Instructions**Build, Push, and Deploy the function**
```bash
faas-cli build -f functions.yml --filter translatorfaas-cli push -f functions.yml --filter translator
faas-cli deploy -f functions.yml --filter translator
```**Invoke the function:**
Make sure the terminal supports encoding. If not use API testing tool like Insomnia or Postman.`des`: output language; defaults to `'en'`.
Complete list of [supported languages](https://github.com/yankeexe/openfaas-functions/tree/master/translator/README.md).
```bash
echo '{"text": "नमस्ते", "des": "ko"}' | fc invoke translator --content-type "application/json"
```