Kubernetes Handbook
  • Introduction
  • Prerequisites
    • What is Containerization
    • What is Docker
    • Difference between Docker and VM
  • Features of Kubernetes
    • What is Kubernetes
    • Features of Kubernetes - 1
    • Features of Kubernetes - 2
    • Which Tool to Use for Orchestration
  • Architecture
    • Master Node
    • etcd and kubectl
    • Worker Nodes
  • Pods and Nodes
    • Nodes
    • Pods
  • Controllers
    • Benefits of Controllers
    • Kinds of Controllers
  • Minikube
    • What is Minikube
  • Installation and Running (Mac OS)
    • Installation
    • Running Hello World Application
  • Labels Namespaces and Selectors
    • Labels
    • Namespaces
    • Selectors
  • Health Checks Rollouts and Rollbacks
    • Health Checks
    • Rollouts and Rollbacks
  • Config Maps and Secrets
    • Config Maps
    • Secrets
  • Running Jobs
    • How to Run Jobs
  • Dashboard and Debugging
    • Kubernetes Dashboard
    • Debugging
Powered by GitBook
On this page
  • Why Namespaces?
  • Working with Namespaces

Was this helpful?

  1. Labels Namespaces and Selectors

Namespaces

Why Namespaces?

  • Multiple virtual clusters backed by same physical cluster

  • For teams with accountability

  • Divides cluster resources

  • Unique names of deployments/pods

Working with Namespaces

To get the existing namespaces in the cluster.

$ kubectl get namespaces

To create namespace

$ kubectl create namespace <name>

To delete a namespace

$ kubectl delete namespace <name>

To deploy a resource to a specific namespace append - n <namespace-name>

PreviousLabelsNextSelectors

Last updated 3 years ago

Was this helpful?