Instantly create and update Knative eventing definitions running on top of your Kubernetes cluster with Serverless Components.
$ npm install -g serverless
Just create a serverless.yml
file
$ touch serverless.yml
Make sure that you have generated your Kubeconfig
file via kubectl
.
# serverless.yml
org: acme
app: todo
name: todo-knative-eventing
component: knative-eventing@dev
inputs:
kubeConfigPath: ../kubeconfig # default is `~/.kube/config`
knativeGroup: eventing.knative.dev # default is `eventing.knative.dev`
knativeVersion: v1alpha1 # default is `v1alpha1`
namespace: 'default' # default is `'default'`
kind: 'Trigger' # default is `'Trigger'`
name: my-knative-event
spec: # eventing specification
filter:
attributes:
type: dev.knative.foo.bar
subscriber:
ref:
name: my-knative-service
kind: 'Service'
apiVersion: 'serving.knative.dev/v1alpha1'
$ serverless
Checkout the Serverless Components repo for more information.