Member-only story

CKAD 03 — Creating and Managing Parallel Jobs in Kubernetes

Jorge Freitas
4 min readOct 31, 2024

--

Photo by Christina @ wocintechchat.com on Unsplash

In Kubernetes, Jobs are used to manage batch processing tasks that run to completion. Jobs allow you to run tasks that are non-persistent and are automatically cleaned up once they finish. This exercise focuses on creating a parallel Job that generates a random string, encoded in base64, in each of its pods. Understanding parallel Jobs and their configuration is essential for handling batch tasks in Kubernetes, especially for the CKAD certification.

Prerequisite

Ensure you have Minikube or another Kubernetes cluster set up. For initial setup guides, check out:

Exercise Overview

In this exercise, we’ll create a parallel Job that executes a shell command to generate a random string in each pod. The Job will run two pods in parallel, with a total of five completions. By the end, you’ll understand how to configure and retrieve output from parallel Jobs in Kubernetes.

Step-by-Step Guide

Step 1: Create a YAML Manifest for the Job

--

--

No responses yet