I would like to create a cronjob via Knative that sends healthcheck messages to my Kafka topic every 10 minutes.
Then we will have a separate endpoint created, that will receive these messages and pass some response to a receiver (healthcheck).
Tried using KafkaBinding, which seems suitable, but cannot apply this template (TLS): https://github.com/knative/docs/tree/main/code-samples/eventing/kafka/binding
I also find it odd, that regular KafkaBinding template contains apiVersion: bindings.knative.dev/v1beta1, while the one with TLS: sources.knative.dev/v1beta1.
Haven't found much documentation on how to create a Cronjob sending messages on Kafka, which is then grabbed using KafkaSource and passed using broker+trigger to my service on K8s.
Anyone got it implemented right? Or found another way for this?
The idea is test the whole flow including KafkaSource, which seems a little bit unstable.
Create a cronjob in Knative publishing messages to Kafka
297 Views Asked by Prox At
1
There are 1 best solutions below
Related Questions in KUBERNETES
- Golang == Error: OCI runtime create failed: unable to start container process: exec: "./bin": stat ./bin: no such file or directory: unknown
- I can't create a pod in minikube on windows
- Oracle setting up on k8s cluster using helm charts enterprise edition
- Retrieve the Dockerfile configuration from the Kubernetes and also change container Java parameter?
- Summarize pods not running, by Namespace and Reason - I'm having trouble finding the reason
- How to get Java running parameters from Spring Boot running inside container in pod where no ps exist
- How do we configure prometheus server to scrape metrics from a pod with Istio sidecar proxy?
- In rke kube-proxy pod is not present
- problem with edge server registration in Eureka
- Unable to Access Kubernetes LoadBalancer Service from Local Device Outside Cluster
- Kubernetes cluster on GCE connection refused error
- Based on my experience, I've outlined the Kubernetes request flow. Could someone please add or highlight any points I might have overlooked?
- how to define StackGres helm chart "restapi" values to use internal LoadBalancer - AWS EKS
- Python3.11 can't open file [Errno 2] No such file or directory
- Cannot find remote pod service - SERVICE_UNAVAILABLE
Related Questions in CRON
- is there a solution to run cron job command in cpanel only from my cPanel host?
- crontab run every minute after 9pm
- Python3.11 can't open file [Errno 2] No such file or directory
- Overwhelming of the Agenda cron jobs on the server
- How to schedule cron job in spring boot to run for every 5 minutes with in specific period
- Building a service which sends emails everyday to the user at a particular time. (NOT RUNNING)
- Extend function execution on product update via a Cron Job or REST_API
- Activity status in Node js
- Azure YAML Pipeline schedule to run on the last Sunday of the month at 4 AM
- Run scheduler on authenticated api
- I would like to Create a schedule in Databricks that runs a job on 1st working day of every month
- Add and Replace Jobs in Crontab
- Moodle Forum notifctions
- python3 working on terminal but not on cron job
- Context Deadline exceeded and WebSocket Url timeout issue
Related Questions in KNATIVE
- How do I configure multi-tenant Kafka-backed Knative channels in an Openshift?
- Knative's support for the Socket protocol
- Is it possible to send KNative events using any kind of SDK in java/kotlin without relying on Http?
- How to mount NFS in Knative v0.23?
- Disabling proxy protocol for the in-cluster communication in Istio
- docker desktop & knative & knative func
- Knative Serving just returns default Apache Webpage
- How should I add HTTP authentication to KNative services?
- Trying to create a Domain Claim in a AKS Cluster using Knative API
- knative domain mapping is not working properly. error: 111 occured. how to use?
- stream terminated by RST_STREAM with error code: PROTOCOL_ERROR
- Trying to request a Knative Autoscale Settings update
- AWS SQS and Knative function
- Slow Knative service creation times
- knative eventing with kafka is sending requests again and again
Related Questions in KNATIVE-SERVING
- How to mount NFS in Knative v0.23?
- How to customize the URL per-service using Knative + Kourier + Operator
- Knative Serving just returns default Apache Webpage
- knative with eks fargate
- How should I add HTTP authentication to KNative services?
- knative domain mapping is not working properly. error: 111 occured. how to use?
- How to fix knative-serving activator pod waiting?
- Fault injection with Knative serving
- Slow Knative service creation times
- kubeflow deployment failed with knative domainmapping-webhook crashloopbackoff
- .rules accessor error on changing networking layer for Knative Serving
- Knative Functions with Spring Boot: Dosnt get up! Readiness Probe Failures?
- Knative intermittently failing to create deployments
- Is Bi-directional Communication with Long-Lived Serving Code Supported in Knative?
- KNative functions: Sclaed down to zero after 30s even if grace period is increased
Related Questions in KNATIVE-EVENTING
- How do I configure multi-tenant Kafka-backed Knative channels in an Openshift?
- What is the proper way for a service to send events to multiple knative brokers?
- AWS SQS and Knative function
- knative eventing with kafka is sending requests again and again
- "address not set" error in a Broker-Trigger configuration with Event Display
- KNative running on different cluster versions: failed to list *v2beta2.HorizontalPodAutoscaler: the server could not find the requested resource
- Issues with KafkaSource Adapter in Knative Eventing: Claims Update Timeout and Packet Decoding Errors
- Can I send event to knative broker directly?
- Knative-eventing broker scalability
- Knative Eventing, KafkaSource kind doesn't read messages from the earliest commit
- Automatic creation of Ingress resources with Knative
- Knative - Set a Kubernetes service as sink or subscriber
- Connecting KafkaSource to SASL enabled kafka broker of AWS MSK cluster forknative eventing
- Create a cronjob in Knative publishing messages to Kafka
- Knative dispatch event messages over HTTPS
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The way to do this without writing any custom code is to create a PingSource + KafkaSink, that would send a fixed event periodically to a Kafka topic.
Configure the event source object:
Configure the event sink object: