kubectl get namespace
kubectl get ns
#详细 -o wide|json|yaml
kubectl get ns default -o yaml
#描述
kubectl describe ns default
#创建
kubectl create ns dev
#删除
kubectl delete ns dev
apiVersion: v1
kind: Namespace
metadata:
name: dev
kubectl create -f namespace-dev.yaml
kubectl get ns dev
kubectl delete -f namespace-dev.yaml