@serverless/knative-eventing
v0.2.1
Published
Instantly create and update [Knative eventing](https://knative.dev/docs/eventing/) definitions running on top of your Kubernetes cluster with [Serverless Components](https://github.com/serverless/components).
Downloads
15
Readme
knative-eventing
Instantly create and update Knative eventing definitions running on top of your Kubernetes cluster with Serverless Components.
1. Install
$ npm install -g serverless
2. Create
Just create a serverless.yml
file
$ touch serverless.yml
Make sure that you have generated your Kubeconfig
file via kubectl
.
3. Configure
# serverless.yml
myKnativeEventDefinition:
component: '@serverless/knative-eventing'
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'
4. Deploy
$ serverless
New to Components?
Checkout the Serverless Components repo for more information.