April 2018
Intermediate to advanced
468 pages
14h 34m
English
Kubernetes namespaces are the perfect answer to safe multi-tenant clusters. This is not a surprise as this was one of the design goals of namespaces.
You can easily create namespaces in addition to the built-in kube system and default. Here is a YAML file that will create a new namespace named custom-namespace. All it has is a metadata item named name. It doesn't get any simpler:
apiVersion: v1 kind: Namespace metadata: name: custom-namespace
Let's create the namespace:
> Kubectl create -f custom-namespace.yaml
namespace "custom-namespace" created
> kubectl get namesapces
NAME STATUS AGE
custom-namespace Active 39s
default Active 32d
kube-system Active 32d
The status field can be active or terminating ...
Read now
Unlock full access