Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Latest commit

 

History

History
27 lines (20 loc) · 636 Bytes

File metadata and controls

27 lines (20 loc) · 636 Bytes

Namespaces

Update createNamespace.yaml with what your namespace to be

Create your namespace

kubectl create -f ./createNamespace.yaml

Verify your namespace exists

$ kubectl get namespaces
NAME          STATUS    AGE
default       Active    1d
kube-system   Active    1d
kube-public   Active    1d

Set your namespace to the default

$ kubectl config set-context $(kubectl config current-context) --namespace=<insert-namespace-name-here>
# Validate it
$ kubectl config view | grep namespace: