can't create a KafkaSource?

fengqi2019 created this issue on 2021-11-18 · The issue is replied 0 times

Expected Behavior

when i create kafkasource as doc

[email protected]:~/knative$ kubectl apply -f kafka-source.yaml
kafkasource.sources.knative.dev/kafka-source created

i should find kafkasource pod:

NAME                                            READY     STATUS    RESTARTS   AGE
event-display-00001-deployment-5d5df6c7-gv2j4   2/2       Running   0          72s

Actual Behavior

but i can't find the pod

[email protected]:~/knative$ kubectl get pods -A | grep source
[email protected]:~/knative$

Steps to Reproduce the Problem

kafka-source.yaml

apiVersion: sources.knative.dev/v1beta1
kind: KafkaSource
metadata:
  name: kafka-source
spec:
  bootstrapServers:
  - kafka-cluster-kafka-bootstrap.kafka:9092 # note the kafka namespace
  topics:
  - knative-demo-topic
  sink:
    ref:
      apiVersion: serving.knative.dev/v1
      kind: Service
      name: event-display
      namespace: kafka

kafka-topic.yaml

[email protected]:~/knative$ kubectl get kafkatopic -A
NAMESPACE   NAME                                                                                               CLUSTER         PARTITIONS   REPLICATION FACTOR   READY
kafka       knative-demo-topic                                                                                 kafka-cluster   3            1                    True

yaml:

apiVersion: kafka.strimzi.io/v1beta2
kind: KafkaTopic
metadata:
  name: knative-demo-topic
  namespace: kafka
  labels:
    strimzi.io/cluster: kafka-cluster
spec:
  partitions: 3
  replicas: 1
  config:
    retention.ms: 7200000
    segment.bytes: 1073741824

service.yaml

apiVersion: serving.knative.dev/v1
kind: Service
metadata:
  name: event-display
  namespace: kafka
#  annotations:
#    autoscaling.knative.dev/minScale: 1
spec:
  template:
    spec:
      containers:
        - # This corresponds to
          # https://github.com/knative/eventing/tree/main/cmd/event_display/main.go
          image: gcr.io/knative-releases/knative.dev/eventing/cmd/event_display
🤔
Didn't find what you were looking for ?
Create your own issue
More Details About Repo
Owner Name knative
Repo Name docs
Full Name knative/docs
Language HTML
Created Date 2018-06-21
Updated Date 2022-01-17
Star Count 3155
Watcher Count 103
Fork Count 1003
Issue Count 73

YOU MAY BE INTERESTED

Issue Title State Comments Created Date Updated Date Closed Date