• / company
    • about us
      • / about us

        The partner of choice for data & product engineering to drive business growth & deliver an impact within your organization
    • product engineering
      • / product engineering
        We specialize in Software Product Engineering, transforming your concepts into impactful products.
    • technology
      • / technology
        250+ specialists skilled in software, BI, integration, offering end-to-end services from research to ongoing maintenance.
    • methodology
      • / methodology
        We specialize in software product engineering, transforming your concepts into impactful products.
    • careers
      • / careers
        Our team needs one more awesome person, like you. Let’s grow together! Why not give it a try?
    • do good
      • / do good
        We’re a team devoted to making the world better with small acts. We get involved and always stand for kindness.
    • events
      • / events
        LLMs in Action: Transforming How We Work, Communicate, and Innovate
    • blog
      • / blog
        Why Every Developer Should Care About AI Plugins, And What You Might Be Missing
        mindit chats with Andreea Moldovan: “At mindit.io people really put effort into making it happen.”
    • contact us
      • / contact us
        We would love to hear from you! We have offices and teams in Romania and Switzerland. How can we make your business thrive?
  • / get in touch

Kubernetes 101 – Jobs & Cronjobs

ob

A Job creates one or more Pods and will continue to retry execution of the Pods until a specified number of them successfully terminate.

apiVersion: batch/v1

kind: Job

metadata:

name: job

spec:

template:

containers:

– name: nginx

image: nginx:latest

command: [”/bin/sh”, “-c”, “date;”]

backoffLimit: 4

As pods successfully complete, the Job tracks the successful completions.

When a specified number of successful completions is reached, the task (Job) is complete.
CronJob

A CronJob creates Jobs on a repeating schedule.

apiVersion: batch/v1

kind: CronJob

metadata:

name: cronjob

spec:

schedule: “*/1 * * * *”

jobTemplate:

spec:

template:

spec:

containers:

– name: nginx

image: nginx:latest

command: [”/bin/sh”, “-c”, “date;”]

CronJobs are meant for performing regular scheduled actions such as backups, report generation, and so on.

Each of those tasks should be configured to recur indefinitely (for example: once a day / week / month).
Follow the Kubernetes 101 series on mindit.io.

Check out new-spike.net for other articles on Kubernetes and much more!

Distribute:

/turn your vision into reality

The best way to start a long-term collaboration is with a Pilot project. Let’s talk.