A Serverless Twitter Video Downloader. Built on Knative Eventing and Serving
A simple application which replies with the Video Download link when a Tweet with QUERY is posted
See Application Source Code here:
Eventing
Serving
Add your Twitter API keys in Eventing-Secret.yaml file in deploy/ folder.
Check Eventing-Secret.yaml.example file in deploy/ for reference
Add your Twitter search query as QUERY parameter in Eventing-ConfigMap.yaml
QUERY is taken as an environment variable in the application.
By default QUERY is set to Knative-Download-Video in the configmap
Add your Twitter API keys in Serving-Secret.yaml file in deploy/ folder.
Add Base64 of you twitter handle in lower case in SELF_HANDLE
Check Serving-Secret.yaml.example file in deploy/ for reference
- All the secrets should be in
base64format in the*-Secret.yaml\ - Your secrets file should always be gitignored and dockerignored to avoid leaking secrets
- Twitter Secrets can be different for Eventing and Serving app
- Make sure you're logged in to your Kubernetes Cluster on your Terminal
- Install Knative on the cluster
See Installing Knative - Edit namespace in
Makefile - Use command
make deployon your Terminal to deploy the app to your cluster
- Make sure you're logged in to your Kubernetes Cluster on your Terminal
- Install Knative on the cluster
See Installing Knative - Add label
knative-eventing-injection=enabledto your namespace - Apply all
yamlconfigurations indeploy/