Create deploy_function_kafka.sh
This commit is contained in:
parent
3d94bf9a39
commit
d6f24fbb9f
11
functions/deploy_function_kafka.sh
Normal file
11
functions/deploy_function_kafka.sh
Normal 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!"
|
Loading…
Reference in New Issue
Block a user