Kubernetes namespace
A named area inside a cluster that keeps object names apart and groups them for permissions, quotas and policies.
In more detail
Two teams can each have a Service called web if they use different namespaces. Pods, Services and Deployments are namespaced, while nodes, PersistentVolumes and StorageClasses are cluster-scoped. A context can set a default namespace, and -n picks one for a single command; this is not the same thing as a Linux namespace.
Examples
kubectl get pods -n course-web -l app=webkubectl label namespace payments pod-security.kubernetes.io/enforce=restrictedMany permissions, rules and exceptions are scoped by namespace, such as a Falco exception that applies only to the backup namespace.A Role is namespaced, so it grants nothing outside its namespace, and the course treats the namespace as a real permission boundary.Related terms
- Argo CD Application — The Argo CD object that connects a source (repository, revision and path) to a destination (cluster and namespace).
- sync wave — A number set in an annotation that tells Argo CD which resources to apply first during a sync.
- cluster — A group of machines managed together so they act like one larger system, for example for running containers.
- Pod Security Admission — The built-in Kubernetes admission controller that applies Pod Security Standards to each namespace according to its labels.
- NetworkPolicy — A Kubernetes object that controls which pods may send traffic to or receive traffic from which others, by labels, namespaces and IP ranges.
- kube-system — The Kubernetes namespace that holds the cluster's own components, such as CoreDNS and, on kubeadm clusters, the control plane pods.
- Pod Security Standards — Three built-in Kubernetes security profiles, called privileged, baseline and restricted, that define how locked down a pod must be.
- Kubernetes — An open-source system that runs and manages containers across a cluster of machines.
- kubectl — The command-line tool for talking to a Kubernetes cluster's API server: creating, reading, changing and deleting objects.
- cluster-scoped resource — A kind of Kubernetes object that belongs to the whole cluster rather than to one namespace, such as a Node, a PersistentVolume or a ClusterRole.
- kubeconfig context — A named pairing in a kubeconfig of one cluster, one user and an optional default namespace; the current context decides where kubectl goes.
- ResourceQuota — A namespace object that caps the total requests, limits or object counts that everything in the namespace may use together.
- role-based access control — An authorization model where permissions are grouped into named roles, such as reader or editor, and people or services are given roles.
- Role — A namespaced RBAC object listing which verbs are allowed on which resources inside one namespace.
- Kubernetes Secret — A Kubernetes object for small sensitive values such as passwords and tokens, which pods can use as files or environment variables.
Taught in
- The Push Model vs. The Pull Model — Continuous Integration & Continuous Delivery Pipelines
- Argo CD Architecture and Applications — Continuous Integration & Continuous Delivery Pipelines
- Sync Waves and Dependency Management — Continuous Integration & Continuous Delivery Pipelines
- Spend Two Hours Like A Points Table — Certified Kubernetes Administrator (CKA) Exam Prep
- Generators Write The YAML, You Decide — Certified Kubernetes Administrator (CKA) Exam Prep
- Contexts, Namespaces And One-Line Answers — Certified Kubernetes Administrator (CKA) Exam Prep
- Usage, Requests And The Pod That Will Not Fit — Certified Kubernetes Administrator (CKA) Exam Prep
- A Service With Nobody Behind It — Certified Kubernetes Administrator (CKA) Exam Prep
- The Name That Will Not Resolve — Certified Kubernetes Administrator (CKA) Exam Prep
- Blocked On Purpose: Opening One Path Through Default Deny — Certified Kubernetes Administrator (CKA) Exam Prep
- Four Faults, Twelve Minutes — Certified Kubernetes Administrator (CKA) Exam Prep
- Two Hours, Twenty Tasks: Exam Strategy — Certified Kubernetes Application Developer (CKAD) Exam Prep
- Six Seconds, Every Secret — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Two Hours, Sixteen Tasks: A CKS Plan — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Default Deny, Then Exactly The Doors You Need — Certified Kubernetes Security Specialist (CKS) Exam Prep
- The Metadata Endpoint And The Kubelet's Front Door — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Ingress TLS: When The Padlock Lies — Certified Kubernetes Security Specialist (CKS) Exam Prep
- RBAC: Find The Path To Cluster Admin — Certified Kubernetes Security Specialist (CKS) Exam Prep
- ServiceAccounts: Take Back The Key — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Anonymous Access: The Fix That Kills The API Server — Certified Kubernetes Security Specialist (CKS) Exam Prep
- The Host Footprint: Six Doors On A Worker — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Network Exposure: NodePorts, Host Firewalls And Egress — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Seccomp: Which Syscalls A Container May Make — Certified Kubernetes Security Specialist (CKS) Exam Prep
- AppArmor: The Guard Docker Desktop Does Not Have — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Pod Security Admission: Created, Never Started — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Encryption At Rest: What etcd Really Holds — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Secrets In Use: Leaks Through Env, Specs And Images — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Sandboxed Pods: RuntimeClass And gVisor — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Encrypting Pod-to-Pod Traffic: mTLS With Istio And Cilium — Certified Kubernetes Security Specialist (CKS) Exam Prep
- SBOMs: Knowing What You Ship — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Scan Reports: Triage, Gates And Cleanup — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Allowed Registries: Admission That Refuses Images — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Signing And Verifying Images With Cosign — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Falco: Detecting What Happens Inside Containers — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Investigating An Attack: One Timeline, Two Logs — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Immutable Containers: Read-Only At Runtime — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Detection Review: Which Signal Catches It? — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Mock Exam: Seventeen Security Tasks Against The Clock — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Final Review: The Cluster You Would Defend — Certified Kubernetes Security Specialist (CKS) Exam Prep
- Workload Identity Federation: Eliminating Static Keys — Cloud Security & DevSecOps Engineering
- Container Hardening: Distroless & Rootless — Cloud Security & DevSecOps Engineering
- Kubernetes Pod Security Standards: Baseline & Restricted — Cloud Security & DevSecOps Engineering
- Kubernetes NetworkPolicies & Microsegmentation — Cloud Security & DevSecOps Engineering
- Securing the Kubernetes Control Plane & Node Components — Cloud Security & DevSecOps Engineering
- Enforcing OPA Guardrails on Terraform Plan Payloads — Cloud Security & DevSecOps Engineering
- CloudTrail Logging, Integrity Validation & Athena — Cloud Security & DevSecOps Engineering
- Security Frameworks: NIST CSF 2.0, ISO 27001 & CIS — Cybersecurity Fundamentals, GRC & Cryptography
- One Command, Six Programs — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Sixty Questions, Ninety Minutes — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Pin It, Lint It, Prove It: Images And Runtimes — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Who Owns The Symptom: Control Plane And Nodes — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Same Name, Wrong Namespace: Objects, Namespaces And Labels — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- A Name That Outlives Its Pods: Services And DNS — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Wrong Cluster, Wrong Version: Contexts, Upgrades And Skew — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Not The Admin Certificate: RBAC And ServiceAccounts — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Fundamentals Sprint: Four Tickets Before The Doors Open — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Who May Call Payments: Pod Networking And Policy — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Not As Root, Not In Plain Sight: Pod Security And Secrets — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Bookings That Survive The Pod: Volumes And Claims — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Orchestration Sprint: Four Fixes, No Walls Removed — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Two Versions Of The Truth: GitOps, Helm And Kustomize — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Always A Way Back: Rolling, Blue/Green And Canary — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Running, Green And Still Broken: Debugging Applications — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Delivery Sprint: Friday At Five — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- The Image Nobody Tested: Cloud Native Principles — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Slow, Or Broken? Metrics, Logs And Traces — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Architecture Sprint: The Refunds Review — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- Forty Four Of Sixty: The Full Mock, And How To Read It — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- The Festival, End To End: Final Review — Kubernetes and Cloud Native Associate (KCNA) Exam Prep
- One Leaked Kubeconfig: How Far Does It Go? — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Ninety Minutes, Six Domains: Where The Marks Are — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Seven Findings, Two Owners: The 4Cs And Shared Responsibility — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Same Rule, Two Kinds: Controls And Frameworks — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- How Thick Is The Wall? Isolation Techniques — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Overview Sprint: Four Findings Before The Auditor — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Eleven Months Of Yes: The API Server — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- A Pod That Mounts The Node: Runtime, Pods And Storage — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Port 30080 On Every Node: kube-proxy, Networking And Clients — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Component Sprint: The Reference Build — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Created, But Never Running: Pod Security Admission — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- There Is No Users Table: Authentication — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Read-Only, Except Secrets: RBAC In Depth — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Encoded Is Not Hidden: Secrets — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- One Dash Too Many: Segmentation With Network Policy — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Who Read The Gateway Key? Audit Logging — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Fundamentals Sprint: Four Findings, Eight Questions — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Draw The Boundaries: Trust And Data Flow — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- What Outlives The Fix: Persistence And Privilege Escalation — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- The Report That Ate The Node: Denial Of Service And Malicious Code — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- One Pod Away: Network Attackers And Sensitive Data — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Threat Model Sprint: Name It, Then Stop It — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Who Built This Image? Supply Chain And Registries — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Four Alerts, One Incident: Observability And The Mesh — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- A Cluster's First Birthday: PKI And Connectivity — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Forty Minutes Of Yes: Admission Control — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Platform Sprint: Evidence, Order, Proof — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Which Benchmark, And Who Checked It? Compliance And Frameworks — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Forty Three Of Sixty: The Mock, And How To Read It — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Audit Day: Final Review — Kubernetes and Cloud Native Security Associate (KCSA) Exam Prep
- Control Plane: etcd, API Server, Scheduler, Controllers — Kubernetes: Production-Grade Container Orchestration
- Worker Nodes: kubelet, Runtime, CNI And kube-proxy — Kubernetes: Production-Grade Container Orchestration
- Bootstrap A Local Cluster And Check Your Context — Kubernetes: Production-Grade Container Orchestration
- Namespaces, Labels And Declarative Manifests — Kubernetes: Production-Grade Container Orchestration
- Jobs And CronJobs — Kubernetes: Production-Grade Container Orchestration
- Gateway API: GatewayClass, Gateway And HTTPRoute — Kubernetes: Production-Grade Container Orchestration
- NetworkPolicy And The Consul Service Mesh Boundary — Kubernetes: Production-Grade Container Orchestration
- Troubleshooting: DNS, Empty Endpoints And Broken Routes — Kubernetes: Production-Grade Container Orchestration
- Alert Triage, False Positive Reduction & Fatigue Mitigation — Security Operations & Threat Hunting (SOC)
- Windows Event Logs, Sysmon & Linux Auditd Telemetry — Security Operations & Threat Hunting (SOC)
- Detecting Persistence: Tasks, Registry & Services — Security Operations & Threat Hunting (SOC)
- Least Privilege In IAM And RBAC — Application Security & Threat Modeling for Engineers
References
Certification courses
- CKA course and practice exam: Certified Kubernetes Administrator
- CKAD course and practice exam: Certified Kubernetes Application Developer
- CKS course and practice exam: Certified Kubernetes Security Specialist
- KCNA course and practice exam: Kubernetes and Cloud Native Associate
- KCSA course and practice exam: Kubernetes and Cloud Native Security Associate