📚Book Signing at KubeCon EU 2026Meet us at Booking.com HQ (Mon 18:30-21:00) & vCluster booth #521 (Tue 24 Mar, 12:30-1:30pm) — free book giveaway!RSVP Booking.com Event

⚙️ Configuration Recipes

Manage Kubernetes configuration with ConfigMaps, Secrets, namespaces, resource quotas, and environment-specific settings.

54 recipes available

Beginner

400 Recipes Milestone: What We Built and What's Next

Kubernetes Recipes reaches 400 production-ready articles. Explore new AI/GPU infrastructure, NVIDIA networking, ArgoCD GitOps, OpenShift, and RHACS security recipes.

⏱ 10 minutes K8s 1.28+

KubeCon EU 2026 Book Signing Events

Join Luca Berton at two KubeCon Amsterdam events: Signal Overflow at Booking.com HQ (Mon 23 Mar) and book signing at vCluster booth #521 (Tue 24 Mar).

⏱ 15 minutes K8s 1.28+

How to Use Downward API for Pod Metadata

Expose pod and container metadata to applications using the Downward API. Access labels, annotations, resource limits, and node information from within.

⏱ 15 minutes K8s 1.28+

How to Use the Downward API

Expose pod and container metadata to applications using the Downward API. Access labels, annotations, resource limits, and pod information from within.

⏱ 15 minutes K8s 1.28+

How to Configure Environment Variables and ConfigMaps

Manage application configuration with environment variables and ConfigMaps. Learn injection methods, mounting as files, and dynamic configuration updates.

⏱ 15 minutes K8s 1.28+

How to Configure Image Pull Secrets

Pull container images from private registries using image pull secrets. Configure authentication for Docker Hub, GCR, ECR, ACR, and private registries.

⏱ 15 minutes K8s 1.28+

How to Manage Kubernetes Contexts and Clusters

Switch between multiple clusters efficiently. Configure kubeconfig, manage contexts, and set up secure multi-cluster access.

⏱ 15 minutes K8s 1.28+

How to Use Kubernetes Jobs and CronJobs

Run batch workloads and scheduled tasks with Jobs and CronJobs. Configure retries, parallelism, and completion tracking for reliable task execution.

⏱ 15 minutes K8s 1.28+

How to Use Labels and Annotations Effectively

Organize and manage Kubernetes resources with labels and annotations. Implement labeling strategies for selection, filtering, and metadata.

⏱ 15 minutes K8s 1.28+

How to Configure Pod Resource Management

Set CPU and memory requests and limits effectively. Understand QoS classes, resource quotas, and optimize container resource allocation.

⏱ 15 minutes K8s 1.28+

How to Configure Resource Limits and Requests

Set CPU and memory requests and limits for containers. Understand QoS classes, resource quotas, and best practices for right-sizing workloads.

⏱ 15 minutes K8s 1.28+

How to Manage ConfigMaps and Secrets Effectively

Master Kubernetes ConfigMaps and Secrets for application configuration. Learn creation methods, mounting strategies, and security best practices.

⏱ 20 minutes K8s 1.28+

How to Manage Kubernetes Namespaces Effectively

Master Kubernetes namespace organization for multi-team environments. Learn resource quotas, network policies, and RBAC per namespace.

⏱ 20 minutes K8s 1.28+

How to Set Resource Requests and Limits Properly

Master Kubernetes resource management with proper CPU and memory requests and limits. Avoid OOMKills, throttling, and resource contention.

⏱ 20 minutes K8s 1.28+

Intermediate

NicClusterPolicy MOFED Affinity and Node Selection

Configure NicClusterPolicy node selectors and affinity rules to deploy MOFED drivers only on RDMA-capable nodes.

⏱ 15 minutes K8s 1.27+

OpenClaw Cron Jobs and Heartbeats on Kubernetes

Configure OpenClaw's built-in cron scheduling and heartbeat system on Kubernetes for proactive notifications, periodic checks, and automated background.

⏱ 20 minutes K8s 1.28+

Manage OpenClaw Skills on Kubernetes

Deploy and manage OpenClaw agent skills (tools, automations, integrations) on Kubernetes using ConfigMaps, PVCs, and git-sync for dynamic capability.

⏱ 20 minutes K8s 1.28+

GitOps for OpenClaw Workspaces on Kubernetes

Manage OpenClaw agent workspaces (SOUL.md, skills, memory) with GitOps using Flux or ArgoCD, enabling version-controlled AI persona management on.

⏱ 25 minutes K8s 1.28+

Create Custom CatalogSources for OLM Operators

Configure CatalogSource resources in OpenShift to serve custom operator catalogs from private registries, air-gapped environments, or curated operator collections.

⏱ 20 minutes K8s 1.26+

OpenShift Lifecycle and Version Support

Understand OpenShift Container Platform version lifecycle, support phases, EUS releases, and upgrade planning for production clusters.

⏱ 15 minutes K8s 1.28+

OpenShift Project Request Template for Pull Secrets

Configure an OpenShift Project Request Template so every new namespace automatically gets a ServiceAccount with imagePullSecrets for your private Quay registry.

⏱ 15 minutes K8s OCP 4.x

PriorityClasses for GPU Workloads

Configure Kubernetes PriorityClasses for GPU workloads with training, serving, batch, and interactive tiers and preemption policies.

⏱ 15 minutes K8s 1.28+

ResourceQuota and LimitRange for GPUs

Configure ResourceQuota and LimitRange for GPU workloads with per-tenant caps on GPU, CPU, memory, and object counts.

⏱ 15 minutes K8s 1.28+

Configure ClusterPolicy kernelModuleType for GPU Operator

Understand and configure the driver.kernelModuleType field in the NVIDIA GPU Operator ClusterPolicy to choose between auto, open, and proprietary kernel.

⏱ 20 minutes K8s 1.28+

How to Manage Kubernetes API Versions and Deprecations

Handle Kubernetes API version changes and deprecations. Migrate resources to stable APIs and ensure cluster upgrade compatibility.

⏱ 15 minutes K8s 1.28+

How to Optimize Kubernetes Costs

Reduce cloud costs in Kubernetes clusters. Right-size resources, use spot instances, implement autoscaling, and monitor spending effectively.

⏱ 15 minutes K8s 1.28+

How to Use Kustomize for Configuration Management

Manage Kubernetes configurations with Kustomize overlays. Customize base manifests for different environments without template duplication.

⏱ 15 minutes K8s 1.28+

How to Implement Kubernetes Taints and Tolerations

Control pod scheduling with taints and tolerations. Dedicate nodes for specific workloads, handle node conditions, and implement scheduling constraints.

⏱ 15 minutes K8s 1.28+

How to Configure Resource Quotas per Namespace

Implement resource quotas to limit CPU, memory, and object counts per namespace. Ensure fair resource allocation across teams and environments.

⏱ 15 minutes K8s 1.28+

How to Configure Resource Quotas

Limit resource consumption per namespace with ResourceQuotas. Control CPU, memory, storage, and object counts to ensure fair cluster sharing.

⏱ 15 minutes K8s 1.28+

Advanced

ClusterPolicy MOFED Upgrade Strategy

Configure safe MOFED driver upgrade policies in the NVIDIA GPU Operator ClusterPolicy with rolling updates, node draining, and rollback procedures.

⏱ 20 minutes K8s 1.27+

NVIDIA DOCA Driver Container in Kubernetes

Deploy and configure NVIDIA DOCA Driver containers via NicClusterPolicy for RDMA, NFS-RDMA, and precompiled driver builds.

⏱ 15 minutes K8s 1.28+

DOCA Driver on OpenShift with DTK

Build and deploy precompiled NVIDIA DOCA Driver containers on OpenShift using DriverToolKit, MachineConfig, and upgrade lifecycle.

⏱ 15 minutes K8s 1.28+

GPU Operator ClusterPolicy Complete Reference

Complete reference for the NVIDIA GPU Operator ClusterPolicy CRD covering driver, toolkit, device plugin, MOFED, GDS, MIG, and DCGM configuration options.

⏱ 20 minutes K8s 1.27+

NVIDIA GPU Operator MOFED Driver Configuration

Configure the NVIDIA GPU Operator to deploy Mellanox OFED drivers for high-performance RDMA networking on Kubernetes GPU nodes with InfiniBand and RoCE support.

⏱ 30 minutes K8s 1.27+

GPU Cluster Upgrade Version Matrix

Maintain a version compatibility matrix for GPU Operator, Network Operator, drivers, firmware, CUDA, and OpenShift for safe upgrades.

⏱ 15 minutes K8s 1.28+

MOFED and DOCA Driver Building for OpenShift

Build NVIDIA MOFED and DOCA drivers for OpenShift using DriverToolKit, Buildah, and MachineConfig for RDMA and GPU networking.

⏱ 15 minutes K8s 1.28+

Open Kernel Modules and DMA-BUF for GPUs

Migrate from proprietary NVIDIA kernel modules and nvidia-peermem to open kernel modules with DMA-BUF for safer GPU upgrades.

⏱ 15 minutes K8s 1.28+

RHCOS for OpenShift Nodes

Understand and manage Red Hat Enterprise Linux CoreOS (RHCOS) for OpenShift nodes including MachineConfig, ignition, OS updates, and node customization.

⏱ 15 minutes K8s 1.28+

Switch to Open NVIDIA Kernel Modules on OpenShift

Step-by-step guide to migrate the NVIDIA GPU Operator from proprietary to open kernel modules on OpenShift, enabling DMA-BUF and GPUDirect Storage support.

⏱ 60 minutes K8s 1.28+

Tune NCCL Environment Variables for RDMA and Ethernet

Apply safe NCCL environment variable profiles for RDMA-capable and Ethernet-only GPU clusters to maximize collective communication throughput.

⏱ 20 minutes K8s 1.28+

Crossplane for Cloud Infrastructure Management

Use Crossplane to provision and manage cloud infrastructure resources like databases, storage, and networking using Kubernetes-native APIs and GitOps.

⏱ 55 minutes K8s 1.28+

Multi-Node NVLink with ComputeDomains

Configure ComputeDomains for robust and secure Multi-Node NVLink (MNNVL) workloads on NVIDIA GB200 and similar systems using DRA

⏱ 50 minutes K8s 1.32+

Dynamic Resource Allocation for GPUs with NVIDIA DRA Driver

Learn to use Kubernetes Dynamic Resource Allocation (DRA) for flexible GPU allocation, sharing, and configuration with the NVIDIA DRA Driver

⏱ 40 minutes K8s 1.32+

MIG GPU Partitioning with DRA

Dynamically partition NVIDIA A100 and H100 GPUs using Multi-Instance GPU (MIG) technology with Dynamic Resource Allocation for flexible workload isolation

⏱ 40 minutes K8s 1.32+

Mixed Accelerator Workloads with DRA

Orchestrate heterogeneous accelerator workloads combining GPUs, TPUs, FPGAs, and custom AI chips using Dynamic Resource Allocation

⏱ 50 minutes K8s 1.32+

TPU Allocation with Dynamic Resource Allocation

Configure Google Cloud TPUs in Kubernetes using DRA for flexible allocation, multi-slice workloads, and optimized machine learning training

⏱ 45 minutes K8s 1.32+

Kubernetes API Aggregation Layer

Extend the Kubernetes API with custom API servers using the aggregation layer to add new resource types and functionality without modifying core components

⏱ 60 minutes K8s 1.28+

How to Upgrade Kubernetes Clusters Safely

Perform Kubernetes cluster upgrades with zero downtime. Learn upgrade strategies, pre-flight checks, rollback procedures, and best practices for.

⏱ 45 minutes K8s 1.28+

Kubernetes Scheduler Configuration and Tuning

Customize the Kubernetes scheduler with scheduling profiles, plugins, and advanced placement strategies for optimal pod placement and resource utilization

⏱ 50 minutes K8s 1.28+

How to Create Custom Resource Definitions (CRDs)

Extend Kubernetes API with Custom Resource Definitions. Define custom objects, configure validation schemas, and manage CRD lifecycle.

⏱ 15 minutes K8s 1.28+

How to Use Kubernetes Finalizers

Manage resource cleanup with Kubernetes finalizers. Implement custom cleanup logic and understand how finalizers prevent premature resource deletion.

⏱ 15 minutes K8s 1.28+

How to Use Kubernetes Lease Objects

Implement leader election and distributed coordination with Kubernetes Lease objects. Build highly available controllers and prevent split-brain scenarios.

⏱ 15 minutes K8s 1.28+

How to Use Pod Presets and Mutations

Automatically inject configurations into pods using admission controllers. Configure environment variables, volumes, and annotations at deployment time.

⏱ 15 minutes K8s 1.28+

Want more configuration patterns?

Our book includes an entire chapter dedicated to configuration with dozens more examples.

📖 Explore All Chapters
Luca Berton Ansible Pilot Ansible by Example Open Empower K8s Recipes Terraform Pilot CopyPasteLearn ProteinLens