Loading video player...
In Day 11 of the Kustomization Full Course, we deep-dive into one of the most misunderstood but exam-critical topics for Kubernetes administrators: Namespace Transformer in Kustomize This session is designed specifically for CKA aspirants and DevOps engineers who want clean, reusable, and exam-safe manifests. ๐ฏ What you will learn in this video โ What is Namespace Transformer (simple & exam-oriented) โ Why Namespace Transformer exists โ How Namespace Transformer works internally โ Does it work while creating resources? โ Why namespace must already exist โ What happens if namespace does NOT exist โ Where Namespace Transformer does NOT work โ Cluster-scoped vs Namespace-scoped resources โ Immutable namespace concept (CKA trap) โ KillerCoda live demo (step-by-step) Common CKA Exam Traps Covered โ Using kubectl apply -f instead of -k โ Assuming Namespace Transformer creates namespaces โ Trying to move existing resources to another namespace โ Expecting ClusterRole / PV to get namespace โ Hardcoded namespaces inside YAML Demo Folder Structure (Used in Video) ns-demo/ โโโ deployment.yaml โโโ service.yaml โโโ kustomization.yaml YAML FILES USED IN THIS VIDEO ๐น deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: web spec: replicas: 1 selector: matchLabels: app: web template: metadata: labels: app: web spec: containers: - name: nginx image: nginx ๐น service.yaml apiVersion: v1 kind: Service metadata: name: web-svc spec: selector: app: web ports: - port: 80 targetPort: 80 ๐น kustomization.yaml apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization namespace: dev resources: - deployment.yaml - service.yaml ๐งช KillerCoda / Lab Commands Used Create namespace (mandatory) kubectl create namespace dev Apply using Kustomize kubectl apply -k . Verify resources kubectl get all -n dev ๐ง Key Exam Rule (Must Remember) Namespace Transformer does NOT create namespaces Namespace must already exist Namespace cannot be changed once resource is created ๐งโ๐ Who should watch this? โ CKA 2026aspirants โ DevOps engineers โ Kubernetes beginners learning Kustomize โ Anyone confused about namespaces in Kubernetes โ KillerCoda / Hands-on lab learners ๐ Part of Playlist Kustomization Full Course โ From Zero to CKA Level ๐ Like | Share | Subscribe I