liveBook · Manning

Kubernetes namespace

As explained in Designing Deep Learning Systems: A guide for software engineers

A namespace is a Kubernetes virtual-cluster boundary used to partition resources and workloads within a physical cluster.

A Kubernetes namespace partitions one physical cluster into virtual clusters. It creates a resource boundary for teams or users while allowing workloads to share underlying servers. section 1.2.5 section 3.3.7

Use a namespace as an operational boundary for shared compute:

  • Create a namespace and assign quotas for CPU, memory, and GPU capacity. section 3.3.7
  • Map users to namespaces in the training service. section 3.3.7
  • Resolve the submitting user's namespace before placing the training executable through the Kubernetes API. section 3.3.7
  • Let Kubernetes track live usage and reject launches when the namespace lacks capacity. section 3.3.7

Isolating training workloads

A training platform assigns each user to a namespace with CPU, memory, and GPU quotas. Kubernetes places the submitted job there, enforces the available capacity, and removes resource tracking and isolation logic from the training service. section 3.3.7

Figure 3.10 Creating machine pools within the training cluster to set up the resource consumption boundary for different users.

Relate namespaces to the resource-consumption boundary created for different users inside a shared training cluster. section 3.3.7

How Designing Deep Learning Systems: A guide for software engineers covers it

How deep it goes
Explains quotas, user mapping, API placement, and capacity rejection, but does not detail namespace commands or Kubernetes internals.
Examples
Uses shared training clusters, per-user quotas, namespace mappings, and rejected launches when capacity is exhausted.
What it assumes
Assumes a Kubernetes-managed service and computing cluster, while introducing namespace-based resource isolation.
What you can do after
Operate/configure user-isolated training capacity by assigning namespaces, quotas, and workload placement rules.
How it connects
Connects Kubernetes namespaces with resource quotas, pods, training services, machine pools, and resource isolation.

Also explained in

Compare how 5 books explain Kubernetes namespace →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Designing Deep Learning Systems: A guide for software engineers. The section links point to the parts of the book it draws on.