Here's how to set up a container to run in cron job mode.
You can read about CronJobs in doc
The main thing that needs to be done is:
- create a service for kafka connect
- ask the value of the
REST_HOST_NAME
variable is equal to the service name
⚠️ Attention!⚠️ This is an example to demonstrate how it works.
Do not do this in a production environment, this is just an example.First, customize the manifest to suit your environment.
kubectl apply -n kube-dump -f deploy/cronjob.yaml