Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 811 Bytes

cronjob.md

File metadata and controls

29 lines (20 loc) · 811 Bytes

Run in kubernetes as a cron job

Here's how to set up a container to run in cron job mode.

You can read about CronJobs in doc

Configuring kafka connect

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

Deploy cron job

⚠️ 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