Skip to content

Instantly create and update Knative eventing definitions running on top of your Kubernetes cluster.

Notifications You must be signed in to change notification settings

serverless-components/knative-eventing

Repository files navigation

knative-eventing

Instantly create and update Knative eventing definitions running on top of your Kubernetes cluster with Serverless Components.

 

  1. Install
  2. Create
  3. Configure
  4. Deploy

 

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
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'

4. Deploy

$ serverless

New to Components?

Checkout the Serverless Components repo for more information.

Releases

No releases published

Packages

No packages published