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
- How to know a Pod's own IP address from inside a container in the Pod?
- Who will decide the "specified number of pods" for replication controller in kubernetes?
- Access other containers of a pod in Kubernetes
- Kubernetes cluster using Vagrant not working after restart
- kubectl not installed with gcloud SDK
- How do I access the Kubernetes api from within a pod container?
- Exposing several services with Vagrant and Kubernetes on my own server
- Does Kubernetes provision new VMs for pods on my cloud platform?
- Any suggestion for running Aerospike on Kubernetes on CoreOS on GCE?
- Kubernetes - kubectl exec bash - session drop and line width
- Google Container Engine (GKE): "Hello Wordpress" tutorial not working (ERR_CONNECTION_REFUSED)
- Kubernetes Pod Creation Speed
- How can i set max count of pods for replication-controller per node?
- Is there a way to tell kubernetes to update your containers?
- Postgres with Kubernetes and persistentDisk
Related Questions in CRON
- Raspberry Pi script boot order
- s3cmd not working as cron-task when echos/dates are added
- How to write the current time to a new line of a .txt file on php execution
- How to check if whenever gem is working?
- Destroy all issue
- Repetition Task C# Server side
- Rails scheduled task behind a load balancer
- Every 5 min cron job between specific time (Windows server 2008 and batch file)
- What is the best way to refresh some script function every XX minutes?
- PHP scripts not executed by cron on Linux server
- Using crontab to make a influxdb backup every week
- Cron Jobs - connect using SOAP
- Output of SQL query and command to a file in shell script
- Log of cron.daily?
- Processes don't terminate when I call Python script using crontab
Related Questions in KNATIVE
- How to create the knative serving
- /busybox/sh: syntax error: bad substitution with Tekton
- How to generate code using the code generator for the custom resource definition
- GCP Cloud Run for Anthos - no healthy upstream
- How should I add HTTP authentication to KNative services?
- knative domain mapping is not working properly. error: 111 occured. how to use?
- Trying to create a Domain Claim in a AKS Cluster using Knative API
- Knative Serving just returns default Apache Webpage
- docker desktop & knative & knative func
- Disabling proxy protocol for the in-cluster communication in Istio
- Google cloud run sudden latency spikes and container instance time increase
- Knative - kubernetes yaml to mount data from google cloud storage
- local knative serving and ambassador wihtout TLS
- How to tells Knative Pod Autoscaler not to kill in-progress long running pod
- Can I set a revision tag for my google cloud run service via terraform?
Related Questions in KNATIVE-SERVING
- How to create the knative serving
- How to generate code using the code generator for the custom resource definition
- Fault injection with Knative serving
- 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?
- knative with eks fargate
- Knative Serving just returns default Apache Webpage
- Knative - kubernetes yaml to mount data from google cloud storage
- local knative serving and ambassador wihtout TLS
- How to tells Knative Pod Autoscaler not to kill in-progress long running pod
- Knative logging: log stash - Kibana unable to fetch mapping
- Installing Knative without internet
- Knative service with Kong gateway and path based routing
- How do I change Knative service's default url domain from example.com to e.g. mydomain.com
Related Questions in KNATIVE-EVENTING
- What is the proper way for a service to send events to multiple knative brokers?
- How to tells Knative Pod Autoscaler not to kill in-progress long running pod
- How to Conect MQTT broker to a knative kafka source
- Installing Knative without internet
- How do I change Knative service's default url domain from example.com to e.g. mydomain.com
- Knative Eventing - NewObservedGenFailure error for helloworld sample's trigger
- SinkBinding fails to inject K_SINK environment variable
- Can Knative's Kafka Broker be fed with events from outside its cluster?
- Connecting KafkaSource to SASL enabled kafka broker of AWS MSK cluster forknative eventing
- how to redeliver the message whenever there is any http error code on kafka consumer service (KafkaSource on Knative)
- Can Knative always start pods for each incoming request?
- Create kubernetes events using kubernetes event api
- How to reply with a CloudEvent using cloudevents sdk-javascript
- How to Connect knative-eventing to RabbitMQ External Source
- IBM Cloud Code Engine: How to overwrite environment variable in cron-invoked job run?
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: