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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Command to reference namespaces:

A

kubectl –namespace=mystuff

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Command to list all pods:

A

kubectl –all-namespaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Command to change Namespace permanently

A

kubectl config set-context my-context –namespace=mystuff

How well did you know this?
1
Not at all
2
3
4
5
Perfectly