kafka-source-operator

module
v0.0.0-...-b66af7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2019 License: Apache-2.0

README

Knative Kafka Source Operator

NOTE: POC... not more

  1. Checkout this fork to $GOPATH/src/knative.dev/eventing-operator

  2. Install the KnativeEventing CRD

    kubectl apply -f config/crds/eventing_v1alpha1_knativeeventing_crd.yaml
    
  3. Install the operator

    To install run the command:

    kubectl apply -f config/
    
  4. Install the Eventing custom resource

cat <<-EOF | kubectl apply -f -
apiVersion: v1
kind: Namespace
metadata:
 name: knative-sources
---
apiVersion: operator.knative.dev/v1alpha1
kind: Eventing
metadata:
  name: knative-eventing
  namespace: knative-sources
EOF

Apply some config for the source, like

apiVersion: sources.eventing.knative.dev/v1alpha1
kind: KafkaSource
metadata:
  name: kafka-source
spec:
  consumerGroup: knative-groupp
  bootstrapServers: my-cluster-kafka-bootstrap.kafka:9092
  topics: mytopic
  sink:
    apiVersion: serving.knative.dev/v1alpha1
    kind: Service
    name: event-display

And use the Eventing Kafka Source without Eventing but with ksvc or vanilla k8s service objects....

Directories

Path Synopsis
cmd
pkg
apis/eventing/v1alpha1
Package v1alpha1 contains API Schema definitions for the eventing v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=operator.knative.dev
Package v1alpha1 contains API Schema definitions for the eventing v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=operator.knative.dev
client/clientset/versioned
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/versioned/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/versioned/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/versioned/typed/eventing/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/versioned/typed/eventing/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.
e2e

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL