Chapter 4. Common kubectl Commands Flashcards
1
Q
What are NameSpaces ?
A
Kubernetes uses namespaces to organize objects in the cluster. You can think of each namespace as a folder that holds a set of objects
2
Q
Command to reference namespaces:
A
kubectl –namespace=mystuff
3
Q
Command to list all pods:
A
kubectl –all-namespaces
4
Q
Command to change Namespace permanently
A
kubectl config set-context my-context –namespace=mystuff