When a cluster only runs a couple of web services, a plain Deployment and Ingress are enough. Then real workloads arrive: Apache Spark jobs, LLMs on GPUs, and urgent debugging of a stuck pod. This roundup covers three practical building blocks for that work: a Python client for Spark in Kubeflow, the AI inference stack, and an open-source CKAD practice repo.
Kubeflow SparkClient (KEP-107): Launching Spark Jobs in Kubernetes from Python Without Hand-Written YAML
Running batch Apache Spark jobs on Kubernetes directly gets tedious fast. First you install Spark Operator (which turns a SparkApplication resource into driver and executor pods), then you assemble a long YAML manifest by hand for every pipeline. In the Kubeflow ecosystem, proposal KEP-107 removes that boilerplate: the Kubeflow SDK now includes SparkClient, installed via pip install "kubeflow[spark]".
from kubeflow.common.types import KubernetesBackendConfig
from kubeflow.spark import SparkClient
from kubeflow.spark.job import FuncJob
from pyspark.sql import SparkSession
# Standard ETL function that will run on the cluster
def etl_pipeline(date: str, output_path: str):
spark = SparkSession.builder.getOrCreate()
df = spark.read.parquet(f"s3a://data/raw/{date}/")
df.filter(df.status == "valid").write.parquet(output_path)
client = SparkClient(
backend_config=KubernetesBackendConfig(namespace="etl-jobs")
)
# Submit the job without writing YAML by hand
job_name = client.submit_job(
job=FuncJob(
func=etl_pipeline,
func_args={
"date": "2026-06-01",
"output_path": "s3a://data/processed/",
},
),
num_executors=3,
resources_per_executor={"cpu": "2", "memory": "4Gi"},
)
# Wait for completion, read logs, and delete the job
client.wait_for_job_status(job_name)
logs = client.get_job_logs(job_name)
client.delete_job(job_name)
Directly from Python, you can set Labels, Annotations, NodeSelector, and Toleration, and for interactive work there is client.connect() over Spark Connect (plus list_jobs() and get_job()). One catch: Spark Operator still needs to be installed in the cluster, and for connect(), your local pyspark-connect version must match DEFAULT_SPARK_VERSION on the backend.
The 2026 AI Inference Stack: How GPUs, KV Cache, and Routing Come Together in Kubernetes
Running an LLM in Kubernetes sounds simple: pack weights into a container, spin up three replicas behind a normal load balancer, and attach a CPU-based HPA. Under real traffic, that setup stalls almost immediately.
Token generation has two distinct phases: prefill (processing the entire prompt, compute-bound on the GPU) and decode (emitting tokens one by one, bound by HBM memory bandwidth). To avoid recomputing the prompt on every token, engines like vLLM keep a KV cache (intermediate attention tensors) in memory. PagedAttention slices it into blocks without fragmentation, while prefix caching reuses shared system prompts or RAG context across requests.
So why change the load balancer? Plain round-robin sends the next turn of a conversation to a pod with a cold cache, forcing the GPU to recompute the whole context. In Kubernetes, Gateway API Inference Extension solves this: paired with HTTPRoute, InferencePool and Endpoint Picker (via Envoy ext-proc) route requests to a pod with a warm prefix and a short queue (prefix-aware routing). Above that sit the NVIDIA GPU Operator, KServe, and KEDA for scaling on queue length and tokens instead of CPU. You don't need to split prefill and decode into separate pools on day one — starting with vLLM, PagedAttention, prefix caching, and queue metrics is plenty.
CKAD Exercises: 9 Sections of Hands-On Kubernetes Tasks for Minikube and Kind
No matter how many SDKs sit on top of your cluster, sooner or later a pod will crash from a bad config, network rule, or readiness probe. That's when muscle memory saves you. To build it, check out the free MIT-licensed CKAD-exercises collection — 10.2k stars and 5.9k forks on GitHub.
The repo was built for the CNCF Certified Kubernetes Application Developer exam: nine sections with solutions and doc links, plus a j.podman.md file.
Topic Weighting in the Classic CKAD Curriculum
The heaviest focus is on pod design, configuration, and observability, rounded out by Helm and CRDs (check the current CNCF curriculum before sitting the exam). Practice on a local Kind (nodes in Docker) or Minikube cluster, and check the answer only after trying yourself. For speed in kubectl, generate YAML drafts straight from the terminal.
# Spin up a local cluster with Kind or Minikube
kind create cluster --name ckad-cluster
# alternative: minikube start
# Shorten commands and enable on-the-fly YAML generation
alias k=kubectl
export do="--dry-run=client -o yaml"
# Generate manifest drafts without typing from scratch
k run nginx-pod --image=nginx $do > pod.yaml
k create deployment web-app --image=nginx --replicas=3 $do > deploy.yaml
k create configmap app-config --from-literal=LOG_LEVEL=info $do > cm.yaml
The --dry-run=client -o yaml flag builds a valid manifest locally without touching the cluster. You just add the needed env vars or probes and apply the file with k apply -f — after a couple of evenings of practice, routine cluster edits stop slowing you down.




