Namespace
Mastering Namespace Operations
Searching
$ kubectl get namespaces
NAME STATUS AGE
default Active 11d
kube-system Active 11dCreating
(1) Go ahead and create it directly from the command line:
$ kubectl create namespace new-namespace
(2) Or play it traditional and create it via a file:
$ cat my-namespace.yaml
apiVersion: v1
kind: Namespace
metadata:
name: new-namespace
$ kubectl create -f ./my-namespace.yamlDeleting
For Further Reading
最后更新于