Create deploy_function_kafka.sh

This commit is contained in:
uckingleaf 2019-04-03 23:56:34 +02:00 committed by GitHub
parent 3d94bf9a39
commit d6f24fbb9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,11 @@
#!/bin/bash
#$1=runtime
#$2=filename
#$3=function name
#$4=handler
kubeless function deploy $3 --runtime $1 --from-file $2 --handler $4
kubeless trigger kafka create $3 --function-selector created-by=kubeless,function=$3 --trigger-topic "$3-topic"
#Test from within cluster
#kubeless topic publish --topic "$3-topic" --data "Hello World!"