[{"data":1,"prerenderedAt":199},["ShallowReactive",2],{"term-n\u002Fnamespace":3,"related-n\u002Fnamespace":185},{"id":4,"title":5,"acronym":6,"body":7,"category":167,"description":168,"difficulty":169,"extension":170,"letter":171,"meta":172,"navigation":97,"path":173,"related":174,"seo":179,"sitemap":180,"stem":183,"subcategory":6,"__hash__":184},"terms\u002Fterms\u002Fn\u002Fnamespace.md","Namespace",null,{"type":8,"value":9,"toc":161},"minimark",[10,15,32,36,53,57,150,154,157],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18,19,23,24,27,28,31],"p",{},"In Kubernetes, a Namespace is like a virtual folder that organizes resources. You can have a ",[20,21,22],"code",{},"production"," namespace and a ",[20,25,26],{},"staging"," namespace on the same cluster, and they're completely separated from each other. Resources in different namespaces can have the same names without clashing — like two files named ",[20,29,30],{},"index.html"," in different folders.",[11,33,35],{"id":34},"real-talk","Real Talk",[16,37,38,39,42,43,46,47,49,50,52],{},"A Kubernetes Namespace is a mechanism for isolating groups of resources within a single cluster. Namespaces provide scope for names, enable resource quotas, and support access control policies. Common namespaces include ",[20,40,41],{},"default",", ",[20,44,45],{},"kube-system",", and custom ones like ",[20,48,22],{}," or ",[20,51,26],{},".",[11,54,56],{"id":55},"show-me-the-code","Show Me The Code",[58,59,64],"pre",{"className":60,"code":61,"language":62,"meta":63,"style":63},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Create a namespace\nkubectl create namespace production\n\n# Deploy into a specific namespace\nkubectl apply -f deployment.yaml -n production\n\n# List pods in a namespace\nkubectl get pods -n production\n","bash","",[20,65,66,75,92,99,105,124,129,135],{"__ignoreMap":63},[67,68,71],"span",{"class":69,"line":70},"line",1,[67,72,74],{"class":73},"sHwdD","# Create a namespace\n",[67,76,78,82,86,89],{"class":69,"line":77},2,[67,79,81],{"class":80},"sBMFI","kubectl",[67,83,85],{"class":84},"sfazB"," create",[67,87,88],{"class":84}," namespace",[67,90,91],{"class":84}," production\n",[67,93,95],{"class":69,"line":94},3,[67,96,98],{"emptyLinePlaceholder":97},true,"\n",[67,100,102],{"class":69,"line":101},4,[67,103,104],{"class":73},"# Deploy into a specific namespace\n",[67,106,108,110,113,116,119,122],{"class":69,"line":107},5,[67,109,81],{"class":80},[67,111,112],{"class":84}," apply",[67,114,115],{"class":84}," -f",[67,117,118],{"class":84}," deployment.yaml",[67,120,121],{"class":84}," -n",[67,123,91],{"class":84},[67,125,127],{"class":69,"line":126},6,[67,128,98],{"emptyLinePlaceholder":97},[67,130,132],{"class":69,"line":131},7,[67,133,134],{"class":73},"# List pods in a namespace\n",[67,136,138,140,143,146,148],{"class":69,"line":137},8,[67,139,81],{"class":80},[67,141,142],{"class":84}," get",[67,144,145],{"class":84}," pods",[67,147,121],{"class":84},[67,149,91],{"class":84},[11,151,153],{"id":152},"when-youll-hear-this","When You'll Hear This",[16,155,156],{},"\"Deploy that to the staging namespace first.\" \u002F \"Each team gets their own namespace with resource limits.\"",[158,159,160],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":63,"searchDepth":77,"depth":77,"links":162},[163,164,165,166],{"id":13,"depth":77,"text":14},{"id":34,"depth":77,"text":35},{"id":55,"depth":77,"text":56},{"id":152,"depth":77,"text":153},"cicd","In Kubernetes, a Namespace is like a virtual folder that organizes resources.","intermediate","md","n",{},"\u002Fterms\u002Fn\u002Fnamespace",[175,176,177,178],"Kubernetes","K8s","Cluster","Pod",{"title":5,"description":168},{"changefreq":181,"priority":182},"weekly",0.7,"terms\u002Fn\u002Fnamespace","5FrBjAkhAS2jo62Ecloezv_XjjO07NMdcxgiBcCPOrY",[186,189,193,196],{"title":177,"path":187,"acronym":6,"category":167,"difficulty":169,"description":188},"\u002Fterms\u002Fc\u002Fcluster","A Kubernetes Cluster is the whole system — all the nodes (machines) working together as one, managed by a control plane.",{"title":176,"path":190,"acronym":175,"category":167,"difficulty":191,"description":192},"\u002Fterms\u002Fk\u002Fk8s","advanced","K8s is just a shorthand for Kubernetes — the name is 11 characters with 8 letters between K and s, hence K8s. It's the same big robot container manager.",{"title":175,"path":194,"acronym":6,"category":167,"difficulty":191,"description":195},"\u002Fterms\u002Fk\u002Fkubernetes","Kubernetes is a robot manager for your containers.",{"title":178,"path":197,"acronym":6,"category":167,"difficulty":169,"description":198},"\u002Fterms\u002Fp\u002Fpod","A Pod is the smallest thing Kubernetes manages — it's like a tiny apartment that one or more containers share.",1776518296974]