Created
September 13, 2023 17:18
-
-
Save pierDipi/7ea7ad54c26855f7cc25daf56652b9f0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: kafka.strimzi.io/v1beta2 | |
kind: KafkaTopic | |
metadata: | |
name: knative-demo-topic | |
namespace: kafka | |
labels: | |
strimzi.io/cluster: my-cluster | |
spec: | |
partitions: 3 | |
replicas: 1 | |
config: | |
retention.ms: 7200000 | |
segment.bytes: 1073741824 | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: event-display | |
spec: | |
selector: | |
app: event-display | |
ports: | |
- protocol: TCP | |
port: 80 | |
targetPort: 8080 | |
--- | |
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: event-display | |
labels: | |
app: eventd-display | |
spec: | |
containers: | |
- name: event-display-source | |
image: gcr.io/knative-releases/knative.dev/eventing/cmd/event_display | |
ports: | |
- containerPort: 8080 | |
--- | |
apiVersion: sources.knative.dev/v1beta1 | |
kind: KafkaSource | |
metadata: | |
name: kafka-source | |
spec: | |
consumerGroup: knative-group | |
bootstrapServers: | |
- my-cluster-kafka-bootstrap.kafka:9092 # note the kafka namespace | |
topics: | |
- knative-demo-topic | |
# ceOverrides: | |
# type: mycustomtype | |
sink: | |
ref: | |
apiVersion: v1 | |
kind: Service | |
name: event-display |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment