@serverless/knative-eventing

0.2.1 • Public • Published

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

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.

Dependents (3)

Package Sidebar

Install

npm i @serverless/knative-eventing

Weekly Downloads

4

Version

0.2.1

License

Apache

Unpacked Size

7.36 kB

Total Files

8

Last publish

Collaborators

  • ac360
  • serverless-main