* Only deploy the ingress controller if you do not have an ingress controller deployed.
kubectl create -f nginx-ingress-controller-with-elb.yml
kubeless trigger http create myfunction --function-name myfunction --hostname myfunction.ghettolabs.io
kubeless trigger http create myfunction --function-name hello --hostname hello.ghettolabs.io
Store token
Store your SLACK API TOKEN in a Kubernetes secret
kubectl create secret generic slack --from-literal=token=<your_token>
Launch the function
Edit bot.py to specify the proper channel.
make slack
Send a slack message
With a local proxy running:
kubeless function call slack --data '{"msg":"This is a message to SLACK"}'
Listen to Kubernetes events in SLACK
Launch the Kafka event sync:
kubeless topic create k8s
kubectl run events --image=skippbox/k8s-events:0.10.12
Deploy the function to get triggered on k8s events and send message to SLACK
make events