How to create a cronjob within Openshift to create and delete a AMQ Stream Kafka topic?

Solution Verified - Updated -

Issue

We want to delete and recreate a Kafka topic daily at a certain period of time. How can this be done by Openshift CronJob [1]

[1] https://docs.openshift.com/container-platform/4.8/nodes/jobs/nodes-nodes-jobs.html#jobs-artifacts_nodes-nodes-jobs

Environment

AMQ Stream 2.x
Openshift 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content